Options
All
  • Public
  • Public/Protected
  • All
Menu

A LatLngBounds instance represents a rectangle in geographical coordinates, including one that crosses the 180 degrees longitudinal meridian.

Hierarchy

  • LatLngBounds

Index

Constructors

constructor

Methods

contains

  • Returns true if the given lat/lng is in this bounds.

    Parameters

    Returns boolean

equals

extend

getCenter

  • Computes the center of this LatLngBounds

    Returns LatLng

getNorthEast

  • Returns the north-east corner of this bounds.

    Returns LatLng

getSouthWest

  • Returns the south-west corner of this bounds.

    Returns LatLng

intersects

isEmpty

  • isEmpty(): boolean
  • Returns if the bounds are empty.

    Returns boolean

toJSON

  • Converts to JSON representation. This function is intended to be used via JSON.stringify.

    Returns LatLngBoundsLiteral

toSpan

  • Converts the given map bounds to a lat/lng span.

    Returns LatLng

toString

  • toString(): string
  • Converts to string.

    Returns string

toUrlValue

  • toUrlValue(precision?: number): string
  • Returns a string of the form "lat_lo,lng_lo,lat_hi,lng_hi" for this bounds, where "lo" corresponds to the southwest corner of the bounding box, while "hi" corresponds to the northeast corner of that box.

    Parameters

    • Optional precision: number

    Returns string

union

Generated using TypeDoc