forked from MapComplete/MapComplete
		
	Automatically load appropriate suggestions for brands and operators
This commit is contained in:
		
							parent
							
								
									3146fa0d26
								
							
						
					
					
						commit
						67f23eea14
					
				
					 11 changed files with 70 additions and 47 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
            })
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue