2019-01-13 13:15:11 +00:00
|
|
|
"use strict";
|
|
|
|
|
2019-01-17 12:48:09 +00:00
|
|
|
import '../css/main.css';
|
2019-06-09 22:51:41 +00:00
|
|
|
// import '../../node_modules/leaflet-timedimension/dist/leaflet.timedimension.control.css';
|
2019-01-17 12:48:09 +00:00
|
|
|
|
2019-01-17 13:56:25 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2019-01-19 22:04:51 +00:00
|
|
|
import MapManager from './MapManager.mjs';
|
2019-01-17 13:56:25 +00:00
|
|
|
|
2019-04-14 21:23:32 +00:00
|
|
|
import iso8601 from 'iso8601-js-period';
|
2019-04-14 20:59:06 +00:00
|
|
|
|
2019-01-13 13:15:11 +00:00
|
|
|
window.addEventListener("load", function(_event) {
|
2019-01-20 00:17:54 +00:00
|
|
|
window.map_manager = new MapManager();
|
|
|
|
window.map_manager.setup();
|
2019-01-13 13:15:11 +00:00
|
|
|
});
|
2019-04-14 21:09:33 +00:00
|
|
|
|
2019-04-14 21:23:32 +00:00
|
|
|
window.nezasa = {
|
|
|
|
iso8601
|
|
|
|
};
|
|
|
|
|
2019-04-14 21:09:33 +00:00
|
|
|
// 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.`);
|