From 9d2eee882abf0c30519e99707174dfa319e7cd70 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 5 Mar 2026 23:25:51 +0000 Subject: [PATCH] Add parcel overlay to map on planning bench --- html/template/sync/planning-root.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/html/template/sync/planning-root.html b/html/template/sync/planning-root.html index bfd0df0a..44216fa6 100644 --- a/html/template/sync/planning-root.html +++ b/html/template/sync/planning-root.html @@ -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