forked from MapComplete/MapComplete
Stabilize popup
This commit is contained in:
parent
729f28fbf5
commit
292bad5df7
6 changed files with 74 additions and 45 deletions
|
@ -22,10 +22,8 @@ export default class OsmApiFeatureSource implements FeatureSource {
|
|||
|
||||
|
||||
public load(id: string) {
|
||||
console.log("Updating from OSM API: ", id)
|
||||
OsmObject.DownloadObject(id, (element, meta) => {
|
||||
const geojson = element.asGeoJson();
|
||||
console.warn(geojson)
|
||||
geojson.id = geojson.properties.id;
|
||||
this.features.setData([{feature: geojson, freshness: meta["_last_edit:timestamp"]}])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue