Look at Esri's ArcGIS Web AppBuilder. You can build apps in Portal or ArcGIS Online with the functionality you described (using the attribute table and query widget). There are many more widgets you will likely find interesting as well.
There is one of the options, which works fine for some mapping platforms.
If we have the option of saving our map as the raster file (.png or .tiff), we can on our keyboard simply hold the Ctrl button and hit the "-" button making our website appearance smaller. In this way, we can gain a larger area for capture.
More details about this option you ...
Try with https://www.npmjs.com/package/wms-downloader with following parameters: