Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DrawFeatureCommand

The DrawFeatureCommand class is used to draw an array of Feature to a map instance.
Returns an array of MapGraphic

example



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));

Hierarchy

  • DrawFeatureCommand

Implements

  • Command<MapGraphic[]>
  • Command<MapGraphic[]>
  • Command<MapGraphic[]>

Index

Constructors

constructor

Properties

Private _id

_id: any

Private _mapmanager

_mapmanager: any

Private _resultSetManager

_resultSetManager: any

Private _selectionManager

_selectionManager: any

Private addGraphicToMap

  • addGraphicToMap(graphic: MapGraphic, options: DrawFeatureCommandOptions): MapGraphic
  • Add graphic to map with current drawing settings; returns a disposal function and id

    Parameters

    Returns MapGraphic

    a MapGraphic.

Private getAttributeMetaData

  • getAttributeMetaData(attributeExtensions: AttributeExtensionCollection, feature: IFeature, idAttribute: string): AttributeMetadataMap
  • Parameters

    • attributeExtensions: AttributeExtensionCollection
    • feature: IFeature
    • idAttribute: string

    Returns AttributeMetadataMap

Methods

execute

Object literals

Private _defaultGraphicOptions

_defaultGraphicOptions: object

color

color: string = "#FF0000"

dashArray

dashArray: string = "1"

fillColor

fillColor: string = "#FF0000"

radius

radius: number = 8

weight

weight: number = 2