Skip to content

Commit

Permalink
Switch fullscreen on map on resize and make fxn call
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 28, 2024
1 parent 9ac2673 commit 0e60241
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/components/media/MediaMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ onMounted(() => {
}),
"top-left"
);
map.addControl(new maplibregl.FullscreenControl());
map.addControl(
new maplibregl.GeolocateControl({
positionOptions: {
Expand All @@ -245,8 +244,8 @@ onMounted(() => {
trackUserLocation: true,
})
);
map.on("fullscreenstart", applyMaxWindowHeight);
map.addControl(new maplibregl.FullscreenControl());
map.on("resize", () => applyMaxWindowHeight());
const popup = new maplibregl.Popup({
offset: 25,
Expand Down

0 comments on commit 0e60241

Please sign in to comment.