forked from MapComplete/MapComplete
Add clarification
This commit is contained in:
parent
eeaee0f074
commit
fc3a043795
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ export class GeoOperations {
|
|||
return newFeature;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns [lon,lat] coordinates
|
||||
* @param feature
|
||||
*/
|
||||
static centerpointCoordinates(feature: any): [number, number] {
|
||||
return <[number, number]>turf.center(feature).geometry.coordinates;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue