This content has moved to developers.arcgis.com. Please update your bookmarks!
L.esri.Related.Query
Extends L.esri.Task
An abstraction to assist querying related tables published in ArcGIS Server or ArcGIS Online. You can find more information and the source code for this plugin here.
Constructor
Extends L.esri.Task
Constructor | Options | Description |
---|---|---|
L.esri.Related.query(<L.esri.FeatureLayer> or L.esri.Related.query(<Object> |
|
Accepts either an options object or an instance of L.esri.FeatureLayer . |
Options
Accepts all L.esri.Task
options. When used, the url
option is required.
Methods
Method | Returns | Description |
---|---|---|
objectIds(<Array> |
|
The ObjectId(s) of the features to query for related records. |
relationshipId(<String> |
|
The id of the relationship itself. |
run(<Function> |
|
Executes the query, passing the previously supplied input parameters. |
fields(<Array> |
|
(Optional) Indicates which fields from matched records to include in response (default is 'all'). |
returnGeometry(<Boolean> |
|
(Optional) Indicates whether or request the geometry of response features (default is true). |
returnZ(<Boolean> |
|
(Optional) Indicates whether to request information about elevation in response features (default is true). |
returnM(<Boolean> |
|
(Optional) Indicates whether to request information about 4-D M values in response features (default is false). |
precision(<Number> |
|
(Optional) Indicates the desired decimal precision of response feature geometries. |
definitionExpression(<String> |
|
(Optional) An opportunity to specify a SQL where clause to further filter results. (Example: "STATE_NAME = 'California'") |
Results
Property | Type | Description |
---|---|---|
features |
[<L.geoJSON>] |
The result of a valid request will be composed of an array of L.geoJSON features. |
Example
{
features: [{
"type": "Feature",
"properties": {
...
},
"id": 1
},
...
]
}