I’m updating a world map that shows various data on a per-country basis (I made this a few years ago and the project’s data set has since expanded). It would be nice to be able to zoom the map to look at small islands, but I haven’t got a clue how to add this feature. Thanks for any tips!
Theo
(Edit: I’ve made a bit of progress using advice from an LLM… What remains to be fixed up is the tooltips, which zoom along with the map).
To do this quickly, you can use the geoviz library. An example is available here: earth / Nicolas Lambert | Observable. The source code is also available on GitHub if you would like to see how it is implemented with D3.