lib/map: support wms layers. (#89)

This commit is contained in:
Simon Wüllhorst 2017-04-12 01:56:05 +02:00 committed by PetaByteBoy // Milan Pässler
parent 100268f3b7
commit 1235d8cb46

View file

@ -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)
}
})