Fix default import

This commit is contained in:
Pieter Vander Vennet 2023-01-25 11:48:39 +01:00
parent 2d0cb87e5a
commit b88bb5b6d0

View file

@ -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
{