perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.08k stars 350 forks source link

Personnaliser input départ #501

Closed arverne63 closed 5 years ago

arverne63 commented 5 years ago

Good evening, I want to use Leaflet-Routing-Machine with mapbox router, on a hiking site so that visitors to the site can access the starting parking of the hike. So that I wish that I would enter (Parking) leave the input departure empty (image-1.jpg) which would inform the visitor in the site of his place of departure. (image-2.jpg) Is it possible to customize the markers? Thank you for a possible solution. Jean Marc

image-1 image-2

perliedman commented 5 years ago

Hi, you can use the createMarker option to override how the waypoint markers are created.