feat: style walk dasharray
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user