Disable zoom animation

This commit is contained in:
pietervdvn 2021-07-10 21:07:44 +02:00
parent 0306a28811
commit 1187d5b807

View file

@ -80,9 +80,7 @@ export default class ShowDataLayer {
if (zoomToFeatures) {
try {
mp.fitBounds(geoLayer.getBounds())
mp.fitBounds(geoLayer.getBounds(), {animate: false})
} catch (e) {
console.error(e)
}