Air-Quality-Web/client_src/js/index.mjs
Starbeamrainbowlabs 278adb8468
Work on the voronoi overlay some more
We still need to write some masty rendering code, and lots of other 
connecting glue
2019-06-09 23:51:41 +01:00

25 lines
748 B
JavaScript

"use strict";
import '../css/main.css';
// import '../../node_modules/leaflet-timedimension/dist/leaflet.timedimension.control.css';
// ----------------------------------------------------------------------------
import MapManager from './MapManager.mjs';
import iso8601 from 'iso8601-js-period';
window.addEventListener("load", function(_event) {
window.map_manager = new MapManager();
window.map_manager.setup();
});
window.nezasa = {
iso8601
};
// This needs to be here rather than in onload, because we need to ensure it's loaded now
console.log("iso8601-js-period namespace: ", window.nezasa);
// Ensure terser doesn't tree-shake iso8601-js-period
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);