Add link to nearby drinking water points with some fancy calculated tag magic

This commit is contained in:
Pieter Vander Vennet 2021-03-29 02:05:11 +02:00
parent bec1998a6d
commit fa5b92e6e1
3 changed files with 11 additions and 4 deletions

View file

@ -16,9 +16,7 @@ export class GeoOperations {
}
static centerpointCoordinates(feature: any){
const coordinates = turf.center(feature).geometry.coordinates;
coordinates.reverse();
return coordinates;
return turf.center(feature).geometry.coordinates;
}
/**