How Do I Integrate Legend icons in Layer List?
I'm looking at the bottom of page 37 of the Geocortex Viewer for HTML5 Administrator and Developer Guide and it says:
10.17 SimpleLayerList Module
The Layer List Module is the panel displayed along the left side of the Viewer with the title of Map Layers. It contains
the directory of map services, layers, base maps, and graphics layers currently in the Viewer. You are able to turn
map layers on and off.
In REST Manager, you can set parameters that give you control over how the Layer List behaves, including which
layers or layer groups are automatically selected when you click a layer, whether the Legend icons or swatches are
integrated into the Layer List , or whether layers are expanded or hidden when the Layer List opens.
We are using GE 3.7 and I don't see a way to do this. What have I overlooked?
Thanks,
Martha
-
Hi Martha,
The paragraph in Admin and Developer Guide which says:
"You can set parameters that give you control over how the Layer List behaves, including which layers or layer groups
are automatically selected when you click a layer, whether the Legend icons or swatches are integrated into the LayerList, or whether layers are expanded or hidden when the Layer List opens."
is not quite accurate. There is neither support for legend settings nor expanding and collapsing the group layers in SimpleLayerList module.
I will open a ticket to fix that part of the documentation.
Thanks
0 -
Dan,
Are these items on a futures/wish list? if not, may we add them, please?
Thanks,
Martha
0 -
I have added those two features to GVH Wishlist.
Thanks
0 -
Great! Thank you.
Martha
0 -
Looking forward to this improvement. Would would then like the option to remove the Show Legend button from the bottom of the Layer List - One less control for the users to understand.
0 -
Stephen,
You can hide the button with some custom css.
.layerlist-footer {
display: none;
}.layerlist {
bottom: 0px;
}
I use this in the reverse scenario where I only want a graphic legend without the ability to turn on/off layers.0 -
Worked a treat - thanks
0
Please sign in to leave a comment.
Comments
7 comments