perliedman / leaflet-routing-machine

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

Control outside map #578

Closed asiermusa closed 4 years ago

asiermusa commented 4 years ago

Hi!

Is there any way to customize search inputs and put them outside map component, as a html wrapper?

Thanks

perliedman commented 4 years ago

Not built in and supported by the API, but I think someone told me they had some luck overriding Itinerary's onAdd method to set the _container property to some element outside the map.

It's not something I have tried myself, but it looks like it could work!

asiermusa commented 4 years ago

Thanks!