1
0
forked from MTSR/mapserver
mapserver/static/js/main.js
2019-08-30 10:59:55 +02:00

16 lines
373 B
JavaScript

import { getConfig } from './api.js';
import routes from './routes.js';
import wsChannel from './WebSocketChannel.js';
import config from './config.js';
import { hashCompat } from './compat.js';
// hash route compat
hashCompat();
getConfig().then(cfg => {
config.set(cfg);
wsChannel.connect();
m.route(document.getElementById("app"), "/map/0/12/0/0", routes);
});