Options
All
  • Public
  • Public/Protected
  • All
Menu

A GeometryCollection contains a number of geometry objects. Any LatLng or LatLngLiteral objects are automatically converted to Data.Point geometry objects.

Hierarchy

  • GeometryCollection

Implements

Index

Constructors

constructor

  • A GeometryCollection contains a number of geometry objects. Any LatLng or LatLngLiteral objects are automatically converted to Data.Point geometry objects.

    Parameters

    Returns GeometryCollection

Methods

forEachLatLng

  • forEachLatLng(callback: (a: LatLng) => void): void
  • Repeatedly invokes the given function, passing a point from the geometry to the function on each invocation.

    Parameters

    Returns void

getArray

  • Returns an array of the contained geometry objects. A new array is returned each time getArray() is called.

    Returns Geometry[]

getAt

  • Returns the n-th contained geometry object.

    Parameters

    • n: number

    Returns Geometry

getLength

  • getLength(): number
  • Returns the number of contained geometry objects.

    Returns number

getType

  • getType(): string
  • Returns the string "GeometryCollection".

    Returns string

Generated using TypeDoc