Fix mobile map overlays and GPS recentering

This commit is contained in:
livio committed 2026-09-30 21:17:15 +02:00
1 parent 8afb79f893
commit bcc9e01179
5 files changed
+21 -6

No files matched your search

+6
View File
@@ -5637,6 +5637,12 @@ function onGpsPosition(position) {
updateGpsPositionLayers(latlng, lmeState.lastAccuracy);
if (firstLiveFix) {
lmeState.map.setView(latlng, 19);
} else if (!lmeState.map.getBounds().contains(latlng)) {
lmeState.map.panTo(latlng, {
animate: true,
duration: 0.5,
easeLinearity: 0.25
});
}
if (lmeState.gpsTrailEnabled) {