Skip to main content
100%

Map Testing Assignment

✓ Published0🌍 Public
MMukund Khandelwal
Last edited Sep 25, 2018
Created on Sep 25, 2018

This interactive map displays world countries with hover-highlighting, static labels, and click-to-zoom functionality. Using D3 v5 and TopoJSON, it renders GeoJSON features as SVG paths via `d3.geoPath` with an equirectangular projection. Users can pan and zoom via `d3.zoom`, while clicking a country triggers a custom `boxZoom` function that transitions to the country’s bounding box. Country names are positioned with `path.centroid` and styled with background rectangles. Zoom limits are dynamically set on resize, and the map employs minimal styling with CSS hover effects.

AI-generated description
MIT Licensed

Similar vizzes