block by wboykinm f17d0a39e06688d0d372fee888a5a07d

Mapbox-gl + d3.geo.tile + clipping

Full Screen

This example shows how to overlay a custom clipped tile layer on top of a Mapbox-gl map. Currently it is not possible to do an arbitrary clip of a mapbox-gl layer, so I’m using d3.geo.tile to overlay raster tiles and clip them using svg clip-paths.

Built with blockbuilder.org

forked from mbostock‘s block: Clipped Map Tiles

forked from enjalot‘s block: Mapbox -> d3 projection

forked from enjalot‘s block: Mapbox-gl + d3.geo.tile + clipping

index.html

d3.geo.tile.min.js