Basic Map
✓ Published2🌍 Public
This example displays a basic world map using an SVG canvas, rendering country boundaries with a Mercator projection. It loads geographic data from the `world-atlas` package via a JSON file and converts it into map features using the `topojson` library's `feature` function. The map is drawn with D3 v5's `geoPath` and `geoMercator` APIs, which generate the SVG path data for each country. The visualization is straightforward, showing only the landmasses without additional styling or interactivity.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed