GeoJson map of Colombia
This map of Colombia uses D3.js and GeoJSON to display province boundaries, with each province color-coded by the length of its English name. The visualization includes interactive features: hovering over a province triggers a text effect and randomly selects a new font for the label, while clicking a province zooms in for a closer view, and clicking elsewhere zooms back out. The map is rendered using SVG and supports smooth animated transitions. The GeoJSON data was derived from Colombian shapefiles converted with ogr2ogr.
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>