Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

FDOT.Map.executeCommand()

RSS
Modified on Thursday, 09 February 2012 04:04 PM by 156.75.200.226 Categorized as Commands, Javascript
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

NameTypeRequiredDescription
commandStringYesThe name of the command to execute
parameterobjectYesThe parameter object to pass to the command. The format varies per command.
callbackFunctionNoThe 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

Any Questions or Comments? Email
Some of the icons created by FamFamFam.