diff --git a/lib/actions/map.js b/lib/actions/map.js index 17cb19a69..933457b2f 100644 --- a/lib/actions/map.js +++ b/lib/actions/map.js @@ -22,7 +22,7 @@ export function setMapCenter(map /* MapRef */, location) { const { lat, lon } = location if (map && !isNaN(lat) && !isNaN(lon)) { const center = [lon, lat] - map.panTo(center) + map.panTo(center, { speed: 0.8 }) } } } diff --git a/lib/components/app/responsive-webapp.js b/lib/components/app/responsive-webapp.js index 668434186..734ba04b6 100644 --- a/lib/components/app/responsive-webapp.js +++ b/lib/components/app/responsive-webapp.js @@ -101,7 +101,7 @@ class ResponsiveWebapp extends Component { } } else if (query.from && query.to && mainPanelContent === null) { map?.fitBounds([query.from, query.to], { - duration: 500, + duration: 600, padding: getFitBoundsPadding(map, 0.2) }) } else if (query.from && !query.to) { diff --git a/lib/components/map/route-preview-overlay.tsx b/lib/components/map/route-preview-overlay.tsx index d1ebc7beb..1e071c0c3 100644 --- a/lib/components/map/route-preview-overlay.tsx +++ b/lib/components/map/route-preview-overlay.tsx @@ -35,7 +35,7 @@ const RoutePreviewOverlay = ({ useEffect(() => { if (visible && mainPanelContent === null) { map?.fitBounds([from, to], { - duration: 500, + duration: 600, padding: getFitBoundsPadding(map, 0.2) }) }