From 473918ac96cde7b7cdc6fd57dbf307664a5010ae Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 21 Jun 2021 14:22:52 +0200 Subject: [PATCH] Fix generateCache script --- Logic/FeatureSource/DummyFeatureSource.ts | 12 ------------ scripts/generateCache.ts | 4 +--- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 Logic/FeatureSource/DummyFeatureSource.ts diff --git a/Logic/FeatureSource/DummyFeatureSource.ts b/Logic/FeatureSource/DummyFeatureSource.ts deleted file mode 100644 index 298f9e2c2..000000000 --- a/Logic/FeatureSource/DummyFeatureSource.ts +++ /dev/null @@ -1,12 +0,0 @@ -import FeatureSource from "./FeatureSource"; -import {UIEventSource} from "../UIEventSource"; - -export default class DummyFeatureSource implements FeatureSource{ - public readonly features: UIEventSource<{ feature: any; freshness: Date }[]>; - public readonly name: string = "Dummy (static) feature source"; - - constructor(features: UIEventSource<{ feature: any; freshness: Date }[]>) { - this.features = features; - } - -} \ No newline at end of file diff --git a/scripts/generateCache.ts b/scripts/generateCache.ts index 8a91d709a..77dfa8653 100644 --- a/scripts/generateCache.ts +++ b/scripts/generateCache.ts @@ -16,9 +16,7 @@ import * as OsmToGeoJson from "osmtogeojson"; import MetaTagging from "../Logic/MetaTagging"; import LayerConfig from "../Customizations/JSON/LayerConfig"; import {GeoOperations} from "../Logic/GeoOperations"; -import {fail} from "assert"; import {UIEventSource} from "../Logic/UIEventSource"; -import DummyFeatureSource from "../Logic/FeatureSource/DummyFeatureSource"; function createOverpassObject(theme: LayoutConfig) { @@ -169,7 +167,7 @@ async function postProcess(targetdir: string, r: TileRange, theme: LayoutConfig, // Extract the relationship information const relations = ExtractRelations.BuildMembershipTable(ExtractRelations.GetRelationElements(rawOsm)) - MetaTagging.addMetatags(featuresFreshness, new DummyFeatureSource(new UIEventSource<{feature: any; freshness: Date}[]>(featuresFreshness)) , relations, theme.layers, false); + MetaTagging.addMetatags(featuresFreshness, new UIEventSource<{feature: any; freshness: Date}[]>(featuresFreshness) , relations, theme.layers, false); for (const feature of geojson.features) {