Skip to main content

REST queries occur when folder is on but layers are off

Comments

2 comments

  • Permanently deleted user
    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.

     

    Carmen
    0
  • Permanently deleted user

    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,

     

    Mark
    0

Please sign in to leave a comment.