Map APIgetBounds()Methods
Example
Return the southwest latitude/longitude and northeast latitude/longitude of the current viewport:
map.getBounds();
Try it Yourself »
Definition and Usage
The getBounds() method returns the southwest latitude/longitude and northeast latitude/longitude of the current viewport.
Syntax
mapvariable.getBounds();
Return Value
| Value | Description |
|---|---|
| (south-west latitude, longitude),(north-east latitude, longitude) | Defines a rectangle from the southwest and northeast corner points. |
other extensions