diff options
author | Silvio <silvio@socioambiental.org> | 2015-06-01 16:37:17 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2015-06-01 16:37:17 -0300 |
commit | 0ccce2f27495396bcb838f003c47f238142f0311 (patch) | |
tree | b62e06fad14083c800a5537dfd5ca1a2ae5a09df | |
parent | eb0c98d5c7ee4961f629f5c38a78c80c87cb1193 (diff) | |
download | gmap_arcgis_js-0ccce2f27495396bcb838f003c47f238142f0311.tar.gz gmap_arcgis_js-0ccce2f27495396bcb838f003c47f238142f0311.tar.bz2 |
Minor fixes at showPolygonFromQuery / showPolygonFromQueryMultiple
-rw-r--r-- | gmap_arcgis.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 89ced12..80494c4 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -664,6 +664,10 @@ function gmapArcgis(config) { if (name != undefined) { if (count != undefined) { + if (self.config['layers'][name] == undefined) { + self.config['layers'][name] = { }; + } + if (self.config['layers'][name].overlay == undefined) { self.config['layers'][name].overlay = []; } @@ -693,7 +697,7 @@ function gmapArcgis(config) { for (var n in layers) { var layer = layers[n]; var args = jQuery.extend(true, {}, params); - var url = URL_ARCGIS_TIS + '/' + layer + '/query?where=' + where + '&f=pjson'; + var url = params.uri + '/' + layer + '/query?where=' + where + '&f=pjson'; // A closure here keeps the right layer to the async response (function(layer, args) { |