layer selection
This commit is contained in:
parent
873843ee54
commit
e2dbaa92df
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user