geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.21k stars 433 forks source link

Question: What is the correct method for adding custom buttons to Geoman? #614

Closed AdamJamesNaylor closed 4 years ago

AdamJamesNaylor commented 4 years ago

Apologies if this is documented somewhere but I was trying to add a custom button to the geoman toolbar which participated in the button toggling that the existing buttons perform.

You can see in this fiddle that the top button toggles any other buttons which are toggled when clicked but not the other way around. Existing buttons do not toggle off the custom button when clicked. https://jsfiddle.net/Imbick/hxt07L5j/

I may well be doing this completely wrong but couldn't find any documentation on what is the correct technique for this.

Falke-Design commented 4 years ago

This week we will release a new Version where you can create custom buttons. Look into: #602

AdamJamesNaylor commented 4 years ago

This week we will release a new Version where you can create custom buttons. Look into: #602

Thanks @Falke-Design, glad to hear it's progressing.