L.esri.GP.Service

Extends L.esri.Service

A basic wrapper for speaking to ArcGIS Online and ArcGIS Server Geoprocessing services. You can find more information and the source code for this plugin here.

Constructor

ConstructorDescription
L.esri.GP.service(<Object>options)Creates a new Geoprocessing service.

Options

OptionTypeDefaultDescription
urlStringnullThe url of the gp service you'd like to leverage.
pathString'execute'(Optional) The class is able to sniff out execute/submitJob operations from typical geoprocessing services, but setting 'path' can be helpful for SOEs and Network Analyst Services with custom operation names.
asyncBooleanfalse(Optional) Set 'async' to indicate whether a GP service with a custom operation name is synchronous or asynchronous.
asyncIntervalInteger1(Optional) Determines how often the application should check on jobs in progress.

Events

Fires all L.esri.Service events. By default, the plugin assumes services are synchronous and that 'execute' is the appropriate path.

Methods

MethodReturnsDescription
createTask()L.esri.GP.TaskReturns a Geoprocessing task.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.