vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

Globe poster image/fallback #146

Open gmzbri opened 1 year ago

gmzbri commented 1 year ago

Hello,

Would it be possible to set a static poster image of the globe? Sometimes, on slow connection, the globe takes a couple of seconds to appear and would be nice to have an static version of the globe for these waiting seconds so it's not empty. I am not sure if that's related with having the waitForGlobeReady on?

Thanks a lot for the work put on this.

vasturiano commented 1 year ago

@gmzbri if the wait on seeing the globe is due to the bandwidth of loading a high-resolution image, what you can do is load first a low-res image so it appears quicker, and afterwards the intended hi-res one.

waitForGlobeReady just defines whether the visualization layers should appear or not before the globe image is loaded.