public class IdentifyTask
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
IdentifyTask.Options |
Modifier and Type | Method and Description |
---|---|
void |
addCompleteHandler(IdentifyHandler handler)
Add event handler for completion.
|
void |
addErrorHandler(ErrorHandler handler)
Add event handler for errors.
|
static IdentifyTask |
create(java.lang.String url)
Creates a new IdentifyTask object.
|
static IdentifyTask |
create(java.lang.String url,
IdentifyTask.Options options)
Creates a new IdentifyTask object.
|
Deferred |
execute(IdentifyParameters identifyParams)
Sends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters
specified in the identifyParameters argument.
|
Deferred |
execute(IdentifyParameters identifyParams,
IdentifyCallback callback)
Sends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters
specified in the identifyParameters argument.
|
public static final IdentifyTask create(java.lang.String url)
url
- -URL to the ArcGIS Server REST resource that represents a map service.public static final IdentifyTask create(java.lang.String url, IdentifyTask.Options options)
url
- - URL to the ArcGIS Server REST resource that represents a map service.options
- - Optional parameterspublic final Deferred execute(IdentifyParameters identifyParams, IdentifyCallback callback)
identifyParams
- - Specifies the criteria used to identify the features.callback
- - The function to call when the method has completed.public final Deferred execute(IdentifyParameters identifyParams)
identifyParams
- - Specifies the criteria used to identify the features.public final void addCompleteHandler(IdentifyHandler handler)
handler
- - Fires when the identify operation is complete.public final void addErrorHandler(ErrorHandler handler)
handler
- - Fires when an error occurs when executing the task.