forked from MapComplete/MapComplete
		
	Move TileRange to seperate file
This commit is contained in:
		
							parent
							
								
									e594511e22
								
							
						
					
					
						commit
						2dbdcaa2ba
					
				
					 3 changed files with 4 additions and 12 deletions
				
			
		|  | @ -5,5 +5,4 @@ export interface TileRange { | ||||||
|     yend: number, |     yend: number, | ||||||
|     total: number, |     total: number, | ||||||
|     zoomlevel: number |     zoomlevel: number | ||||||
| 
 |  | ||||||
| } | } | ||||||
							
								
								
									
										12
									
								
								Utils.ts
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								Utils.ts
									
										
									
									
									
								
							|  | @ -1,4 +1,5 @@ | ||||||
| import * as colors from "./assets/colors.json" | import * as colors from "./assets/colors.json" | ||||||
|  | import {TileRange} from "./Models/TileRange"; | ||||||
| 
 | 
 | ||||||
| export class Utils { | export class Utils { | ||||||
| 
 | 
 | ||||||
|  | @ -134,7 +135,7 @@ export class Utils { | ||||||
|         } |         } | ||||||
|         return newArr; |         return newArr; | ||||||
|     } |     } | ||||||
| 
 |      | ||||||
|     public static MergeTags(a: any, b: any) { |     public static MergeTags(a: any, b: any) { | ||||||
|         const t = {}; |         const t = {}; | ||||||
|         for (const k in a) { |         for (const k in a) { | ||||||
|  | @ -449,12 +450,3 @@ export class Utils { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export interface TileRange { |  | ||||||
|     xstart: number, |  | ||||||
|     ystart: number, |  | ||||||
|     xend: number, |  | ||||||
|     yend: number, |  | ||||||
|     total: number, |  | ||||||
|     zoomlevel: number |  | ||||||
| 
 |  | ||||||
| } |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| /** | /** | ||||||
|  * Generates a collection of geojson files based on an overpass query for a given theme |  * Generates a collection of geojson files based on an overpass query for a given theme | ||||||
|  */ |  */ | ||||||
| import {TileRange, Utils} from "../Utils"; | import {Utils} from "../Utils"; | ||||||
| 
 | 
 | ||||||
| Utils.runningFromConsole = true | Utils.runningFromConsole = true | ||||||
| import {Overpass} from "../Logic/Osm/Overpass"; | import {Overpass} from "../Logic/Osm/Overpass"; | ||||||
|  | @ -17,6 +17,7 @@ import MetaTagging from "../Logic/MetaTagging"; | ||||||
| import LayerConfig from "../Customizations/JSON/LayerConfig"; | import LayerConfig from "../Customizations/JSON/LayerConfig"; | ||||||
| import {GeoOperations} from "../Logic/GeoOperations"; | import {GeoOperations} from "../Logic/GeoOperations"; | ||||||
| import {UIEventSource} from "../Logic/UIEventSource"; | import {UIEventSource} from "../Logic/UIEventSource"; | ||||||
|  | import {TileRange} from "../Models/TileRange"; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function createOverpassObject(theme: LayoutConfig) { | function createOverpassObject(theme: LayoutConfig) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue