Hello, for some reasons I would like to draw polygon using button but not the one from the Toolbar, just my own button. I tried to use jquery to trigger 'click' action on toolbar but can't do this at all. I noticed that 'buttons' on toolbar are not really buttons but simple classes and I think this is the reson. I also tried to use observeEvent but it doesn't work either. Here is working example and my post on SO: https://stackoverflow.com/questions/66765995/how-to-programmatically-click-element-on-drawtoolbar/66766650#66766650
Is it possible at all? I'm struggling with this issue.
Hello, for some reasons I would like to draw polygon using button but not the one from the Toolbar, just my own button. I tried to use jquery to trigger 'click' action on toolbar but can't do this at all. I noticed that 'buttons' on toolbar are not really buttons but simple classes and I think this is the reson. I also tried to use
observeEvent
but it doesn't work either. Here is working example and my post on SO: https://stackoverflow.com/questions/66765995/how-to-programmatically-click-element-on-drawtoolbar/66766650#66766650Is it possible at all? I'm struggling with this issue.