forked from MapComplete/MapComplete
Lots of refactoring, first version of the import helper
This commit is contained in:
parent
612b8136ad
commit
3402ac0954
54 changed files with 1104 additions and 315 deletions
|
@ -145,6 +145,15 @@ export class BBox {
|
|||
this.maxLat + latDiff]])
|
||||
}
|
||||
|
||||
padAbsolute(degrees: number): BBox {
|
||||
|
||||
return new BBox([[
|
||||
this.minLon - degrees,
|
||||
this.minLat - degrees
|
||||
], [this.maxLon + degrees,
|
||||
this.maxLat + degrees]])
|
||||
}
|
||||
|
||||
toLeaflet() {
|
||||
return [[this.minLat, this.minLon], [this.maxLat, this.maxLon]]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue