forked from MapComplete/MapComplete
		
	Prepare script to let translations flow back into the themes
This commit is contained in:
		
							parent
							
								
									8361cfac7a
								
							
						
					
					
						commit
						e057f10409
					
				
					 2 changed files with 83 additions and 9 deletions
				
			
		
							
								
								
									
										4
									
								
								Utils.ts
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								Utils.ts
									
										
									
									
									
								
							|  | @ -161,6 +161,9 @@ export class Utils { | |||
| 
 | ||||
|     static Merge(source: any, target: any) { | ||||
|         for (const key in source) { | ||||
|             if(!source.hasOwnProperty(key)){ | ||||
|                 continue | ||||
|             } | ||||
|             const sourceV = source[key]; | ||||
|             const targetV = target[key] | ||||
|             if (typeof sourceV === "object") { | ||||
|  | @ -322,6 +325,7 @@ export class Utils { | |||
|         } | ||||
|         return bestColor ?? hex; | ||||
|     } | ||||
| 
 | ||||
|     private static tile2long(x, z) { | ||||
|         return (x / Math.pow(2, z) * 360 - 180); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue