L.esri.Tasks.Task
L.esri.Tasks.Task
is a generic class that provides the foundation for calling operations on ArcGIS Online and ArcGIS Server Services like query, find and identify.
Constructor
Constructor |
Description |
L.esri.Tasks.task(<Object> options )
L.esri.Tasks.task(<Service> endpoint ) |
Options includes a url parameter which refers to the ArcGIS Server or ArcGIS Online service you would like to consume. |
Options
Option |
Type |
Default |
Description |
url |
String |
'' |
URL of the ArcGIS Server or ArcGIS Online service you would like to consume. |
proxy |
String |
false |
URL of an ArcGIS API for JavaScript proxy or ArcGIS Resource Proxy to use for proxying POST requests. |
useCors |
Boolean |
true |
If this task should use CORS when making GET requests. |
Methods
Method |
Returns |
Description |
request(<String> url , <Object> params , <Function> callback , <Object> context ) |
this |
Makes a request to the associated service. The service's URL will be combined with the path option and parameters will be serialized. Accepts an optional function context for the callback. |
token(<String> token ) |
this |
Adds a token to this request if the service requires authentication. Will be added automatically if used with a service. |
Edit this page on GitHub