Raruto / leaflet-elevation

Leaflet plugin that allows to add elevation profiles using d3js
GNU General Public License v3.0
254 stars 82 forks source link

How to show `direction` arrows on track without `distance` markers? #245

Closed hupe13 closed 1 year ago

hupe13 commented 1 year ago

(https://github.com/Raruto/leaflet-elevation/issues/244) The arrows on the track are really nice. Is it possible to show them without distanceMarkers?

Thank you very much.

Raruto commented 1 year ago

Hi @hupe13,

if i'm not mistaken, these should be the useful options:

https://github.com/Raruto/leaflet-elevation/blob/868179234d8e9b8f7beaea57d0e34d8bd79a2622/libs/leaflet-distance-marker.js#L125-L126

That means:

https://github.com/Raruto/leaflet-elevation/blob/868179234d8e9b8f7beaea57d0e34d8bd79a2622/src/options.js#L13

👋 Raruto

hupe13 commented 1 year ago

Hi Raruto, thank you very much. It works!