L.esri.IdentifyFeatures is an abstraction for the Identify API found in Map Services. It provides a chainable API for building request parameters and executing the request.
By default, all features will be identified, but it is possible to specify both an alternative strategy and array of individual layers. See the REST API documentation for more information about valid combinations. ex: `.layers('all:0')`.
precision(<Integer>precision)
this
Used to cap the number of decimal points included in output geometries.
tolerance(<Integer>precision)
this
Buffer the identify area by a given number of screen pixels.
Simplify the geometries of the output features for the current map view. the factor parameter controls the amount of simplification between 0 (no simplification) and 1 (the most basic shape possible).
format(<Boolean>formatResponse)
this
Use false to ensure that the server returns unformatted feature attributes.Only available for ArcGIS Server 10.5+.
token(<String>token)
this
Adds a token to this request if the service requires authentication. Will be added automatically if used with a service.
run(<Function>callback, <Object>context)
this
Executes the identify request with the current parameters, identified features will be passed to callback as a GeoJSON FeatureCollection. Accepts an optional function context