Skip to content

Commit

Permalink
Styled lines
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Jan 2, 2024
1 parent 6d66c6f commit 341d2ba
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
map.addLayer(
{
id: "fires",
id: "fires-fill",
source: "fires",
"source-layer": "all-years",
type: "fill",
Expand All @@ -73,6 +73,26 @@
},
firstSymbolLayer.id
);
map.addLayer({
id: "fires-lines",
source: "fires",
"source-layer": "all-years",
type: "line",
paint: {
"line-color": "#fff",
"line-opacity": 0.5,
"line-width": [
"interpolate",
["linear", 0.5],
["zoom"],
6,
0,
16,
0.75,
],
},
});
}
</script>

Expand Down

0 comments on commit 341d2ba

Please sign in to comment.