perliedman / leaflet-routing-machine

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

Draggable input fields of geocoder. #472

Closed habib-farhan closed 6 years ago

habib-farhan commented 6 years ago

Hi Per,

I was wondering if there is a way to make the input fields of the geocoder, draggable. I know that we could easily drag the waypoints and the input fields are updated accordingly, but is it possible to do it the other way around as well?

Thanks in advance.

habib-farhan commented 6 years ago

Hi, I found the option geocoderClass: function(i, n){}. I think that will be enough to get started with making them draggable.