
Only available for Feature Layers hosted on ArcGIS Online or ArcGIS Server 10.3+. String values should be denoted using single quotes ie: `query.where("FIELDNAME = 'field value'") ` More info about valid SQL can be found here.ĭefine the offset of the results, when combined with `limit` can be used for paging. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Polygon containing Point, Polyline, Polygon.Īdds a where clause to the query. `geometry` can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON.

Queries features from the service that intersect (touch anywhere) the passed geometry object. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Polygon containing Point, Polyline, Polygon. Queries features from the service that fully contain the passed geometry object. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. Queries features from the service within (fully contained by) the passed geometry object. If this task should use CORS when making GET requests. URL of an ArcGIS API for JavaScript proxy or ArcGIS Resource Proxy to use for proxying POST requests. URL of the ArcGIS Server or ArcGIS Online service you would like to consume. L.esri.query( options) L.esri.query( endpoint) L.esri.query( endpoint) L.esri.query( endpoint)Īccepts either an `options` object or an instance of MapService, FeatureLayerService or ImageService.

Note Depending on the type of service you are querying (Feature Layer, Map Service, Image Service) and the version of ArcGIS Server that hosts the service some of these options may not be available. It provides a chainable API for building request parameters and executing queries. L.esri.Query is an abstraction for the query API included in Feature Layers and Image Services.
