Auto-route on reorder/assign/remove, lock places for optimization, fix zoom

- Route line auto-updates on day select, reorder, assign, remove (no manual button)
- Remove manual route calculation button (keep optimize + Google Maps)
- Lock places at their position during route optimization (click avatar to toggle)
- Locked places shown with red background, border and lock overlay
- Custom tooltip for lock feature (DE/EN, dark mode)
- Fix map zoom: panTo instead of setView keeps current zoom level
- Fix fitBounds only on actual day change, not on place click
- Missing translations: needTwoPlaces, routeOptimized, noGeoPlaces
This commit is contained in:
Maurice
2026-03-21 16:12:13 +01:00
parent 5b6e3d6c1a
commit 544ac796d5
3 changed files with 112 additions and 36 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ function SelectionController({ places, selectedPlaceId }) {
if (selectedPlaceId && selectedPlaceId !== prev.current) {
const place = places.find(p => p.id === selectedPlaceId)
if (place?.lat && place?.lng) {
map.setView([place.lat, place.lng], Math.max(map.getZoom(), 15), { animate: true, duration: 0.5 })
map.panTo([place.lat, place.lng], { animate: true, duration: 0.5 })
}
}
prev.current = selectedPlaceId