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.

Access by calling const {Data} = await google.maps.importLibrary("maps"). See https://developers.google.com/maps/documentation/javascript/libraries.

Hierarchy

  • GeometryCollection

Implements

Index

Constructors

Methods

  • 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

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

    Returns Geometry[]

  • Returns the n-th contained geometry object.

    Parameters

    • n: number

    Returns Geometry

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

    Returns number

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

    Returns string

Generated using TypeDoc