Select to view content in your preferred language

How can i access the geometry or graphic of a ArcGISLocalDynamicMapServiceLayer??

674
2
12-27-2012 06:14 AM
Labels (1)
JohanWennberg1
Emerging Contributor
Hi

Is there a way to access the geometry or graphic of a sublayer in a ArcGISLocalDynamicMapServiceLayer?

Or is there some way you can use the IdentifyTask or QueryTask on a sublayer in a ArcGISLocalDynamicMapServiceLayer?

/J
0 Kudos
2 Replies
GeorgeFaraj
Frequent Contributor
I opened this thread a few days ago, and I managed to do what you're looking for. Sample code inside.
0 Kudos
JohanWennberg1
Emerging Contributor
It doesnt seem to work when the layers in my ArcGISLocalDynamicMapServiceLayer is based on shapefiles. I cant get a proper URL to those layers.

Perhaps i should have been more specific about it, but all my layers in my ArcGISLocalDynamicMapServiceLayer is based on shapefiles and are not included in the .mpk. I add those layers on-the-fly to the map in my application. My question is: can i somehow access the features or the geometries of those layers?

Does anyone have a clue?

/Johan
0 Kudos