All examples By author By category About

enjalot

Mapbox-gl + d3.geo.tile + clipping

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