| Package | com.esri.ags.tasks |
| Class | public class ServiceAreaTask |
| Inheritance | ServiceAreaTask BaseTask flash.events.EventDispatcher |
| Since : | ArcGIS API for Flex 2.0 |
Note: ServiceAreaTask, and other service area related classes, requires ArcGIS Server 10.0 or above and a "service area" layer. A "service area" layer is a layer of type "esriNAServerServiceAreaLayer".
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | autoNormalize : Boolean
If true, normalizes the geometries across the central meridian. | BaseTask | |
![]() | concurrency : String
Value that indicates how to handle multiple calls to the same task. | BaseTask | |
![]() | disableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from
being loaded from the browser's cache. | BaseTask | |
![]() | method : String
URL request method to use. | BaseTask | |
![]() | proxyURL : String
The URL to proxy the request through. | BaseTask | |
![]() | requestTimeout : int
The request timeout in seconds. | BaseTask | |
![]() | showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing. | BaseTask | |
| solveLastResult : ServiceAreaSolveResult
The result returned from last call to the solve function. | ServiceAreaTask | ||
![]() | token : String
Token for accessing a secure task. | BaseTask | |
![]() | url : String
URL of the task. | BaseTask | |
| Method | Defined By | ||
|---|---|---|---|
ServiceAreaTask(url:String = null)
Creates a new ServiceAreaTask instance. | ServiceAreaTask | ||
solve(serviceAreaParameters:ServiceAreaParameters, responder:IResponder = null):AsyncToken
Solve the closest facility. | ServiceAreaTask | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when a RouteTask fails. | ServiceAreaTask | |||
| Dispatched on success. | ServiceAreaTask | |||
| solveLastResult | property |
solveLastResult:ServiceAreaSolveResultThe result returned from last call to the solve function.
This property can be used as the source for data binding.
public function get solveLastResult():ServiceAreaSolveResult public function set solveLastResult(value:ServiceAreaSolveResult):void| ServiceAreaTask | () | Constructor |
public function ServiceAreaTask(url:String = null)Creates a new ServiceAreaTask instance.
Parametersurl:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a service area service.
|
| solve | () | method |
public function solve(serviceAreaParameters:ServiceAreaParameters, responder:IResponder = null):AsyncTokenSolve the closest facility.
Parameters
serviceAreaParameters:ServiceAreaParameters — The criteria used to solve the closest facility.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken |
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when a RouteTask fails.
| solveComplete | Event |
com.esri.ags.events.ServiceAreaEventcom.esri.ags.events.ServiceAreaEvent.SOLVE_COMPLETEDispatched on success.
Defines the value of thetype property of an solveComplete event object.