From d30375707af0489e5aea450f6e7bcd0990ec12b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 10 Feb 2026 18:33:25 +0400 Subject: [PATCH] Prevent map search when zoomed out too much It's usually an accidental click, and if not, the search radius/pulse wouldn't be clearly visible. --- app/components/map.gjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/components/map.gjs b/app/components/map.gjs index 1f66900..2bcbfc4 100644 --- a/app/components/map.gjs +++ b/app/components/map.gjs @@ -744,6 +744,13 @@ export default class MapComponent extends Component { return; } + // Require Zoom >= 17 for generic map searches + // This prevents accidental searches when interacting with the map at a high level + const currentZoom = this.mapInstance.getView().getZoom(); + if (currentZoom < 16) { + return; + } + const coords = toLonLat(event.coordinate); const [lon, lat] = coords;