Some refactoring

This commit is contained in:
Pieter Vander Vennet 2022-01-14 03:14:56 +01:00
parent 85af8a20b0
commit a03313fb3d
9 changed files with 18 additions and 20 deletions

View file

@ -1,9 +1,9 @@
import * as OsmToGeoJson from "osmtogeojson";
import {TagsFilter} from "../Tags/TagsFilter";
import RelationsTracker from "./RelationsTracker";
import {Utils} from "../../Utils";
import {UIEventSource} from "../UIEventSource";
import {BBox} from "../BBox";
import osmtogeojson from "osmtogeojson";
/**
* Interfaces overpass to get all the latest data
@ -52,8 +52,7 @@ export class Overpass {
}
self._relationTracker.RegisterRelations(json)
// @ts-ignore
const geojson = OsmToGeoJson.default(json);
const geojson = osmtogeojson(json);
const osmTime = new Date(json.osm3s.timestamp_osm_base);
return [geojson, osmTime];
}