I am working on a web application based on OpenLayers, Geoserver, Java and JavaScript.
The user needs to select an area on the map and that portion has to be downloaded as an image. I tried hitting the WMS using Ajax -
http://localhost:8080/geoserver/wms?request=GetMap&service=WMS&version=1.1.0&layers=geoworkspace:STRUCTURE,&styles=&srs=EPSG:27700&bbox=526274.1873390013,196214.08896841796,526277.1040062243,196217.2973028639&width=1200&height=1200&format_options=dpi:300;antialiasing:on&format=image%2Fpng8
As a result, I get all the required layers except for the underlying base map. Is there a way to get the base map too?
Is there an alternative approach to this requirement?
Layers=&
attribute - user27874