vasturiano / globe.gl

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

Add a morph from 3D globe to 2D map #27

Open theoarav opened 3 years ago

theoarav commented 3 years ago

Is your feature request related to a problem? Please describe. I've seen the Kasperky cybermap and it can switch from 3D to 2D, I think it's a really cool effect but might be hard to implement with extruded polygons maybe ?

Describe the solution you'd like A function to switch between 3D and 2D.

Additional context I've found this solution but I don't know how to integrate it to your library :

zzikkzzakk commented 3 years ago

These map projections are a whole topic on it's own: https://en.wikipedia.org/wiki/Map_projection I implemented Mercator projection once for a ThreeJs globe, maybe I can contribute it here.

JuliensLab commented 3 years ago

I implemented Mercator projection once for a ThreeJs globe, maybe I can contribute it here.

That would be helpful! I'm also struggling to implement this: https://jsfiddle.net/prisoner849/2mje4c93/

khalidmaquilang commented 11 months ago

so is there any way to convert from 3d to 2d?