Increase animation speed, decrease zoom level of fly to location.

This commit is contained in:
Christian Neumann 2020-11-20 11:31:11 +01:00
parent d7d7952111
commit 5134bce714

View file

@ -114,7 +114,12 @@ export class GeoLocationHandler extends UIElement {
return "";
}
if (State.state.currentGPSLocation.data !== undefined) {
map.flyTo(State.state.currentGPSLocation.data.latlng, 18);
State.state.bm.map.flyTo(
State.state.currentGPSLocation.data.latlng, 16,
{
duration: 0.25,
}
);
}