aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-11-25 17:36:21 -0200
committerSilvio <silvio@socioambiental.org>2014-11-25 17:36:21 -0200
commit2c1c7aad63d69d7402d723fe7633eb25937a8cce (patch)
treedb22b9db60bdd96a391553d44b26d37f1a5fa6a0
parent795de1e97f9de89b012db10f8141220d53fd3b69 (diff)
downloadgmap_arcgis_js-2c1c7aad63d69d7402d723fe7633eb25937a8cce.tar.gz
gmap_arcgis_js-2c1c7aad63d69d7402d723fe7633eb25937a8cce.tar.bz2
Adding support for alwaysUseProxy
-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