The site is live at https://mehedikhan72.github.io/3D-Visualization-Testing-React/
Showing geo data on a 3D globe is really fulfilling so I tried out this awesome library called react-globe.gl.
I have two globes in this react app. One showing recent earthquakes and the other one showing the population density of the countries of the world. The first one was straight-forward to implement but the second one was a bit tricky. I had to use an external API to write 'area' data to the geojson file and then use that file to render the globe using d3 to get the corresponding colors.
Recent earthquakes happening around the world.
Population density of the countries of the world, though the data is not very recent.
- Clone the repo
- Run
npm install
oryarn install
to install the dependencies - Run
npm start
oryarn start
to start the app - Open http://localhost:3000 to view it in the browser.
I had to write the area data to the geojson file using an external API to get things working. So I just put the folder there. You don't have to worry about that. You can take a look at it if you want to.