Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.36 KB

File metadata and controls

44 lines (37 loc) · 1.36 KB

⚠️ This document is aim for older versions (from 2.0.0 to 2.2.9). Document for new version is https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md


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.