Fix length, update docs

This commit is contained in:
Pieter Vander Vennet 2021-04-18 18:23:59 +02:00
parent 62f0ae42e0
commit c0fb852d41
2 changed files with 6 additions and 1 deletions

View file

@ -15,7 +15,8 @@ export class GeoOperations {
return newFeature;
}
static centerpointCoordinates(feature: any){
static centerpointCoordinates(feature: any): [number, number]{
// @ts-ignore
return turf.center(feature).geometry.coordinates;
}