forked from MapComplete/MapComplete
Add metadata to query, move metatagging of metadata to metatagger, tweaks to the generate caching so that the cached data becomes more stable (and is GIT-friendlier)
This commit is contained in:
parent
591ab349a6
commit
54f01ba554
7 changed files with 129 additions and 66 deletions
|
@ -182,8 +182,8 @@ export default class GeoJsonSource implements FeatureSource {
|
|||
self.seenids.add(feature.properties.id)
|
||||
|
||||
let freshness: Date = time;
|
||||
if (feature["_timestamp"] !== undefined) {
|
||||
freshness = new Date(feature["_timestamp"])
|
||||
if (feature.properties["_last_edit:timestamp"] !== undefined) {
|
||||
freshness = new Date(feature["_last_edit:timestamp"])
|
||||
}
|
||||
|
||||
newFeatures.push({feature: feature, freshness: freshness})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue