Expose the MAP variable at the global scope to ease debugging
This commit is contained in:
parent
66d2345841
commit
1eb0f352c9
1 changed files with 2 additions and 1 deletions
|
@ -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 -->
|
||||||
|
|
Loading…
Reference in a new issue