forked from MapComplete/MapComplete
		
	WIP: use indexedDB as datastore for geotiles
This commit is contained in:
		
							parent
							
								
									b5693304f2
								
							
						
					
					
						commit
						8fa7de661e
					
				
					 9 changed files with 99 additions and 65 deletions
				
			
		|  | @ -218,7 +218,8 @@ export default class MapState extends UserRelatedState { | |||
|                 let timeDiff = Number.MAX_VALUE // in seconds
 | ||||
|                 const olderLocation = features.data[features.data.length - 2] | ||||
|                 if (olderLocation !== undefined) { | ||||
|                     timeDiff = (previousLocation.freshness.getTime() - olderLocation.freshness.getTime()) / 1000 | ||||
|                     console.log("Previous location", previousLocation) | ||||
|                     timeDiff = (new Date(previousLocation.freshness).getTime() - new Date(olderLocation.freshness).getTime()) / 1000 | ||||
|                 } | ||||
|                 if (d < 20 && timeDiff < 60) { | ||||
|                     // Do not append changes less then 20m - it's probably noise anyway
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue