Select to view content in your preferred language

Referencing layers in ArcGIS Services Directory

539
1
05-16-2012 07:11 AM
NickErlacker
Emerging Contributor
I know you can reference different layers by using the ID number in provided by the ArcGIS Services Directory. But, when a new service is added sometimes the number changes and as a result you web map references the wrong service.Is there a way to reference the correct service without using the ID provided by the ArcGIS Services Directory? May be the service name and if so is there any examples in javascript?
0 Kudos
1 Reply
JMcNeil
Deactivated User
Nick,

This post might help you out...sounds like a solution is there somewhere.  If it does help you, you should mark the solution in the post and in your post so others can find it easier.

http://forums.arcgis.com/threads/20898-using-layer-name-instead-of-layer-id?highlight=layer

Jay
0 Kudos