Skip to content

Commit

Permalink
Revert "[front-end] Close popup when map moves"
Browse files Browse the repository at this point in the history
This reverts commit 5fb25ad.

Reason: this behaviour has been complained about by users during the
demo.  Let's try it without it.
  • Loading branch information
Nick Stokoe committed Nov 26, 2024
1 parent 7ac5e22 commit 4b6f360
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions apps/front-end/src/components/map/mapLibre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,6 @@ export const createMap = (
popup = undefined;
});

map.on("dragstart", () => {
// Close popup when the user moves the map
popup?.remove();
popupIx = undefined;
popup = undefined;
});

map.on("zoomend", () => {
// console.log("Zoom level", map.getZoom());

Expand Down Expand Up @@ -432,7 +425,7 @@ export const createMap = (

map.fire("changeLanguage", { language: getLanguageFromUrl() });

map.addControl(new AttributionControl({ compact: true } ), "top-right");
map.addControl(new AttributionControl({ compact: true }), "top-right");
map.addControl(new NavigationControl(), "top-right");
disableRotation(map);
});
Expand Down

0 comments on commit 4b6f360

Please sign in to comment.