MapServer Export param 'Layers' Send Back All Data

603
3
10-17-2011 04:11 PM
GregCorradini
New Contributor
Hello,
I'm using the service and trying to get at only certain layers through the *export* operation:


http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer


I only really want to see the TaxParcels (layerid 0) and not the BaseMap (layerid 2). But when I specify that in the Layers parameter I still get back everything:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer/expo...

Is this normal behavior? Cause I've noticed this behavior in everything I tried on the example servers.

This post was previously posted here:
http://forums.arcgis.com/threads/41019-Get-Layers-From-IDS-Export-Operation
0 Kudos
3 Replies
SrinivasVinnakota
Esri Contributor
Greg,
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer is a cached map service, meaning you cannot turn on/off individual layers.
0 Kudos
GregCorradini
New Contributor
Greg,
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer is a cached map service, meaning you cannot turn on/off individual layers.


Right, but I'm still getting the same results for services like this one

http://www.gulfofmexicoresponsemap.com/ArcGIS/rest/services/NOAA_WMS/MapServer
0 Kudos
SrinivasVinnakota
Esri Contributor
Here is a link that displays only 1 layer - http://www.gulfofmexicoresponsemap.com/ArcGIS/rest/services/NOAA_WMS/MapServer/export?bbox=-10468656...

In the example that you posted you had an incorrect 'layers' parameter. Here is the API reference to correctly specify 'layers' parameter - http://184.73.201.18/ArcGIS/SDK/REST/index.html?export.html
0 Kudos