-
Notifications
You must be signed in to change notification settings - Fork 917
Map.getVisibleRegion()
Return the latitude and longitude coordinates of the corner of the map as LatLngBounds.
###Description This polygon can be a trapezoid instead of a rectangle, because a camera can have tilt. If the camera is directly over the center of the camera, the shape is rectangular, but if the camera is tilted, the shape will appear to be a trapezoid whose smallest side is closest to the point of view.
###Code
map.getVisibleRegion(function(latLngBounds) {
alert(latLngBounds.northeast.toUrlValue() + ", " + latLngBounds.southeast.toUrlValue());
});
If you get an error, feel free to ask me on the official community or the issue list.
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.
New versions will be announced through the official community. Stay tune!
Feel free to ask me on the issues tracker.
Or on the official community is also welcome!
New version 2.0-beta2 is available.
The cordova-googlemaps-plugin v2.0 has more faster, more features.