Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryCollection

The GeometryCollection class is that defines an array of geometries.

example



var point1 = new Point( { type: 'Point', coordinates: [-82.44140625, 29.20012347764] });
var point2 = new Point( { type: 'Point', coordinates: [-81.44140625, 29.20012347764] });
var geoCollection = new GeometryCollection([ point1, point2]);

Hierarchy

  • GeometryCollection

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    Returns GeometryCollection

  • Parameters

    • Optional geometries: GeometryObject[]

      is an array of GeometryObject.

    Returns GeometryCollection

  • Parameters

    • Optional geometries: GeometryObject[]

      is an array of GeometryObject.

    Returns GeometryCollection

Properties

geometries

geometries: GeometryObject[] = []

The geometries property of a geometry collection is an array of GeometryObject.

type

  • get type(): string
  • The type property of a geometry collection ("GeometryCollection").

    Returns string