forked from MapComplete/MapComplete
		
	Huge refactoring: split readonly and writable stores
This commit is contained in:
		
							parent
							
								
									0946d8ac9c
								
							
						
					
					
						commit
						4283b76f36
					
				
					 95 changed files with 819 additions and 625 deletions
				
			
		|  | @ -112,7 +112,7 @@ async function downloadRaw(targetdir: string, r: TileRange, theme: LayoutConfig, | |||
|                 } | ||||
| 
 | ||||
| 
 | ||||
|                 console.log("Got the response - writing to ", filename) | ||||
|                 console.log("Got the response - writing ",json.elements.length," elements to ", filename) | ||||
|                 writeFileSync(filename, JSON.stringify(json, null, "  ")); | ||||
|             } catch (err) { | ||||
|                 console.log(url) | ||||
|  | @ -172,7 +172,7 @@ function loadAllTiles(targetdir: string, r: TileRange, theme: LayoutConfig, extr | |||
|             allFeatures.push(...geojson.features) | ||||
|         } | ||||
|     } | ||||
|     return new StaticFeatureSource(allFeatures, false) | ||||
|     return StaticFeatureSource.fromGeojson(allFeatures) | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue