aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2015-07-06 19:05:01 -0300
committerSilvio <silvio@socioambiental.org>2015-07-06 19:05:01 -0300
commitc9b831a7ac9f7a8e448e642059e5dcc0ba36042b (patch)
tree6eeb8a264841efd0d03544c615efe76bafb3b07c
parent3b6e282ccaf48c7db5d06049324fc0a08b780d21 (diff)
parentdf7647f831e2c3637eea60ab1232f08969712d82 (diff)
downloadgmap_arcgis_js-c9b831a7ac9f7a8e448e642059e5dcc0ba36042b.tar.gz
gmap_arcgis_js-c9b831a7ac9f7a8e448e642059e5dcc0ba36042b.tar.bz2
Merge branch 'master' of ssh://isasite/home/isa/projetos/git/gmap_arcgis_js
-rw-r--r--gmap_arcgis.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 26a3b79..7d89422 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -33,6 +33,11 @@ function gmapArcgis(config) {
}
}
+ // Map initialization
+ if (config.mapId != null && config.mapOptions != null) {
+ config.map = new google.maps.Map(document.getElementById(config.mapId), config.mapOptions);
+ }
+
// Return a Gmap ArcGIS object
return {
// Storable properties
@@ -497,7 +502,7 @@ function gmapArcgis(config) {
return;
}
- if (jQuery.inArray(this.config.mapName, this.config[type][element]['showOn']) != -1) {
+ if (jQuery.inArray(this.config.mapId, this.config[type][element]['showOn']) != -1) {
this[callback](element);
}
},