Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DrawFeatureCommandOptions

DrawFeatureCommandOptions are passed into the execution of the DrawFeatureCommand.

example



var feature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { id: 1, ImAProperty: true } };
var drawOptions = { bucketKey: 'default', idKey: 'ID', nameKey: 'DISTRICT', drawFeatures: [feature], graphicOptions: {}, shape: 'Point', noSelect: false, noAttributesPopup: false }

Hierarchy

  • DrawFeatureCommandOptions

Index

Properties

Optional bucketKey

bucketKey: string

The optional bucketKey property is used to specify the graphic bucket to use. options.bucketKey = 'default';

drawFeatures

drawFeatures: IFeature[]

The features to draw.

Optional graphicOptions

graphicOptions: GraphicOptions

The optional graphicOptions property is used to specify the graphic options to use when drawing.

Optional idKey

idKey: string

The optional idKey property is used to specify the Id attribute of the features.

example

options.idKey='Id';

Optional nameKey

nameKey: string

The optional nameKey property is used to specify the Name attribute of the features.

example

options.nameKey='DISTRICT';

Optional noAttributesPopup

noAttributesPopup: boolean

The optional noAttributesPopup property is used to specify whether or not to add an attribute display popup.

Optional noSelect

noSelect: boolean

The optional noSelect property is used to specify whether or not to add a onclick selection handler.

Optional shape

shape: string

The optional shape property is used to specify a shape type coming in.

example

options.shape = 'Polygon';