forked from MapComplete/MapComplete
refactoring: more state splitting, basic layoutFeatureSource
This commit is contained in:
parent
8e2f04c0d0
commit
b94a8f5745
54 changed files with 1067 additions and 1969 deletions
|
@ -214,6 +214,9 @@ export class BBox {
|
|||
* @param zoomlevel
|
||||
*/
|
||||
expandToTileBounds(zoomlevel: number): BBox {
|
||||
if(zoomlevel === undefined){
|
||||
return this
|
||||
}
|
||||
const ul = Tiles.embedded_tile(this.minLat, this.minLon, zoomlevel)
|
||||
const lr = Tiles.embedded_tile(this.maxLat, this.maxLon, zoomlevel)
|
||||
const boundsul = Tiles.tile_bounds_lon_lat(ul.z, ul.x, ul.y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue