Select to view content in your preferred language

TOC items do not turn back on

948
7
06-05-2012 08:51 AM
LeroyChristophersen
Emerging Contributor
Hi Robert,
        I am currently using the complied version.  The TOC displays the features and layers when the map is first activated.  However, the layer will toggle off, but not back on again.  Is there a refresh command I need to include?
Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Leroy,

   There is nothing you have to do besides check or uncheck a layer... Are you sure you don not have something going wrong with your map service? No one has ever reported any issue like that.
0 Kudos
LeroyChristophersen
Emerging Contributor
Hi Robert,
        I am currently using the complied version.  The TOC displays the features and layers when the map is first activated.  However, the layer will toggle off, but not back on again.  Is there a refresh command I need to include?


I am looking for the problem.  Since the layers display initially, I presume the Service is working correctly.  Below is how I have the XML file configured.  I want to exclude a couple of features in the layer, but have the rest display.

<configuration>
<labels>
  <visibilitylabel>Layer Visibility</visibilitylabel>
  <legendlabel>Show Dynamic Map Legend</legendlabel>
  <alphatooltip>Select parent map service to set opacity</alphatooltip>
  <metadatatooltip>Show details</metadatatooltip>
  <zoomtoextent>Zoom To Layer Extent</zoomtoextent>
  <expandall>Expand All Layers</expandall>
  <collapseall>Collapse All Layers</collapseall>
  <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible>
  <generatinglegendmsg>Generating TOC Legend</generatinglegendmsg>
</labels>
<tocsettings>
  <expanded>true</expanded>
  <collapselegends>false</collapselegends>
</tocsettings>
<legendtimeout>60</legendtimeout>
<excludelayers>
  <excludelayer mapservice="Oroville">0,1</excludelayer>
</excludelayers>
<excludegraphiclayers>true</excludegraphiclayers>
<excludebasemaplayers>true</excludebasemaplayers>
<usenewesridescription>false</usenewesridescription>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
And is it the "Oroville" map service that you are having issues with?
0 Kudos
LeroyChristophersen
Emerging Contributor
And is it the "Oroville" map service that you are having issues with?


Yes.  The service is called MapGuide, but then labeled or referenced in the Config file as Oroville.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Leroy,

   layer 0 of the Map Service is not a master (Top level) group layer is it?
0 Kudos
LeroyChristophersen
Emerging Contributor
Leroy,

   layer 0 of the Map Service is not a master (Top level) group layer is it?


Yes it is.  I guess it helps if one does not exclude the entire map. 😛  Sorry, but thank you.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Glad you got it working. Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos