Gist 7f1be4fc445f5eab7738096f09be4a9c
✓ Published0🌍 Public
Aamortka
Last edited Oct 26, 2016
Created on Oct 26, 2016
This example renders a map of the United States using Mapbox tiles, clipped to the country’s land area. A d3.geo.mercator projection positions the map, while the d3.geo.tile helper computes the visible image tiles at the current zoom level. Tile images from Mapbox’s natural-earth-2 layer are placed in an SVG group clipped by a path of the US land topology, with a black stroke outline drawn over the land boundary. The tile loading adapts to the device pixel ratio, ensuring crisp raster tiles on high-density displays.
AI-generated description