From b88bb5b6d0861c4834bcb51c5f5be05b57e5861c Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 25 Jan 2023 11:48:39 +0100 Subject: [PATCH] Fix default import --- Logic/Osm/OsmObject.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logic/Osm/OsmObject.ts b/Logic/Osm/OsmObject.ts index 37ec0c41c..7b1a729c1 100644 --- a/Logic/Osm/OsmObject.ts +++ b/Logic/Osm/OsmObject.ts @@ -2,7 +2,7 @@ import { Utils } from "../../Utils" import * as polygon_features from "../../assets/polygon-features.json" import { Store, UIEventSource } from "../UIEventSource" import { BBox } from "../BBox" -import * as OsmToGeoJson from "osmtogeojson" +import OsmToGeoJson from "osmtogeojson" import { NodeId, OsmFeature, OsmId, OsmTags, RelationId, WayId } from "../../Models/OsmFeature" import { Feature, LineString, Polygon } from "geojson" @@ -230,7 +230,7 @@ export abstract class OsmObject { break case "relation": osmObject = new OsmRelation(idN) - const allGeojsons = OsmToGeoJson.default( + const allGeojsons = OsmToGeoJson( { elements }, // @ts-ignore {