aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
},