Skip to content

Instantly share code, notes, and snippets.

View FrissAnalytics's full-sized avatar

Herman Sontrop FrissAnalytics

View GitHub Profile
@enjalot
enjalot / README.md
Last active May 29, 2022 11:17
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