forked from MapComplete/MapComplete
Fixed opening of popups
This commit is contained in:
parent
bc1863dcb6
commit
770c8d1dde
4 changed files with 25 additions and 24 deletions
|
@ -14,6 +14,12 @@ export class GeoOperations {
|
|||
|
||||
return newFeature;
|
||||
}
|
||||
|
||||
static centerpointCoordinates(feature: any){
|
||||
const coordinates = turf.center(feature).geometry.coordinates;
|
||||
coordinates.reverse();
|
||||
return coordinates;
|
||||
}
|
||||
|
||||
static featureIsContainedInAny(feature: any,
|
||||
shouldNotContain: any[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue