Options
All
  • Public
  • Public/Protected
  • All
Menu

A LinearRing geometry contains a number of LatLngs, representing a closed LineString. There is no need to make the first LatLng equal to the last LatLng. The LinearRing is closed implicitly.

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

Hierarchy

  • LinearRing

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 LatLngs. A new array is returned each time getArray() is called.

    Returns LatLng[]

  • Returns the n-th contained LatLng.

    Parameters

    • n: number

    Returns LatLng

  • getLength(): number
  • Returns the number of contained LatLngs.

    Returns number

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

    Returns string

Generated using TypeDoc