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
How to change toolbar button title? #66
Comments
There doesn't seem to be a way to do this even with leaflet-draw, or leaflet itself. Changes need to be done over there for this to be possible. |
This is not actually true: https://github.com/Leaflet/Leaflet.draw/blob/master/src/Leaflet.draw.js#L63 |
yeah you can, this is a simple way i did L.drawLocal.draw.toolbar.buttons.polyline="Polyline name" L.drawLocal.draw.toolbar.actions.title="Cancelar dibujo" L.drawLocal.draw.toolbar.finish.title="Terminar de dibujar" L.drawLocal.draw.toolbar.undo.title="Eliminar el último punto dibujado" //tooltip L.drawLocal.draw.handlers.marker.tooltip.start="haga clic para Colocar el Marcador." |
It would be great to have a locale prop with standard texts in multiple languages |
Hey,
is there any way to change the titles of the buttons in the draw and edit toolbar? For example I want to change 'Draw a polyline'.
Thanks!
The text was updated successfully, but these errors were encountered: