Yohan Boniface

Results 551 comments of Yohan Boniface

> Maybe we could expand the event from leaflet to include which of the shapes in the polygon was the > one that was clicked? This would be an ideal...

> 1. Select any vertex on a Polyline and split it at the selected vertex into two Polylines ``` map.on('vertex:click', function (e) { e.vertex.split(); }); ``` > 1. Drag one...

Humm, you have more than one option. It depends how you use the API. Basically, I'd say calling `cancelDrawing` sounds good, then listening for `editable:drawing:cancel`, and doing someting like `e.layer.remove()`...

Sorry, I meant `stopDrawing` just like you've done, and then listening for `editable:drawing:cancel` event.

humm, yeah, sorry, it depends which version of Leaflet your are using, `e.layer.remove` is only on latest beta. On 0.7.3, you need to do something like `e.layer.removeFrom(e.editTools.editLayer)`. Note that it's...

Humm, thinking a bit about it, I think it's more the doc that needs to be fixed rather than the code. Can you elaborate on your use case?

Which Leaflet version where you using?

`endDrawing` only deletes the current drawn shape if invalid, but does not take care of removing the feature from the map. Maybe this can be added in case the feature...

Please also revert the file mode changes.

Good question? :) Answer is not yet, but certainly in the near future ;) @splite07, I guess we'll also need sudo to activate a given cell?