UI improvements #18

Merged
raucao merged 5 commits from feature/location_improvements into master 2026-02-10 14:52:22 +00:00
Showing only changes of commit d30375707a - Show all commits

View File

@@ -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;