forked from MapComplete/MapComplete
UX: when clicking on the map, all (way) features within 20px are inspected and the closest one is inspected. Fixes #2261
This commit is contained in:
parent
c34300fae1
commit
8680fce4e7
5 changed files with 76 additions and 22 deletions
|
@ -568,7 +568,6 @@ export default class ShowDataLayer {
|
|||
return
|
||||
}
|
||||
const bbox = BBox.bboxAroundAll(features.map(BBox.get))
|
||||
console.debug("Zooming to features", bbox.asGeoJson())
|
||||
window.requestAnimationFrame(() => {
|
||||
map.resize()
|
||||
map.fitBounds(bbox.toLngLat(), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue