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 RelationsTracker from "../Logic/Osm/RelationsTracker";
|
||||||
import * as OsmToGeoJson from "osmtogeojson";
|
import * as OsmToGeoJson from "osmtogeojson";
|
||||||
import MetaTagging from "../Logic/MetaTagging";
|
import MetaTagging from "../Logic/MetaTagging";
|
||||||
import {UIEventSource} from "../Logic/UIEventSource";
|
import {ImmutableStore, UIEventSource} from "../Logic/UIEventSource";
|
||||||
import {TileRange, Tiles} from "../Models/TileRange";
|
import {TileRange, Tiles} from "../Models/TileRange";
|
||||||
import LayoutConfig from "../Models/ThemeConfig/LayoutConfig";
|
import LayoutConfig from "../Models/ThemeConfig/LayoutConfig";
|
||||||
import ScriptUtils from "./ScriptUtils";
|
import ScriptUtils from "./ScriptUtils";
|
||||||
|
@ -250,9 +250,10 @@ function sliceToTiles(allFeatures: FeatureSource, theme: LayoutConfig, relations
|
||||||
}
|
}
|
||||||
|
|
||||||
const filteredTile = new FilteringFeatureSource({
|
const filteredTile = new FilteringFeatureSource({
|
||||||
locationControl: new UIEventSource<Loc>(undefined),
|
locationControl: new ImmutableStore<Loc>(undefined),
|
||||||
allElements: undefined,
|
allElements: undefined,
|
||||||
selectedElement: new UIEventSource<any>(undefined)
|
selectedElement: new ImmutableStore<any>(undefined),
|
||||||
|
globalFilters: new ImmutableStore([])
|
||||||
},
|
},
|
||||||
tileIndex,
|
tileIndex,
|
||||||
tile,
|
tile,
|
||||||
|
@ -323,9 +324,10 @@ function sliceToTiles(allFeatures: FeatureSource, theme: LayoutConfig, relations
|
||||||
if (pointsOnlyLayers.indexOf(layer.id) >= 0) {
|
if (pointsOnlyLayers.indexOf(layer.id) >= 0) {
|
||||||
|
|
||||||
const filtered = new FilteringFeatureSource({
|
const filtered = new FilteringFeatureSource({
|
||||||
locationControl: new UIEventSource<Loc>(undefined),
|
locationControl: new ImmutableStore<Loc>(undefined),
|
||||||
allElements: undefined,
|
allElements: undefined,
|
||||||
selectedElement: new UIEventSource<any>(undefined)
|
selectedElement: new ImmutableStore<any>(undefined),
|
||||||
|
globalFilters: new ImmutableStore([])
|
||||||
},
|
},
|
||||||
Tiles.tile_index(0, 0, 0),
|
Tiles.tile_index(0, 0, 0),
|
||||||
source,
|
source,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue