I am using the OpenLayers JavaScript API within a web application. I am displaying non-base layers hosted on an ArcGIS server. When I load the ArcGIS layers, I load them using OpenLayers.Layer.ArcGIS93Rest and by specifying the export service URL. The layer loads perfectly. However, when the user clicks on a feature, I want to be able to display a popup showing information about the feature that the user clicked on. Can anyone explain the best way to retrieve feature information?
Thanks in advance!
-
1add the FeatureServer?f=pjson - example sampleserver3.arcgisonline.com/ArcGIS/rest/services/…Mapperz– Mapperz ♦2012年04月11日 21:20:35 +00:00Commented Apr 11, 2012 at 21:20
-
of course the service you need to be requesting is a feature service - sampleserver1.arcgisonline.com/ArcGIS/SDK/REST/index.htmlMapperz– Mapperz ♦2012年04月11日 21:28:48 +00:00Commented Apr 11, 2012 at 21:28
-
The layer that I'm requesting is via a map service, and the ArcGIS server hosting the layer unfortunately doesn't support a feature service. The map service supported interfaces are Rest, Soap and WMS, and the supported operations are Export Map, Identify, Find and Generate KML. The only supported interface on the layer is Rest and the only supported operation is Query. What's my best alternative?Sara– Sara2012年04月11日 22:15:38 +00:00Commented Apr 11, 2012 at 22:15
-
github.com/kevinsigwart/EsriOpenLayersClientjakc– jakc2015年02月04日 05:52:58 +00:00Commented Feb 4, 2015 at 5:52
1 Answer 1
rest will solve your problems with only parsing it then adding to map. the following link has a query with geometry which return to results json.
filter geometry is -125.4,35.2,-118.7,43.8
you can get more information here ArcGIS Server REST API. and you can also get another info here ArcGIS Server REST API, OpenLayers
i hope it helps you...
Explore related questions
See similar questions with these tags.