Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-ordering icons on Draw Toolbar #85

Open
andriesd opened this issue May 25, 2017 · 3 comments
Open

Re-ordering icons on Draw Toolbar #85

andriesd opened this issue May 25, 2017 · 3 comments
Labels

Comments

@andriesd
Copy link

This is a great library, thanks for all your work on this.

I was wondering if it would be possible to add an option to re-order the buttons on the tool bar (or maybe one exists and I just haven't been able to find it). Right now the default draw tool bar shows the polyline first, then polygon, then rectangle, then circle, then marker. I currently have set mine to show include the polygon and rectangle drawing options, but would like the rectangle drawing icon to appear on top of the polygon drawing icon.

Thanks for your help.

@andriesd andriesd changed the title Re-ordering buttons on Draw Toolbar Re-ordering icons on Draw Toolbar May 25, 2017
@bhaskarvk
Copy link
Contributor

I don't think that is possible, but I will still investigate.

@andriesd
Copy link
Author

Thanks, I appreciate that a lot. Found this other discussion (Leaflet/Leaflet.draw#265) specifically about Leaflet Draw in JavaScript, but if there is a way to customize the toolbar with just leaflet.extras in Shiny that would be amazing

@bhaskarvk
Copy link
Contributor

Wow that tread is so long and unfortunately no proper conclusion. The code to make it works is split into so many comments, it's virtually impossible for anyone but the author of make sense out of it. I've asked for a demo code and will be glad to incorporate if I get proper sample code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants