The create method created the map object on the page and configures it for use. The onReady callback is executed once the map has completed it's initialization.
For more information about commands, see
Commands.
Parameters
Name | Type | Required | Description |
---|
command | String | Yes | The name of the command to execute |
parameter | object | Yes | The parameter object to pass to the command. The format varies per command. |
callback | Function | No | The callback function to execute once the command has finished executing. The return value from the command (if any) will be passed to the callback function |
Examples
NOTE: These examples are based on the gev application. Other applications may expose a different set of commands and have different data sources making these examples invalid.
Zoom to Roadway Id
FDOT.Map.executeCommand("zr", { value: '55010000', highlight: true });
Execute Query Example
FDOT.Map.executeCommand('query',
{"ClientData":
{
"Key":"FOO",
"Title": "Test query",
"Id":1,
"Caption":"This is the table's caption."
},
"Options":
{
"FeatureType":{"Id":"gev-dynamic|1"},
"QueryCriteria":
{
"Attribute": { "Name":"CONTYDOT" },
"Value":"26",
"ComparisonType":0
},
"SecondaryCriteria":
[
{
"Attribute": { "Name":"LGHTCOND" },
"Value":"01",
"ComparisonType":0,
"LogicalOperator":0
},
{
"Attribute": { "Name":"WEATCOND" },
"Value":"01",
"ComparisonType":0,
"LogicalOperator":0
}
],
"GeometryCriteria":
{
"Geometry":
{
"Xmin":-9191487.6328293085,
"Xmax":-9146480.03070931,
"Ymin":3423668.6900953464,
"Ymax":3484832.8673353465
}
}
}},
function(a) {
var queryResult = a.Result;
//Do Something!!!!!
});;
See Also