Select to view content in your preferred language

LayerDefinitions Question

517
2
Jump to solution
04-10-2012 12:08 PM
RobertPincus
Regular Contributor
I am trying to this syntax to show the 4th layer in a Dynamic Map Service that contains 5 layers
When I run the program, only the first layer draws.
What should I look at to solve this?

<esri:ArcGISDynamicMapServiceLayer ID="L_1"  Url="http://georgia/ArcGIS/rest/services/Lmsactivities1/MapServer" >
  <esri:ArcGISDynamicMapServiceLayer.LayerDefinitions>
    <esri:LayerDefinition LayerID="3"/>
  </esri:ArcGISDynamicMapServiceLayer.LayerDefinitions>
</esri:ArcGISDynamicMapServiceLayer>

Thanks,
Robert
0 Kudos
1 Solution

Accepted Solutions
RobertPincus
Regular Contributor
Thank you it works.

View solution in original post

0 Kudos
2 Replies
ChrisBradberry
Deactivated User
Robert,

I would try this:

<esri:ArcGISDynamicMapServiceLayer ID="L_1" Url="http://georgia/ArcGIS/rest/services/Lmsactivities1/MapServer"
                                                             VisibleLayers="3" />



Chris
0 Kudos
RobertPincus
Regular Contributor
Thank you it works.
0 Kudos