Select to view content in your preferred language

Legend Issue

549
2
Jump to solution
09-17-2013 12:35 PM
KomanDiabate
Deactivated User

Hello All,
My map legend is showing ArcGISDynamicServiceLayer33 and I am having hard time remove this from the legend. Anybody know hwo to fix this?. Thanks.

 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor
If you don't specify the name for the layer, the layer will get a name like that assigned to it, which is then used in the legend.

  <esri:Map>      <esri:ArcGISDynamicMapServiceLayer id="dynamicCensusBlockPoints" name="Census Points"          url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer">          <esri:visibleLayers>              <s:ArrayCollection>                  <fx:Number>0</fx:Number> <!-- Only show this specific layer -->              </s:ArrayCollection>          </esri:visibleLayers>      </esri:ArcGISDynamicMapServiceLayer>  </esri:Map>

View solution in original post

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor
If you don't specify the name for the layer, the layer will get a name like that assigned to it, which is then used in the legend.

  <esri:Map>      <esri:ArcGISDynamicMapServiceLayer id="dynamicCensusBlockPoints" name="Census Points"          url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer">          <esri:visibleLayers>              <s:ArrayCollection>                  <fx:Number>0</fx:Number> <!-- Only show this specific layer -->              </s:ArrayCollection>          </esri:visibleLayers>      </esri:ArcGISDynamicMapServiceLayer>  </esri:Map>
0 Kudos
KomanDiabate
Deactivated User
That was it. Thanks.
0 Kudos