mirror of
				https://github.com/brianshea2/meshmap.net.git
				synced 2025-03-05 21:00:01 -08:00 
			
		
		
		
	update opacity calculation
This commit is contained in:
		
							parent
							
								
									3d290d47ec
								
							
						
					
					
						commit
						1b3c3bee5d
					
				|  | @ -240,7 +240,7 @@ | |||
|     } | ||||
|     const position = L.latLng([latitude, longitude].map(x => x / 10000000)) | ||||
|     const lastSeen = Math.max(...Object.values(seenBy)) | ||||
|     const opacity = 1.0 - (Date.now() / 1000 - lastSeen) / 172800 | ||||
|     const opacity = 1.0 - (Date.now() / 1000 - lastSeen) / 129600 | ||||
|     const tooltipContent = `${html(longName)} (${html(shortName)}) ${since(lastSeen)}` | ||||
|     const popupContent = ` | ||||
|       <div class="title">${html(longName)} (${html(shortName)})</div> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue