Generalization. Hide/unhide a layer in the layer list
Hi,
I have the water polygon layer that is too huge and complex to show it at small scale, so I’ve created the simplified layer. Now I have two layers that have the scale dependency, so they are visible on different scales but the names of both layers always visible in the layer list and users don’t like it.
Does anybody know is there a way to hide/unhide a layer in the layer list base on the scale?
Thanks,
Dmitry.
0
-
I don't know how to hide/unhide a layer based on scale, but a workaround I use is grouped layers. You could group the two water polygon layers and hide both child layers from the layer list. The children are always on, and the user toggles visibility using the parent. To the user it looks like one layer.
I do this with our Trees layers:
In Essentials Manager, the group layer is visible but the child layers are not:
_img_ alt="Tree layers configuration in Essentials Manager" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZkk&feoid=Body&refid=0EM60000000XqG7"_/_img_
In the layer list it just shows as one layer, Trees:
_img_ alt="Trees in layer list" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZkk&feoid=Body&refid=0EM60000000XqGC"_/_img_0 -
Thank you! That is exactly that I need. 0 -
Hi Stephanie,
It doesn't work for me. How did you hide the child layers? In the "Layer List" tab I can select visible check box but it affects Essentials Manager only. By the way, is a group is the same as folder? I've tryed to put my child layers in the folder .
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZpV&feoid=Body&refid=0EM60000000XqIc" _/_img_0 -
1. Group the layers in the MXD:
_img_ alt="group layers in MXD" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZpa&feoid=Body&refid=0EM60000000XqIm"_/_img_
2. Republish the MXD.
3. Login to Essentials Manager and edit the site.
4. It will give you an alert telling you that layers are missing or have been moved into a group layer. It should list the group name and the layers that are in the group. Click OK.
5. Now in the Essentials Manager Layer List, turn on all the child layers if they are off. Then click the down arrow to the right of the group layer (in this case "Trees") and click "Hide Sub-Items in layer list" to hide all of the children:
_img_ alt="hide sub-items in layer list" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZpa&feoid=Body&refid=0EM60000000XqIh"_/_img_
That should do it!0 -
I use an older version of geocortex on our live servers so I missed one step between 4 and 5:
In the newer versions (since 4.2 I think), you have to click the "include map services in layer list" button to add the new group to the layer list:
_img_ alt="include layers in layer list" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XZqn&feoid=Body&refid=0EM60000000XqJu"_/_img_
Then you can hide the sub items as above in step 5.0 -
It works perfect! Thank you! 0 -
Great explanation, Stephanie!
We use a similar technique with our contour data, using a single feature class and a range of definition queries and scale ranges to toggle on more or less complexity as the user zooms in or out.0
Please sign in to leave a comment.
Comments
7 comments