forked from MapComplete/MapComplete
Add OsmFeature type
This commit is contained in:
parent
284951f5f7
commit
24f090c92f
7 changed files with 26 additions and 20 deletions
|
|
@ -159,7 +159,7 @@ export class Changes {
|
|||
const recentLocationPoints = locations.map(ff => ff.feature)
|
||||
.filter(feat => feat.geometry.type === "Point")
|
||||
.filter(feat => {
|
||||
const visitTime = new Date((<GeoLocationPointProperties>feat.properties).date)
|
||||
const visitTime = new Date((<GeoLocationPointProperties><any>feat.properties).date)
|
||||
// In seconds
|
||||
const diff = (now.getTime() - visitTime.getTime()) / 1000
|
||||
return diff < Constants.nearbyVisitTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue