aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2015-08-17 17:16:16 -0300
committerSilvio <silvio@socioambiental.org>2015-08-17 17:16:16 -0300
commit9b52f2a7a5e4cee172a9392631e2a5e0ee0f1437 (patch)
treec66dc8aa254f5fe06cd8a4f76abf2c1b4d0d9cbf
parent94e02a0a167ac5262c64e6b7d4353beb946e9818 (diff)
downloadgmap_arcgis_js-9b52f2a7a5e4cee172a9392631e2a5e0ee0f1437.tar.gz
gmap_arcgis_js-9b52f2a7a5e4cee172a9392631e2a5e0ee0f1437.tar.bz2
Check for config.proxyUrl and config.createMap
-rw-r--r--gmap_arcgis.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index b594597..4d92def 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -27,7 +27,7 @@ function gmapArcgis(config) {
}
// Proxy settings
- if (config.proxyUrl != undefined) {
+ if (config.proxyUrl != undefined && config.proxyUrl != null) {
gmaps.ags.Config.proxyUrl = config.proxyUrl;
if (config.alwaysUseProxy != undefined) {
@@ -36,7 +36,7 @@ function gmapArcgis(config) {
}
// Map initialization
- if (config.createMap == true && config.mapId != null && config.mapOptions != null) {
+ if (config.createMap != undefined && config.createMap == true && config.mapId != null && config.mapOptions != null) {
config.map = new google.maps.Map(document.getElementById(config.mapId), config.mapOptions);
}