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:
1 file changed
+2
-3
+2
-3
@@ -1030,10 +1030,9 @@
|
||||
const lon = position.coords.longitude;
|
||||
userPosition = [lat, lon];
|
||||
|
||||
// Center map on user location
|
||||
// Center map on user location immediately (no animation)
|
||||
map.setView([lat, lon], 16, {
|
||||
animate: true,
|
||||
duration: 1
|
||||
animate: false
|
||||
});
|
||||
|
||||
// Remove old location marker if exists
|
||||
|
||||
Reference in new issue
Block a user