Expose the MAP variable at the global scope to ease debugging

This commit is contained in:
Alexis Métaireau 2024-01-15 12:15:35 +01:00
parent 66d2345841
commit 1eb0f352c9

View file

@ -2,8 +2,9 @@
<div id="map"></div> <div id="map"></div>
<!-- djlint:off --> <!-- djlint:off -->
<script defer type="text/javascript"> <script defer type="text/javascript">
let MAP
window.addEventListener('DOMContentLoaded', (event) => { window.addEventListener('DOMContentLoaded', (event) => {
let MAP = new L.U.Map("map", {{ map_settings|notag|safe }}); MAP = new L.U.Map("map", {{ map_settings|notag|safe }});
}); });
</script> </script>
<!-- djlint:on --> <!-- djlint:on -->