sitek94 / pocket-globe-app

Use the draggable and zoomable globe to explore the countries of the world.
https://sitek94.github.io/pocket-globe-app
MIT License
11 stars 2 forks source link

Fixing projection rotation #57

Closed sitek94 closed 4 years ago

sitek94 commented 4 years ago

I manually collected the rotation values for each country. Then extended each country feature object with rotation property so that it is easily accessible.

Now there is no need for calculating the next rotation and it is possible to rotate the projection even to the countries that are not rendered yet.

I don't know whether there is another solution to this, but for the time being this one works fine.