forked from MapComplete/MapComplete
Add better relation support
This commit is contained in:
parent
7b47af8978
commit
12afdcab75
18 changed files with 2637 additions and 2386 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as turf from 'turf'
|
||||
import * as turf from '@turf/turf'
|
||||
|
||||
export class GeoOperations {
|
||||
|
||||
|
@ -118,6 +118,9 @@ export class GeoOperations {
|
|||
return inside;
|
||||
};
|
||||
|
||||
static lengthInMeters(feature: any) {
|
||||
return turf.length(feature) * 1000
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue