The DrawFeatureCommand class is used to draw an array of Feature to a map instance. Returns an array of MapGraphic
var feature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { id: 1, ImAProperty: true } }; var drawCommandOptions = { noSelect: true, drawFeatures: [feature] }; var command = new DrawFeatureCommand(map); commmand.execute(drawCommandOptions).then((graphics)=>doSomething(graphics));
Map map instance.
QueryResultService.
GraphicSelectionService.
Add graphic to map with current drawing settings; returns a disposal function and id
MapGraphic
DrawFeatureCommandOptions.
a MapGraphic.
Draw feature on the map and return an array of MapGraphic.
a Q.Promise of an array of MapGraphic.
The DrawFeatureCommand class is used to draw an array of Feature to a map instance.
Returns an array of MapGraphic
var feature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { id: 1, ImAProperty: true } };
var drawCommandOptions = { noSelect: true, drawFeatures: [feature] };
var command = new DrawFeatureCommand(map);
commmand.execute(drawCommandOptions).then((graphics)=>doSomething(graphics));