Closed JonasDoe closed 1 year ago
Hi @JonasDoe
No, this is not a feature available out of the box, also because the wptIcons
are nothing more than instances of leaflet icons:
Instead, svg "points" are created manually in the elevation chart within this library with the aid of d3.js:
Anyway, with the right javascript knowledge it shouldn't be too much difficult to alter the current code in order to write some dedicated functions for this purpose (eg. monkey patching some built-in from L.Control.Elevation.*
).
As a starting point, If you don't know where to start looking, you can also check out leaflet-elevation_dynamic-runner.html source code:
Anyway, keep in mind that:
👋 Raruto
Alright, thank you for the directions!
Subject of the issue
From the examples and the documentation I understand that I can create custom waypoint icons with the
wptIcons
property. But that only seems to affect the displayed map, not the elevation chart, which only features dots with texts. I'm not sure whether I'm missing something, though.Expected behaviour
In case I'm not missing some option, a flag, e.g.
type icons='MAP'|'CHART'|'BOTH'
would be nice, if it doesn't conflict with any other chart specific settings.