I have created a feature layer and deployed it as a service on ArcGIS Online? Is there any way to pass lat/long values as query parameters and get respective feature layer details?
Take the 2-minute tour
×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
When you publish a layer as a Feature service, it is served through a Rest API; The Rest API for a feature Service usually supports the Query Operation. You can pass in your point coordinates and do a spatial query, to get the resulting features. Unfortunately, I currently don't have an ArcGIS Online Account, so I can't give you a running example. I can give you a simple example of a Query Task which return the polygon that contains the input point. Please see this query on the US States layer. It will return that states, that contains the point with latitude 38N and longitude 100 W |
|||||||||||||
|