Skip to content

Commit

Permalink
Handle change:regionID
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Nov 16, 2024
1 parent ee7b90f commit bf826d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,16 @@ async function buildMarkerMap(bulletins: AvalancheBulletin[]) {
: undefined;
},
});

layer.on("change:regionID", () => {

Check failure on line 301 in src/main.ts

View workflow job for this annotation

GitHub Actions / build

No overload matches this call.
layer.changed();
});

map.addLayer(layer);

map.on("pointermove", (e) => {
const regionID = findMicroRegionID(e);
layer.set("regionID", regionID);
layer.changed();
});

map.on("click", (e) => {
Expand Down

0 comments on commit bf826d1

Please sign in to comment.