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