Skip to content

Instantly share code, notes, and snippets.

@dschep
Created January 9, 2024 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschep/066a65f5ffa0fed5dfe00da0e5a6183b to your computer and use it in GitHub Desktop.
Save dschep/066a65f5ffa0fed5dfe00da0e5a6183b to your computer and use it in GitHub Desktop.
{
"version": 8,
"name": "heatmask",
"metadata": {"maputnik:renderer": "mbgljs"},
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://d1zqyi8v6vm8p9.cloudfront.net/planet.json"
},
"stravaheatfreemapsk": {
"type": "raster",
"tiles": ["https://a.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png"],
"minzoom": 0,
"maxzoom": 15
}
},
"sprite": "",
"glyphs": "https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"layout": {"visibility": "visible"},
"paint": {"background-color": "rgba(126, 126, 126, 1)"}
},
{"id": "heatmap", "type": "raster", "source": "stravaheatfreemapsk"},
{
"id": "mask",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"layout": {
"line-cap": "round",
"line-join": "round",
"visibility": "visible"
},
"paint": {
"line-width": {"stops": [[10, 10], [20, 20]]},
"line-opacity": 0.5
}
}
],
"id": "0fe8sprn3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment