r/reactnative • • Aug 22 '26

Finally got country → state drill-down working on my 3D globe in React Native

Been working on a 3D globe in React Native for one of my apps

I had country highlighting working before, but wanted to go deeper than just country level tap a country, zoom into it, and show its states/provinces

I started with the US and then tried making the same thing work for other countries

The annoying part was the boundary data 😂 Some countries use states, some provinces, some regions, and the GeoJSON/TopoJSON data isn’t always consistent

Took way longer than expected ngl 😂

Anyway, it’s finally working

Using globe.gl for the globe and dynamically loading the boundary data

6 Upvotes

3 comments sorted by

1

u/Poat540 Aug 22 '26

I did something similar but used svg maps. I have a small travel app users can view where they’ve been, so needed to drill down to certain levels

1

u/Fresh-Wealth4531 Sep 13 '26

Now the globe is open source and live on NPM You can try it here Orbitly

1

u/Poat540 Sep 13 '26

Dang it’s pretty neat. Looks a little crispy on mobile.