From 859a694723c7977b8000469e8b5c49ec98ae78ae Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 13 Jun 2022 03:17:10 +0200 Subject: [PATCH] Add caching to geojson source --- Logic/FeatureSource/Sources/GeoJsonSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/FeatureSource/Sources/GeoJsonSource.ts b/Logic/FeatureSource/Sources/GeoJsonSource.ts index ed9bcb61c..1443760ca 100644 --- a/Logic/FeatureSource/Sources/GeoJsonSource.ts +++ b/Logic/FeatureSource/Sources/GeoJsonSource.ts @@ -79,7 +79,7 @@ export default class GeoJsonSource implements FeatureSourceForLayer, Tiled { private LoadJSONFrom(url: string) { const eventSource = this.features; const self = this; - Utils.downloadJson(url) + Utils.downloadJsonCached(url, 60 * 60) .then(json => { self.state.setData("loaded") if (json.features === undefined || json.features === null) {