Add traps to cell details page

This commit is contained in:
Eli Ribble 2026-01-15 21:00:42 +00:00
parent 0bd1a10753
commit 885b58a0ab
No known key found for this signature in database
6 changed files with 109 additions and 22 deletions

View file

@ -132,14 +132,13 @@ class MapAggregate extends HTMLElement {
'fill-color': '#0dcaf0'
}
});
var self = this;
map.addInteraction("tegola-click-interaction", {
type: "click",
target: { layerId: "mosquito_source" },
handler: (e) => {
const coordinates = e.feature.geometry.coordinates.slice();
const properties = e.feature.properties;
self.dispatchEvent(new CustomEvent("cell-click", {
this.dispatchEvent(new CustomEvent("cell-click", {
bubbles: true,
composed: true, // Allows event to cross shadow DOM boundary
detail: {