forked from MapComplete/MapComplete
		
	Fix undefined error in DirectionIndicator
This commit is contained in:
		
							parent
							
								
									8b6ee877f0
								
							
						
					
					
						commit
						0733c46fcb
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -994,6 +994,9 @@ export class GeoOperations { | |||
|      * @param meters | ||||
|      */ | ||||
|     public static distanceToHuman(meters: number): string { | ||||
|         if (meters === undefined) { | ||||
|             return "" | ||||
|         } | ||||
|         meters = Math.round(meters) | ||||
|         if (meters < 1000) { | ||||
|             return meters + "m" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue