lib/map: support wms layers. (#89)
This commit is contained in:
parent
100268f3b7
commit
1235d8cb46
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue