REST API Documentation Question on Export Map Operation

609
1
12-01-2011 07:44 AM
GregCorradini
New Contributor
Hello,
I'm trying to find a detailed answer about how the REST API handles requests to layers with sublayers (i'm using the service at the bottom of this post as an example).

1) It seems that a request to the parent layer (2) will automatically return all the parent's sublayers. Is this always true?

2) Is this true even if the children of the parent have their default visibility set to false and only the parent's id is requested using show (show:2)?

The API documentation doesn't get into these specifics and I would like to find where it is documented.

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/2
0 Kudos
1 Reply
GregCorradini
New Contributor
Related to this issue is how identify works with parent/sublayers (also not documented well in the API).

For example, if I am showing a parent layer (show:2) with multiple sublayers and do an identify on the parent layer what am I guaranteed to get back? I would assume all sublayer attributes that intersect with my identify geometry.

I don't understand these next identify requests based on the API. Why do they not all give me the same results? Is there something wrong with the service?:

identify on parent layer returns nothing (but something is there)?
http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/GAP_BUIS/MapServer/identify?geometryType=es...

identify on only the child layer returns the correct thing
http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/GAP_BUIS/MapServer/identify?geometryType=es...

identify on parent and child layer returns duplicates?
http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/GAP_BUIS/MapServer/identify?geometryType=es...

any help would be appreciated
0 Kudos