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("E") // => 90
 | ||||
|      * GeoOperations.parseBearing("NE") // => 22.5
 | ||||
|      * GeoOperations.parseBearing("NE") // => 45
 | ||||
|      * GeoOperations.parseBearing("NNE") // => 22.5
 | ||||
|      * | ||||
|      * GeoOperations.parseBearing("90") // => 90
 | ||||
|      * GeoOperations.parseBearing("-90°") // => 270
 | ||||
|      * GeoOperations.parseBearing("180 °") // => 180
 | ||||
|      * | ||||
|      * GeoOperations.parseBearing(180) // => 180
 | ||||
|      * GeoOperations.parseBearing(-270) // => 90
 | ||||
|      * | ||||
|      */ | ||||
|     public static parseBearing(str: string | number) { | ||||
|         let n: number | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue