forked from MapComplete/MapComplete
Add better way handling
This commit is contained in:
parent
0bb5abec3c
commit
1373bd106e
10 changed files with 46 additions and 13 deletions
|
@ -6,6 +6,15 @@ export class GeoOperations {
|
|||
return turf.area(feature);
|
||||
}
|
||||
|
||||
static centerpoint(feature: any)
|
||||
{
|
||||
const newFeature= turf.center(feature);
|
||||
newFeature.properties = feature.properties;
|
||||
newFeature.id = feature.id;
|
||||
|
||||
return newFeature;
|
||||
}
|
||||
|
||||
static featureIsContainedInAny(feature: any,
|
||||
shouldNotContain: any[],
|
||||
maxOverlapPercentage: number): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue