REST queries occur when folder is on but layers are off
In the HTML5 viewer if all layers within a folder/group are turned off but the folder/group is turned on there are mapserver/export requests being made in the viewer. In all cases this appears to return a blank image (there's no data layers turned on so this makes sense). These requests don't appear with the same setup in Silverlight viewers. Is there a reason for these requests in GVH?
Example of setup:
_img_ alt="Folder and layers setup in GE Manager" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906600000004IQz&feoid=Body&refid=0EM600000004Xr7"_/_img_
0
-
Hi Mark,
When you launch the viewer, even layers that are set to not visible will be loaded. This is to ensure that there is minimal lag time between toggling the visibility on and off in the layer list.
I hope this helps.
Carmen0 -
Hi Carmen,
Each pan of the map sends requests to get back a blank image so it's not just on viewer launch. This also happens for Map Services which are enabled in a GE Site but not in the layer list (i.e. they're for search only). When a user toggles the visibility on, of a layer in the layer list, another request is made so I don't quite understand how the first request speeds this up.
E.g.
First request (show no layers, blank image): /MapServer/export?dpi=96&transparent=true&format=png8&layers=show:-1&bbox=1764314.6674639277,5411768.291163868,1847327.8543236346,5477252.79713288&bboxSR=2193&imageSR=2193&size=1255,990&f=image
Second request (show 1 layer): /MapServer/export?dpi=96&transparent=true&format=png8&layers=show:0&bbox=1764314.6674639277,5411768.291163868,1847327.8543236346,5477252.79713288&bboxSR=2193&imageSR=2193&size=1255,990&f=image
Thanks,
Mark0
Please sign in to leave a comment.
Comments
2 comments