PHP

PHP

HOT TUTORIALS

Google Maps JavaScript API v3: method Polygon.getBounds

In Google Maps JavaScript API v2, Polygon had a getBounds() method, but that doesn’t exist for v3 Polygon. Here's the solution: if (!google.maps.Polygon.prototype.getBounds) { google.maps.Polygon.prototype.getBounds =...