GeoJson map of Colombia
This interactive map of Colombia uses D3.js v4 to visualize GeoJSON data of the country's departments and municipalities. Each province is color-coded based on the length of its English name, with a choropleth-style encoding. Users can hover over a province to apply dynamic text effects and trigger a random font change, while clicking a province zooms in for a closer look; clicking elsewhere zooms back out. The map is rendered with SVG and includes smooth transitions for the zoom interactions, all built from GeoJSON data converted from Colombian shapefiles.
AI-generated descriptionGeo Json map of Colombia
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
forked from <a href='http://bl.ocks.org/john-guerra/'>john-guerra</a>'s block: <a href='http://bl.ocks.org/john-guerra/43c7656821069d00dcbc'>GeoJson map of Colombia</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/7a7014b67a1ae2dee8771dda24363e29'>GeoJson map of Colombia</a>
forked from <a href='http://bl.ocks.org/davidgutierrez/'>davidgutierrez</a>'s block: <a href='http://bl.ocks.org/davidgutierrez/8e9b480649804db5181133856d93473a'>GeoJson map of Colombia</a>