forked from MapComplete/MapComplete
Disable zoom animation
This commit is contained in:
parent
0306a28811
commit
1187d5b807
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue