Options
All
  • Public
  • Public/Protected
  • All
Menu

A LineString geometry contains a number of LatLngs.

Hierarchy

  • LineString

Implements

Index

Constructors

constructor

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

    Returns LatLng[]

getAt

  • Returns the n-th contained LatLng.

    Parameters

    • n: number

    Returns LatLng

getLength

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

    Returns number

getType

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

    Returns string

Generated using TypeDoc