Automatically load appropriate suggestions for brands and operators

This commit is contained in:
Pieter Vander Vennet 2024-05-23 11:28:51 +02:00
parent 3146fa0d26
commit 67f23eea14
11 changed files with 70 additions and 47 deletions

View file

@ -550,14 +550,13 @@ export default class ShowDataLayer {
return
}
const bbox = BBox.bboxAroundAll(features.map(BBox.get))
console.log("Zooming to features", bbox.asGeoJson())
console.debug("Zooming to features", bbox.asGeoJson())
window.requestAnimationFrame(() => {
map.resize()
map.fitBounds(bbox.toLngLat(), {
padding: { top: 10, bottom: 10, left: 10, right: 10 },
animate: false
})
map.resize()
map.fitBounds(bbox.toLngLat(), {
padding: { top: 10, bottom: 10, left: 10, right: 10 },
animate: false
})
})
}