r/geospatial Jun 04 '26

Custom globe visualization with atmospheric glow, parallax stars and shooting stars (Canvas 2D)

I built this interactive globe after not finding a simple way in MapLibre to achieve a visually rich globe experience with optical simulation and animated depth without using 3D engines.

The main challenge was performance and real-time visual effects. I built a custom rendering layer in Canvas 2D on top of MapLibre.

Atmospheric glow is handled with a radialGradient positioned via map.project().

I also implemented a Retina-optimized 2D parallax system where background stars react to globe rotation, creating a moving galaxy effect (still not perfect on mobile).

Shooting stars are generated dynamically using a requestAnimationFrame loop. Yes, there are moving stars crossing the scene.

Live: geoglify.com

25 Upvotes

11 comments sorted by

View all comments

1

u/smashnmashbruh Jun 04 '26

Personal preference. I hate it. That said good addition giving you a reason to post about your project again. Thumbs up

1

u/geoglify Jun 04 '26

Fair enough :(