Discussion
ge96: Why is there almost no traffic in places like South America (other than Brazil) and Africa? Data set or reality? Not much in China/Russia either.
amelius: Can you add pinch zoom?
ddoolin: When you zoom in to the street map level, the planes are practically invisible with their color and thin borders. Pretty neat though, that's a lot to load and keep smooth.
coolwulf: Currently I developed this for desktop browser, so it might not work well on mobile. But I will improve and update it.
pohl: You should be able to do pinch zoom support for laptops with a trackpad, too. I think it would bewindow.addEventListener('wheel', ... )Fantastic work!
paulnsorensen: Wow. I won't give you a feature request :) just appreciation.It really puts into perspective the magnitude of air traffic when you have this visualization.
aduffy: There's something a little off about the projection logic when you drop into the Leaflet view, you'll notice that when you pan around after zooming the planes shift their location.Very cool demo though!
coolwulf: Need to check my calculations. Thanks for noticing it.
amelius: Ok, I'm on desktop now. And I notice another "issue". When I use my mouse wheel to zoom, the point that my mouse cursor is on is not stationary. This makes it hard to zoom in on e.g. a specific aircraft or landmark.
Glubker: Really cool! Curious to know how you made it render everything so fast with barely any loading.Good work.
coolwulf: I can take a look. The current zoom is zooming to screen center. Maybe I should change it to cursor location.
coolwulf: If you switch to satelite view, the planes will be very visible.
Levitating: The wasm file (flight_viz_bg.wasm) was 10.94 MB as reported by firefox.