Fix JOSM subdomains conversion

This commit is contained in:
Norbert Renner 2019-04-12 20:19:47 +02:00
parent 86f55e00d2
commit 35c67d7ff8

View file

@ -413,12 +413,13 @@ BR.LayersConfig = L.Class.extend({
} }
} else { } else {
// JOSM // JOSM
var url = convertUrlJosm(url); var josmUrl = url;
var url = convertUrlJosm(josmUrl);
var josmOptions = L.Util.extend(options, { var josmOptions = L.Util.extend(options, {
minZoom: props.min_zoom, minZoom: props.min_zoom,
maxNativeZoom: props.max_zoom, maxNativeZoom: props.max_zoom,
subdomains: getSubdomains(url), subdomains: getSubdomains(josmUrl),
}); });
if (props.type && props.type === 'wms') { if (props.type && props.type === 'wms') {