AnsweredAssumed Answered

Is there a JSAPI for MapServer/<layerid>/<objectid>?

Question asked by eliprandi on May 8, 2015
Latest reply on May 8, 2015 by rscheitlin

We need to query for single features within our JS application (like when a customer wants to see details about a particular feature).

We would like to use the following URL on our ArcGIS server:

 

https://<server>/arcgis/rest/services/<service>/MapServer/<layer>/<objectid>

 

Esri usually provides wrapper for most of those APIs to handle authentication, proxy and error handling. Is there a wrapper for the above URL?

We have been using QueryTask so far, but it's a lot more verbose than we need (and requires more setup). We simply need the Attributes and Geometry of a single feature.

Outcomes