adds caret layer for preview layer

This commit is contained in:
Christian Beutel
2025-08-23 14:41:50 +02:00
parent 056805f6a2
commit 089ce933dd

View File

@@ -75,6 +75,34 @@ export class PreviewLayer implements BaseLayer {
"circle-stroke-width": 2, "circle-stroke-width": 2,
"circle-stroke-color": "#fff", "circle-stroke-color": "#fff",
}, },
},
{
id: "preview-direction-carets",
type: "symbol",
source: "preview",
minzoom: 10,
layout: {
"symbol-placement": "line",
"symbol-spacing": [
"interpolate",
["exponential", 1.5],
["zoom"],
0,
80,
18,
200,
],
"icon-image": "direction-caret",
"icon-size": [
"interpolate",
["exponential", 1.5],
["zoom"],
0,
0.5,
18,
0.8,
],
},
} }
] ]