FDOT.GIS.Client.Components.Commands.QueryCommand allows you to perform queries on mapServices. It returns a
QueryResult object.
CommandVerb¶
"query"
Parameters
Name | Type | Description |
---|
ClientData | object | Allows data to be sent along with the query for use on the client. |
Options | QueryParameters | The actual parameters being passed into query. |
Code Sample
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,
"Operator":0
},
{
"Attribute": { "Name":"WEATCOND" },
"Value":"01",
"ComparisonType":0,
"Operator":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