US, CA, MX and PR
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 21, 2013
This example shows a map of the United States, Canada, Mexico, and Puerto Rico using an azimuthal equidistant projection. The code loads a TopoJSON world dataset and filters country geometries by their ISO numeric IDs to isolate the four target regions, drawing them in dark gray against a lighter land mass. It also renders a graticule and international boundaries. The implementation uses d3.geo.azimuthalEquidistant, d3.geo.path, and d3.geo.graticule, with SVG paths generated for land, countries, and boundary meshes.
AI-generated descriptionIn response to a Stack Overflow question. Update: Jason Davies has implemented Airy’s minimum error projection, which is another good choice, particularly if you want to show a wider view.
gpl-3.0 Licensed