Fix mobile map overlays and GPS recentering
This commit is contained in:
1 parent
8afb79f893
commit
bcc9e01179
5 files changed
+21
-6
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user