forked from MapComplete/MapComplete
		
	Fix script
This commit is contained in:
		
							parent
							
								
									707961761c
								
							
						
					
					
						commit
						038b2ece4c
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -10,7 +10,7 @@ import {AllKnownLayouts} from "../Customizations/AllKnownLayouts"; | |||
| import RelationsTracker from "../Logic/Osm/RelationsTracker"; | ||||
| import * as OsmToGeoJson from "osmtogeojson"; | ||||
| import MetaTagging from "../Logic/MetaTagging"; | ||||
| import {UIEventSource} from "../Logic/UIEventSource"; | ||||
| import {ImmutableStore, UIEventSource} from "../Logic/UIEventSource"; | ||||
| import {TileRange, Tiles} from "../Models/TileRange"; | ||||
| import LayoutConfig from "../Models/ThemeConfig/LayoutConfig"; | ||||
| import ScriptUtils from "./ScriptUtils"; | ||||
|  | @ -250,9 +250,10 @@ function sliceToTiles(allFeatures: FeatureSource, theme: LayoutConfig, relations | |||
|                 } | ||||
| 
 | ||||
|                 const filteredTile = new FilteringFeatureSource({ | ||||
|                         locationControl: new UIEventSource<Loc>(undefined), | ||||
|                         locationControl: new ImmutableStore<Loc>(undefined), | ||||
|                         allElements: undefined, | ||||
|                         selectedElement: new UIEventSource<any>(undefined) | ||||
|                         selectedElement: new ImmutableStore<any>(undefined), | ||||
|                         globalFilters: new ImmutableStore([]) | ||||
|                     }, | ||||
|                     tileIndex, | ||||
|                     tile, | ||||
|  | @ -323,9 +324,10 @@ function sliceToTiles(allFeatures: FeatureSource, theme: LayoutConfig, relations | |||
|         if (pointsOnlyLayers.indexOf(layer.id) >= 0) { | ||||
| 
 | ||||
|             const filtered = new FilteringFeatureSource({ | ||||
|                     locationControl: new UIEventSource<Loc>(undefined), | ||||
|                     locationControl: new ImmutableStore<Loc>(undefined), | ||||
|                     allElements: undefined, | ||||
|                     selectedElement: new UIEventSource<any>(undefined) | ||||
|                     selectedElement: new ImmutableStore<any>(undefined), | ||||
|                     globalFilters: new ImmutableStore([]) | ||||
|                 }, | ||||
|                 Tiles.tile_index(0, 0, 0), | ||||
|                 source, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue