Deaktiviere Standort-Animation für sofortige Anzeige

Die Karte springt jetzt direkt zum Benutzerstandort ohne
Flug-Animation ("Helikopter-Effekt").

Änderung:
- map.setView() mit animate: false beim Standort
- Sofortige Positionierung statt 1 Sekunde Animation
- Bessere UX: Kein Warten auf Animation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude committed 2025-10-30 16:03:29 +00:00
1 parent 816de80afb
commit 520a637546
1 file changed
+2 -3
+2 -3
View File
@@ -1030,10 +1030,9 @@
const lon = position.coords.longitude; const lon = position.coords.longitude;
userPosition = [lat, lon]; userPosition = [lat, lon];
// Center map on user location // Center map on user location immediately (no animation)
map.setView([lat, lon], 16, { map.setView([lat, lon], 16, {
animate: true, animate: false
duration: 1
}); });
// Remove old location marker if exists // Remove old location marker if exists