forked from MapComplete/MapComplete
Some refactoring
This commit is contained in:
parent
85af8a20b0
commit
a03313fb3d
9 changed files with 18 additions and 20 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue