forked from MTSR/mapserver
root error catching
This commit is contained in:
parent
18dcdc21fb
commit
236f8d8997
@ -9,10 +9,13 @@ import layerManager from './LayerManager.js';
|
|||||||
// hash route compat
|
// hash route compat
|
||||||
hashCompat();
|
hashCompat();
|
||||||
|
|
||||||
getConfig().then(cfg => {
|
getConfig()
|
||||||
|
.then(cfg => {
|
||||||
layerManager.setup(cfg.layers);
|
layerManager.setup(cfg.layers);
|
||||||
config.set(cfg);
|
config.set(cfg);
|
||||||
wsChannel.connect();
|
wsChannel.connect();
|
||||||
m.route(document.getElementById("app"), "/map/0/12/0/0", routes);
|
m.route(document.getElementById("app"), "/map/0/12/0/0", routes);
|
||||||
|
})
|
||||||
|
.catch(e => {
|
||||||
|
document.getElementById("app").innerHTML = JSON.stringify(e);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user