| Package | com.esri.ags.tasks |
| Class | public class IdentifyTask |
| Inheritance | IdentifyTask BaseTask flash.events.EventDispatcher |
Set the URL to the ArcGIS Server REST resource that represents a map service, for example, http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer. For more information on constructing a URL, see Using the ArcGIS Services Directory.
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 | |
| executeLastResult : Array [read-only]
Array of IdentifyResult object returned from last call to the execute function. | IdentifyTask | ||
![]() | 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 | |
![]() | token : String
Token for accessing a secure task. | BaseTask | |
![]() | url : String
URL of the task. | BaseTask | |
| Method | Defined By | ||
|---|---|---|---|
IdentifyTask(url:String = null)
Creates a new IdentifyTask object. | IdentifyTask | ||
execute(identifyParameters:IdentifyParameters, responder:IResponder = null):AsyncToken
Sends a request to the ArcGIS REST map service resource to identify features
based on the IdentifyParameters specified in the identifyParameters argument. | IdentifyTask | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when execute operation successfully completes. | IdentifyTask | |||
| Dispatched when an IdentifyTask fails. | IdentifyTask | |||
| executeLastResult | property |
executeLastResult:Array [read-only] Array of IdentifyResult object returned from last call to the execute function.
This property can be used as the source for data binding.
public function get executeLastResult():ArraySee also
| IdentifyTask | () | Constructor |
public function IdentifyTask(url:String = null)Creates a new IdentifyTask object.
Parametersurl:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a map service.
|
| execute | () | method |
public function execute(identifyParameters:IdentifyParameters, responder:IResponder = null):AsyncTokenSends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters specified in the identifyParameters argument. On completion, the identifyComplete event is fired and the optional responder is called.
Parameters
identifyParameters:IdentifyParameters — The criteria used to identify the features.
| |
responder:IResponder (default = null) — The responder to call on result or fault.
|
AsyncToken —
|
| executeComplete | Event |
com.esri.ags.events.IdentifyEventcom.esri.ags.events.IdentifyEvent.EXECUTE_COMPLETEDispatched when execute operation successfully completes.
Defines the value of thetype property of an executeComplete event object.
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when an IdentifyTask fails.