Start WorldMap
✓ Published0🌍 Public
A world map rendered with `d3.geoMercator` displays country boundaries from a TopoJSON file. Red circular markers and city name labels are projected onto the map from a `cities.csv` dataset, with each marker linking to a Google search for its city. The map supports interactive pan and zoom through `d3.zoom`, applying the zoom transform to all paths, circles, and text elements. The SVG visualization uses `d3.json`, `d3.csv`, `d3.geoPath`, and the TopoJSON `feature` method to convert the topology into geographic features.
AI-generated descriptionJavascript and tooling from https://www.youtube.com/watch?v=xkBheRZTkaw starting at 6:55 - 8:04
- npm is company and package manager
- npm is commandline tool
- yarn is alternative for npm (package manager) using npm packages
- rollup is module bundler. Alternatives webpack / parcel
package manager repository tool
module manager uses local packages
Guidelines (un)named exports
- Default exports give other name to imports. This can be confusing.
- Best practice always use named exports.
Refs
MIT Licensed