Select to view content in your preferred language

Layer name versus alias

2692
1
01-25-2013 01:28 PM
MilesKelly
New Contributor
Hi -
I have the name of a layer in a map service, and want to find the ID number of the layer so that I can query the features. If I query like this

http://myserver/arcgis/rest/services/mymapservice/MapServer?f=json


I get back the collection of layers with their names and ids, but the 'name' that is returned is actually the layer alias, and therefore it's possible for several layers in a map service to have the same name. Is there any REST call that would allow me to verify the fully qualified layer name?

Thanks!
0 Kudos
1 Reply
RobChouinard
Frequent Contributor
It doesn't look like it but I could be wrong. For a workaround you could add your FQLN to the layer's description. Then lookup the information on all layers that match that alias you were searching for and check in the description contains the FQLN you want.

http://myserver/arcgis/rest/services/mymapservice/MapServer/1?f=json
0 Kudos