Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.28 KB

File metadata and controls

45 lines (37 loc) · 1.28 KB

💚 This is the latest document.

LatLngBounds class

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


API Reference

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.