Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js
As in Krist example:
- Each province is color-coded by the length of its name in English.
- Hover each province to see text effects.
- New font is chosen randomly every time you change the province.
- Click on a province to zoom in. Click somewhere else to zoom out.
I obtained the Colombian GeoJSON by transforming the Colombian shapefiles by Maurix Suárez, using:
ogr2ogr -f GeoJSON -t_srs EPSG:4326 Colombia.geo.json depto.shp
Que buen catch! La verdad no tengo idea. Para este ejemplo, no construí los archivos geo yo, sino que utilicé los de Maurix. Puedes usar el topojson de este último ejemplo que hice en Observable https://observablehq.com/@john-guerra/spike-map-of-colombian-cities-by-population