aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js6
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) {