aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2015-08-18 15:38:21 -0300
committerSilvio <silvio@socioambiental.org>2015-08-18 15:38:21 -0300
commitfbadaebf419485659774ce52d7c8c89d08c7cd81 (patch)
tree31fa6badd249132dad6fcf2652eb9f00d8edc036
parent9b52f2a7a5e4cee172a9392631e2a5e0ee0f1437 (diff)
downloadgmap_arcgis_js-fbadaebf419485659774ce52d7c8c89d08c7cd81.tar.gz
gmap_arcgis_js-fbadaebf419485659774ce52d7c8c89d08c7cd81.tar.bz2
Change parameter createMap to map
-rw-r--r--gmap_arcgis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 4d92def..81f4f44 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -36,7 +36,7 @@ function gmapArcgis(config) {
}
// Map initialization
- if (config.createMap != undefined && config.createMap == true && config.mapId != null && config.mapOptions != null) {
+ if ((config.map == undefined || config.map == null) && config.mapId != null && config.mapOptions != null) {
config.map = new google.maps.Map(document.getElementById(config.mapId), config.mapOptions);
}