From 4992aa623e5c020e2493c17155b989f56117b64f Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 22 Apr 2013 17:48:26 -0300 Subject: Add getBounds() from gmapArcgis() --- gmap_arcgis.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index d4fd322..a149daa 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -1,8 +1,11 @@ /** - * Extend Google Maps API. + * Gmap ArcGIS wrapper. */ -google.setOnLoadCallback(function() { - // See https://code.google.com/p/google-maps-extensions/source/browse/google.maps.Polygon.getBounds.js +function gmapArcgis(config) { + /** + * Extend Google Maps API. + * See https://code.google.com/p/google-maps-extensions/source/browse/google.maps.Polygon.getBounds.js + */ if (!google.maps.Polygon.prototype.getBounds) { google.maps.Polygon.prototype.getBounds = function(latLng) { @@ -21,12 +24,8 @@ google.setOnLoadCallback(function() { return bounds; } } -}); -/** - * Gmap ArcGIS wrapper. - */ -function gmapArcgis(config) { + // Return a Gmap ArcGIS object return { // Storable properties config: config, -- cgit v1.2.3