aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 870f22a..49bb063 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -24,8 +24,13 @@ function gmapArcgis(config) {
}
}
- if (config.proxy != undefined) {
- gmaps.ags.Config.proxyUrl = config.proxy;
+ // Proxy settings
+ if (config.proxyUrl != undefined) {
+ gmaps.ags.Config.proxyUrl = config.proxyUrl;
+
+ if (config.alwaysUseProxy != undefined) {
+ gmaps.ags.Config.alwaysUseProxy = config.alwaysUseProxy;
+ }
}
// Return a Gmap ArcGIS object