makinacorpus / Leaflet.MeasureControl

Leaflet control to mesure distances on the map
https://makinacorpus.github.io/Leaflet.MeasureControl
BSD 3-Clause "New" or "Revised" License
82 stars 48 forks source link

Assigning the measure control event to a html Button and use from there? #20

Open nagasreev opened 7 years ago

nagasreev commented 7 years ago

Hi, At present, the measure control is added to Map. I dont want the control get added to my map. Instead i had a html toolbar and on click of a button inside that, the measure control event should activate.

Leaflet.PM (drawing tool plugin) gave the option to assign the events to custom buttons. Is it possible with your plugin. Please help.