forked from MapComplete/MapComplete
Chore: use strict
This commit is contained in:
parent
6b5b4ddde5
commit
25eb2ae812
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ import osmtogeojson from "osmtogeojson"
|
|||
import { FeatureCollection } from "@turf/turf"
|
||||
import { Geometry } from "geojson"
|
||||
import { OsmTags } from "../../Models/OsmFeature"
|
||||
|
||||
"use strict";
|
||||
/**
|
||||
* Interfaces overpass to get all the latest data
|
||||
*/
|
||||
|
@ -71,9 +71,9 @@ export class Overpass {
|
|||
console.warn("No features for", json)
|
||||
}
|
||||
|
||||
const geojson = osmtogeojson(json)
|
||||
const geojson = <FeatureCollection<Geometry, OsmTags>> osmtogeojson(json)
|
||||
const osmTime = new Date(json.osm3s.timestamp_osm_base)
|
||||
return [<any>geojson, osmTime]
|
||||
return [geojson, osmTime]
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue