Skip to content

Commit

Permalink
fix URL generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Sep 15, 2015
1 parent d514f30 commit 490b461
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/wq/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ map.getLayerConfs = function(page, itemid, mode, url) {
layerconf.url = tmpl.render(layerconf.url, {
'id': itemid,
'url': baseurl
}) + params;
});
if (params && layerconf.url.indexOf('?') > -1) {
params = params.replace(/^\?/, "&");
}
layerconf.url += params;
layers.push(layerconf);
});
return layers;
Expand Down

0 comments on commit 490b461

Please sign in to comment.