Move map outside of "select report" conditional template

So we can load it at any time, and not have to reload it.
This commit is contained in:
Eli Ribble 2026-03-07 01:38:05 +00:00
parent f1f9c8f902
commit 2c0d545fe7
No known key found for this signature in database
2 changed files with 31 additions and 15 deletions

View file

@ -79,8 +79,8 @@
// Initialize - runs when component loads
init() {
this.loadData();
const map = document.querySelector("map-multipoint");
window.addEventListener("load", () => {
document.addEventListener("DOMContentLoaded", () => {
const map = document.querySelector("map-multipoint");
map.on("load", () => {
map.addLayer({
id: "parcel",