layer selection

This commit is contained in:
NatureFreshMilk 2019-03-01 07:29:17 +01:00
parent 873843ee54
commit e2dbaa92df

View File

@ -24,11 +24,12 @@ api.getConfig().then(function(cfg){
//All layers
cfg.layers.forEach(function(layer){
var tileLayer = new RealtimeTileLayer(wsChannel, layer.id);
tileLayer.addTo(map);
layers[layer.name] = tileLayer;
});
//current layer
layerMgr.getCurrentLayer().addTo(map);
//All overlays
Overlaysetup(cfg, map, overlays, wsChannel, layerMgr);