AW: AW: [OpenLayers-Users] ArcGIS93Rest - Can't show specific layers

Arnd Wippermann arnd.wippermann at web.de
Fri Feb 10 18:26:26 EST 2012


Hi

It seems, that ESRI publishs MapServices, where you cann't change the
visibility.
 
If I'm wrong and you find a way to toggle the visibility of layers, I would
be interested.

Arnd


-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von jstylee
Gesendet: Freitag, 10. Februar 2012 20:29
An: openlayers-users at lists.osgeo.org
Betreff: Re: AW: [OpenLayers-Users] ArcGIS93Rest - Can't show specific
layers

Hey Arnd,

Thanks for the reply.  Even with passing in image for the f part of the
query string, I get the same results - all of the layers.  Would you know
why some ArcGIS Rest service datasets will allow this and some will not?

For instance, OL has an online example of ArcGIS93Rest
(http://openlayers.org/dev/examples/arcgis93rest.html), and using their
example, I was able to show each layer individually by setting the layers
property of the options set as so:

layers: "show:1"

And here is how the GET request looks:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_St
ateCityHighway_USA/MapServer/export?bbox=-133.32040574214+%2C0.3995868684626
7%2C-58.1280793754844+%2C75.5919132351182&bboxSR=&layers=show:1&layerdefs=&s
ize=&imageSR=&format=png&transparent=false&dpi=&time=&layerTimeOptions=&f=im
age

And the layer in OL only displays the layer with an ID of 1.  

Do you have any thoughts about this?

Thanks,

jstylee

--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/ArcGIS93Rest-Can-t-show-specific-layers-
tp4381519p4384427.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list