forked from MapComplete/MapComplete
		
	Fix split way action, add decent tests for them (fix #171), enable split road on cyclestreets theme
This commit is contained in:
		
							parent
							
								
									affe8237dc
								
							
						
					
					
						commit
						a2aa26aafc
					
				
					 12 changed files with 1908 additions and 60 deletions
				
			
		|  | @ -48,6 +48,7 @@ export default class DynamicGeoJsonTileSource extends DynamicTileSource { | |||
|                 if(whitelist !== undefined){ | ||||
|                     const isWhiteListed = whitelist.get(zxy[1])?.has(zxy[2]) | ||||
|                     if(!isWhiteListed){ | ||||
|                         console.log("Not downloading tile", ...zxy, "as it is not on the whitelist") | ||||
|                         return undefined; | ||||
|                     } | ||||
|                 } | ||||
|  |  | |||
|  | @ -109,6 +109,8 @@ export default class OsmFeatureSource { | |||
| 
 | ||||
|                 geojson.features = geojson.features.filter(feature => this.allowedTags.matchesProperties(feature.properties)) | ||||
| 
 | ||||
|                 geojson.features.forEach(f => f.properties["_backend"] = this._backend) | ||||
|                  | ||||
|                 console.log("Tile geojson:", z, x, y, "is", geojson) | ||||
|                 const index = Tiles.tile_index(z, x, y); | ||||
|                 new PerLayerFeatureSourceSplitter(this.filteredLayers, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue