Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FeatureCollection

FeatureCollection contains a collection of Feature and the type property of a feature collection ("FeatureCollection").

example



var collection = new FeatureCollection([{ type: "Feature", geometry: { type: "Point", coordinates: [-80.9, 26] }, properties: { ID: 1, SPOT: 'y' } }]); ;

Hierarchy

  • FeatureCollection

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    Returns FeatureCollection

  • Parameters

    • Optional features: Feature[]

      is an array of Feature.

    Returns FeatureCollection

Properties

Private _features

_features: any

features

  • get features(): Feature[]
  • set features(features: Feature[]): void
  • The features property of a feature collection is an array of Feature.

    Returns Feature[]

  • The features property of a feature collection is an array of Feature.

    Parameters

    • features: Feature[]

    Returns void

type

type: string = "FeatureCollection"

The type property of a feature collection ("FeatureCollection").