Fixed opening of popups

This commit is contained in:
Pieter Vander Vennet 2021-02-14 20:36:20 +01:00
parent bc1863dcb6
commit 770c8d1dde
4 changed files with 25 additions and 24 deletions

View file

@ -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[],