From 311abbf806f746dfdc68e3622ce1b88fb490af6f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 17 Jan 2023 02:56:34 +0100 Subject: [PATCH] Fix overpass.ts --- Logic/Osm/Overpass.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logic/Osm/Overpass.ts b/Logic/Osm/Overpass.ts index 35e501185..1293857fc 100644 --- a/Logic/Osm/Overpass.ts +++ b/Logic/Osm/Overpass.ts @@ -3,7 +3,7 @@ import RelationsTracker from "./RelationsTracker" import { Utils } from "../../Utils" import { ImmutableStore, Store } from "../UIEventSource" import { BBox } from "../BBox" -import * as osmtogeojson from "osmtogeojson" +import osmtogeojson from "osmtogeojson" import { FeatureCollection } from "@turf/turf" /** @@ -69,7 +69,7 @@ export class Overpass { } self._relationTracker?.RegisterRelations(json) - const geojson = osmtogeojson.default(json) + const geojson = osmtogeojson(json) const osmTime = new Date(json.osm3s.timestamp_osm_base) return [geojson, osmTime] }