Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Feature

Feature is an implementation of IFeature.

example



var exampleIFeature = { type: "Feature", geometry: { type: "Point", coordinates: [-82.4414, 29.2001] }, properties: { ID: 1, SPOT: 'y' } };
var featureTypeDetails = { id: 'ID', name: 'SPOT', description: 'SPOT', supportedGeometryTypes: ["Point"], attributes: DrawFeatureCommand.getAttributeMetaData(new AttributeExtensionCollection(), exampleFeature, 'ID') };
var feature = new Feature(featureTypeDetails);

Hierarchy

  • Feature

Implements

Index

Constructors

constructor

Properties

Private _displayProperties

_displayProperties: any

Private _featureType

_featureType: any

Private _geometry

_geometry: any

Private _properties

_properties: any

displayProperties

  • get displayProperties(): IPromise<FeatureProperties>
  • Returns IPromise<FeatureProperties>

featureType

  • get featureType(): FeatureTypeDetails
  • The featureType property of a feature FeatureTypeDetails.

    Returns FeatureTypeDetails

geometry

  • get geometry(): GeometryObject
  • set geometry(geometry: GeometryObject): void
  • The geometry property of a feature GeometryObject.

    Returns GeometryObject

  • The geometry property of a feature GeometryObject.

    Parameters

    • geometry: GeometryObject

    Returns void

properties

  • get properties(): FeatureProperties
  • set properties(props: FeatureProperties): void
  • The properties of a feature FeatureProperties.

    Returns FeatureProperties

  • The properties of a feature FeatureProperties.

    Parameters

    • props: FeatureProperties

    Returns void

type

type: string = "Feature"

The type property of a feature ("Feature").

Methods

toJSON

  • toJSON(): any
  • toJSON(): any
  • Convert this feature to json

    Returns any

    json.

  • Convert this feature to json

    Returns any

    json.