From 1235d8cb462d2336726e14e7bf975ea38ae628f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BCllhorst?= Date: Wed, 12 Apr 2017 01:56:05 +0200 Subject: [PATCH] lib/map: support wms layers. (#89) --- lib/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/map.js b/lib/map.js index aca0097..57198ea 100644 --- a/lib/map.js +++ b/lib/map.js @@ -286,7 +286,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) : L.tileLayer.provider(d.name) + "layer": "url" in d ? "layers" in d.config ? L.tileLayer.wms(d.url, d.config) : L.tileLayer(d.url, d.config) : L.tileLayer.provider(d.name) } })