public class ClosestFacilityTask
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
void |
addSolveCompleteHandler(ClosestFacilitySolveCompleteHandler handler) |
static boolean |
assertLoaded()
Check that the esri.tasks.closestfacility has been loaded
|
static ClosestFacilityTask |
create()
Creates a new ClosestFacilityTask object.
|
static ClosestFacilityTask |
create(java.lang.String url)
Creates a new ClosestFacilityTask object.
|
Deferred |
solve(ClosestFacilityParameters params)
Solve the closest facility.
|
Deferred |
solve(ClosestFacilityParameters params,
ClosestFacilitySolveCallback callback)
Solve the closest facility.
|
public static ClosestFacilityTask create()
public static ClosestFacilityTask create(java.lang.String url)
url
- - URL to the ArcGIS Server REST resource that represents a network analysis service.
Use the Service Directory to obtain the URL.public static boolean assertLoaded()
public final Deferred solve(ClosestFacilityParameters params, ClosestFacilitySolveCallback callback)
params
- - The ClosestFacilityParameters object.callback
- - functions to be called when server respondspublic final Deferred solve(ClosestFacilityParameters params)
params
- - The ClosestFacilityParameters object.public final void addSolveCompleteHandler(ClosestFacilitySolveCompleteHandler handler)
handler
- - Fired when the ClosestFacilityTask solve is complete.