The FindAndZoomCommand command class is used to locate and display a feature based on input parameters. Returns an array of Q.Promise
var options = { featureSourceId: "http://tlbstws4.dot.state.fl.us/ArcGIS/rest/services/GEV_DMS/MapServer", featureTypeId: 'http://tlbstws4.dot.state.fl.us/ArcGIS/rest/services/GEV_DMS/MapServer/175', zoom: true, criteria: "DISTRICT='02'", resultset: false }; var command = new FindAndZoomCommand(); commmand.execute(options).then((promiseresults) => { highlight = promiseresults[1]; });
FeatureSourceService map instance.
Map map instance.
QueryResultService.
Find the feature specified in the FindAndZoomCommandOptions
FindAndZoomCommandOptions.
a Q.Promise of FindAndZoomCommandResult.
The FindAndZoomCommand command class is used to locate and display a feature based on input parameters. Returns an array of Q.Promise
var options = { featureSourceId: "http://tlbstws4.dot.state.fl.us/ArcGIS/rest/services/GEV_DMS/MapServer", featureTypeId: 'http://tlbstws4.dot.state.fl.us/ArcGIS/rest/services/GEV_DMS/MapServer/175', zoom: true, criteria: "DISTRICT='02'", resultset: false };
var command = new FindAndZoomCommand();
commmand.execute(options).then((promiseresults) => { highlight = promiseresults[1]; });