Add parcel overlay to map on planning bench

This commit is contained in:
Eli Ribble 2026-03-05 23:25:51 +00:00
parent a4a6ab8f3a
commit 9d2eee882a
No known key found for this signature in database

View file

@ -78,6 +78,20 @@
// Initialize - runs when component loads
init() {
this.loadData();
const map = document.querySelector("map-multipoint");
window.addEventListener("load", () => {
map.on("load", () => {
map.addLayer({
id: "parcel",
source: "tegola",
"source-layer": "parcel",
type: "line",
paint: {
"line-color": "#0f0",
},
});
});
});
},
// Load all data