forked from MapComplete/MapComplete
Fix default import
This commit is contained in:
parent
2d0cb87e5a
commit
b88bb5b6d0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue