Skip to main content
100%

Clipped Map Tiles

✓ Published0🌍 Public
Mmbostock
Last edited Jul 20, 2019
Created on Nov 26, 2012

This example clips MapBox Natural Earth II raster tiles to the outline of the United States, which is loaded as TopoJSON. Using the d3.geo.tile plug-in and a d3.geo.mercator projection, it generates a grid of image tiles and applies a clipPath referencing the land outline. The stroke class adds a black outline, and the code dynamically selects tile URLs from MapBox subdomains.

AI-generated description

Demonstrates the d3.geo.tile plug-in used in conjunction with the d3.geo.mercator projection to clip MapBox Natural Earth II raster tiles. The outline of the United States is loaded in TopoJSON format.

gpl-3.0 Licensed

Similar vizzes