feat: style walk dasharray
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
'#' +
|
||||
(store.routesById[line.properties?.routeId]
|
||||
?.color || '000000'),
|
||||
'line-dasharray': [
|
||||
2,
|
||||
line.properties?.mode == 'WALK' ? 1 : 0,
|
||||
],
|
||||
}"
|
||||
/>
|
||||
</mgl-geo-json-source>
|
||||
|
||||
@@ -40,6 +40,7 @@ function plan() {
|
||||
type: "Feature",
|
||||
properties: {
|
||||
routeId: leg.routeId,
|
||||
mode: leg.mode,
|
||||
},
|
||||
geometry: {
|
||||
type: "LineString",
|
||||
|
||||
Reference in New Issue
Block a user