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

Already on GitHub? Sign in to your account

Editing a polygon style while in edit mode #259

Closed
georgecoltart opened this Issue Jan 10, 2014 · 1 comment

Comments

Projects
None yet
2 participants

I'm building a drawing tool where a polyline can have its styles changed while it's in edit mode (while it has the editable dots).
Is there are way to target the properties of this line while in this mode? Changing the draw control options doesn't seem to do it. And it doesnt seem to be a regular vector layer until the editing is complete unless Im mistaken?

(They seem to have acheived this effect on the recent version of Mapbox.com)

Owner

jacobtoye commented Jan 12, 2014

When the edit (toolbar) handler is enabled it will set the style of the layers. When it is disabled (after save or cancel) it will set the style to what it was before. The reason Mapbox are able to achieve color switching is that they are making use of Leaflet.draw's layer handlers and not the toolbar.

@jacobtoye jacobtoye closed this Aug 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment