feat: style walk dasharray

This commit is contained in:
2026-07-13 18:28:58 +02:00
parent 69ec5436f8
commit 6dbefb0e33
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -24,6 +24,10 @@
'#' + '#' +
(store.routesById[line.properties?.routeId] (store.routesById[line.properties?.routeId]
?.color || '000000'), ?.color || '000000'),
'line-dasharray': [
2,
line.properties?.mode == 'WALK' ? 1 : 0,
],
}" }"
/> />
</mgl-geo-json-source> </mgl-geo-json-source>
+1
View File
@@ -40,6 +40,7 @@ function plan() {
type: "Feature", type: "Feature",
properties: { properties: {
routeId: leg.routeId, routeId: leg.routeId,
mode: leg.mode,
}, },
geometry: { geometry: {
type: "LineString", type: "LineString",