From 3440af70df1e333f971918cfe676f6eed554ab33 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Thu, 21 Jul 2016 00:39:33 +0200 Subject: [PATCH] [TASK] Support retina tiles variable --- lib/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/map.js b/lib/map.js index bc91664..e38f936 100644 --- a/lib/map.js +++ b/lib/map.js @@ -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") }; });