forked from MapComplete/MapComplete
		
	Load timestamp from geojson
This commit is contained in:
		
							parent
							
								
									b5862ab8a9
								
							
						
					
					
						commit
						c20e2def5b
					
				
					 2 changed files with 13 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -156,10 +156,13 @@ async function postProcess(targetdir: string, r: TileRange, theme: LayoutConfig)
 | 
			
		|||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            const featuresFreshness = geojson.features.map(feature => ({
 | 
			
		||||
                freshness: osmTime,
 | 
			
		||||
                feature: feature
 | 
			
		||||
            }));
 | 
			
		||||
            const featuresFreshness = geojson.features.map(feature => {
 | 
			
		||||
                feature["_timestamp"] = rawOsm.osm3s.timestamp_osm_base;
 | 
			
		||||
                return ({
 | 
			
		||||
                    freshness: osmTime,
 | 
			
		||||
                    feature: feature
 | 
			
		||||
                });
 | 
			
		||||
            });
 | 
			
		||||
            // Extract the relationship information
 | 
			
		||||
            const relations = ExtractRelations.BuildMembershipTable(ExtractRelations.GetRelationElements(rawOsm))
 | 
			
		||||
            MetaTagging.addMetatags(featuresFreshness, relations, theme.layers);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue