Map Pan / Zoom with Cities and Text v5
This example displays an interactive map of the world centered on the Pacific, overlaid with red circular markers for eleven cities and their labels. Pan and zoom controls are implemented using the `d3.zoom` API, which applies SVG `transform` attributes to all map paths, circles, and text. The map geometry and city positions are projected using `d3.geoMercator` and `d3.geoPath`, with country outlines loaded from a TopoJSON file. City coordinates come from a CSV loaded via `d3.csv`, and text labels are placed above each marker, each linking to a web search.
AI-generated descriptionThis is a simple map example with pan and zoom centered on the Pacific with added cities and text
This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 5 of d3.js.