forked from MapComplete/MapComplete
Fix tests
This commit is contained in:
parent
0edb78957c
commit
1a81904bce
1 changed files with 5 additions and 1 deletions
|
@ -897,12 +897,16 @@ export class GeoOperations {
|
||||||
/**
|
/**
|
||||||
* GeoOperations.parseBearing("N") // => 0
|
* GeoOperations.parseBearing("N") // => 0
|
||||||
* GeoOperations.parseBearing("E") // => 90
|
* GeoOperations.parseBearing("E") // => 90
|
||||||
* GeoOperations.parseBearing("NE") // => 22.5
|
* GeoOperations.parseBearing("NE") // => 45
|
||||||
|
* GeoOperations.parseBearing("NNE") // => 22.5
|
||||||
*
|
*
|
||||||
* GeoOperations.parseBearing("90") // => 90
|
* GeoOperations.parseBearing("90") // => 90
|
||||||
* GeoOperations.parseBearing("-90°") // => 270
|
* GeoOperations.parseBearing("-90°") // => 270
|
||||||
* GeoOperations.parseBearing("180 °") // => 180
|
* GeoOperations.parseBearing("180 °") // => 180
|
||||||
*
|
*
|
||||||
|
* GeoOperations.parseBearing(180) // => 180
|
||||||
|
* GeoOperations.parseBearing(-270) // => 90
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public static parseBearing(str: string | number) {
|
public static parseBearing(str: string | number) {
|
||||||
let n: number
|
let n: number
|
||||||
|
|
Loading…
Reference in a new issue