Disallow new/edit nodes below zoom 15, disallow downloads below zoom 10.

This commit is contained in:
stopflock
2025-11-22 00:17:24 -06:00
parent 5673c2b627
commit d747c66990
12 changed files with 84 additions and 7 deletions
+12
View File
@@ -597,6 +597,18 @@ class MapViewState extends State<MapView> {
widget.onUserGesture();
}
// Enforce minimum zoom level for add/edit node sheets (but not tag sheet)
if ((session != null || editSession != null) && pos.zoom < kMinZoomForNodeEditingSheets) {
// User tried to zoom out below minimum - snap back to minimum zoom
_controller.animateTo(
dest: pos.center,
zoom: kMinZoomForNodeEditingSheets.toDouble(),
duration: const Duration(milliseconds: 200),
curve: Curves.easeOut,
);
return; // Don't process other position updates
}
if (session != null) {
appState.updateSession(target: pos.center);
}