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:
parent
f1f9c8f902
commit
2c0d545fe7
2 changed files with 31 additions and 15 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue