[TASK] Support retina tiles variable

This commit is contained in:
Xaver Maierhofer 2016-07-21 00:39:33 +02:00
parent 15762c57cc
commit 3440af70df

View File

@ -245,7 +245,7 @@ define(["map/clientlayer", "map/labelslayer",
var layers = config.mapLayers.map(function (d) {
return {
"name": d.name,
"layer": "url" in d ? L.tileLayer(d.url, d.config) : console.warn("Missing map url")
"layer": "url" in d ? L.tileLayer(d.url.replace("{retina}", L.Browser.retina ? '@2x' : ''), d.config) : console.warn("Missing map url")
};
});