From 2c1c7aad63d69d7402d723fe7633eb25937a8cce Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 25 Nov 2014 17:36:21 -0200 Subject: Adding support for alwaysUseProxy --- gmap_arcgis.js | 9 +++++++-- 1 file 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 -- cgit v1.2.3