Skip to content

Commit e65ed52

Browse files
committed
show distance markers by default on route tracks
1 parent 90e4f16 commit e65ed52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • app/javascript/maplibre/routing

app/javascript/maplibre/routing/osrm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export function initDirections (profile, feature) {
8585
"fill-extrusion-width": 1.5,
8686
"stroke-width": 5,
8787
"stroke": trackColor,
88-
"stroke-dasharray": true }
88+
"stroke-dasharray": true,
89+
"show-km-markers": true }
8990
let coords = decodePolyline(e.data.directions.routes[0].geometry)
9091
currentFeature = { "type": "Feature", "id": currentFeature?.id || functions.featureId(),
9192
"geometry": { "coordinates": coords || [], "type": "LineString" },

0 commit comments

Comments
 (0)