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>
<!-- djlint:off -->
<script defer type="text/javascript">
let MAP
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>
<!-- djlint:on -->