All examples By author By category About


Transparency Gradient Border

Add an transparency gradient to the border of a map.

The map is drawn in svg using OSM's vector tiles API and d3.geo.tile plugin as shown in this block. The gradient border is drawn in an overlaying canvas with the CanvasGradient interface.

Tiles copyright © OpenStreetMap contributors