diff options
-rw-r--r-- | gmap_arcgis.js | 15 |
1 files 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, |