Select to view content in your preferred language

Exclude Layer for Legend Widget

1216
4
Jump to solution
02-19-2014 06:45 AM
EricStarn
Emerging Contributor
Hello All,

I can't seem to figure this out
I have added the Legend Widget to my viewer and would like to exclude some sub layers from it

I have used the tags to exclude the whole map service but would like to just exclude some sublayers in that service

This works for whole service

<?xml version="1.0" ?>
<configuration>
<usebasemaps>false</usebasemaps>
<useoperationallayers>true</useoperationallayers>
<respectcurrentmapscale>true</respectcurrentmapscale>
<excludelayer>Mich Minus Basemap</excludelayer>
</configuration>

Name of sublayer:

Landscape Areas_9K


What can I do to accomplish this?

Thanks

Eric
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Yes the eLayerList has that capability. If you are just looking for the legend and not a TOC like ability than my Dynamic Legend Widget allows for excluding sub layers as well.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

   In the OTB Legend widget there is not abaility to exclude just a sublayer, ONLY the whole MapService.
0 Kudos
EricStarn
Emerging Contributor
Robert,

Thanks

Can you do it in your Enhanced Layer List Widget?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   Yes the eLayerList has that capability. If you are just looking for the legend and not a TOC like ability than my Dynamic Legend Widget allows for excluding sub layers as well.
0 Kudos
EricStarn
Emerging Contributor
Ok

Thanks

I will look into it
0 Kudos