Packagecom.esri.ags.tasks
Classpublic class IdentifyTask
InheritanceIdentifyTask Inheritance BaseTask Inheritance flash.events.EventDispatcher

Performs an identify operation on the layers of a map service resource exposed by the ArcGIS Server REST API (available in ArcGIS Server 9.3 and above).

Set the url to the ArcGIS Server REST resource that represents an IdentifyTask, e.g. 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

IdentifyParameters
IdentifyResult
com.esri.ags.events.IdentifyEvent
Live Sample - Identify features.


Public Properties
 PropertyDefined by
 Inheritedconcurrency : String = "multiple"
Value that indicates how to handle multiple calls to the same task.
BaseTask
 InheriteddisableClientCaching : 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
The last result of the execute function.
IdentifyTask
 InheritedproxyURL : String
The URL to proxy the request through.
BaseTask
 InheritedrequestTimeout : Number = -1
The request timeout in seconds.
BaseTask
 InheritedshowBusyCursor : Boolean = false
If true, a busy cursor is displayed while a service is executing.
BaseTask
 Inheritedtoken : String
Token for accessing a secure task.
BaseTask
 Inheritedurl : String
URL of the task.
BaseTask
Public Methods
 MethodDefined 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
Events
 EventSummaryDefined by
   Dispatched when an IdentifyTask fails.IdentifyTask
   Dispatched on success.IdentifyTask
Property detail
executeLastResultproperty
public var executeLastResult:Array

The last result of the execute function.

This property can be used as the source for data binding.

See also

Constructor detail
IdentifyTask()constructor
public function IdentifyTask(url:String = null)

Creates a new IdentifyTask object.

Parameters
url:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a map layer.
Method detail
execute()method
public function 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. 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.

Returns
AsyncToken
Event detail
faultevent 
Event object type: mx.rpc.events.FaultEvent

Dispatched when an IdentifyTask fails.

identifyCompleteevent  
Event object type: com.esri.ags.events.IdentifyEvent
IdentifyEvent.type property = com.esri.ags.events.IdentifyEvent.IDENTIFY_COMPLETE

Dispatched on success.

Defines the value of the type property of an identifyComplete event object.