<div>Hello all,</div><div><br></div>I'm looking for "add feature" code for inspiration for a plugin. But I can't seam to find it. My idea was to see the correct procedure to draw in canvas (respecting topology, avoid intersection, and so on).<div>
<br></div><div>For what I have read, I think the procedure is something like:</div><div><br></div><div>- Start a rubberBand;</div><div>- On left-click add points to the rubberBand;</div><div>- Update rubberband drawing as mouse moves;</div>
<div>- On right-click finish rubberband;</div><div>- Use finished rubberband somewhere (in my case use it to replace a feature geometry)</div><div><br></div><div>Thanks,</div><div><br></div><div>Alexandre Neto</div>