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) {
|
if (zoomToFeatures) {
|
||||||
try {
|
try {
|
||||||
|
mp.fitBounds(geoLayer.getBounds(), {animate: false})
|
||||||
mp.fitBounds(geoLayer.getBounds())
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue