aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-22 17:48:26 -0300
committerSilvio <silvio@socioambiental.org>2013-04-22 17:48:26 -0300
commit4992aa623e5c020e2493c17155b989f56117b64f (patch)
tree67d084ecb6a82ff51192b4c102a873fe958ce350
parent5a5ed43859ec8b3a53cfede58acf05c137e5b6b7 (diff)
downloadgmap_arcgis_js-4992aa623e5c020e2493c17155b989f56117b64f.tar.gz
gmap_arcgis_js-4992aa623e5c020e2493c17155b989f56117b64f.tar.bz2
Add getBounds() from gmapArcgis()
-rw-r--r--gmap_arcgis.js15
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,