Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.16 KB

File metadata and controls

39 lines (34 loc) · 1.16 KB

LatLngBounds class

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

Create

var latLngBounds  = new plugin.google.maps.LatLngBounds([Array.<LatLng>]);

Methods

contains(LatLng) Return Value: boolean

Returns true if the given lat/lng is in this bounds.
extend(LatLng) Return Value: None

Extends this bounds to contain the given point.
getCenter() Return Value: LatLng

Computes the center of this LatLngBounds
toString() Return Value: string

Converts to string.
toUrlValue(precision?:number) Return Value: 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.