Re: [OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-29 Thread Dan Garland
Hi Atle, Yes we tried an approach that used the split function on a feature to remove points, calculating the necessary distance to move points away from the intersection, and found it wasn't nearly fast enough to match the eraser function one might expect in say an graphics package. I gather

Re: [OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-28 Thread Atle Frenvik Sveen
Aha, now I understand what you mean. Not that I am any export on this, but I still think it is a bit ugly to mask the SVG and these things. The underlaying vector features will not reflect the change if you do so, but perhaps it is the best solution for a given context? Another approach could be

Re: [OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-28 Thread Dan Garland
Thanks for your response Atle, I'm trying to achieve a result that when I draw lots of lines on a page, that I can erase everything underneath a path, preserving the parts of the features not touched by the eraser. This isn't therefore a case of removing the entire feature (more of a 'hide' fea

Re: [OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-27 Thread Atle Frenvik Sveen
Hmm, I think your proposal looks overly complicated. Why don't just remove the feature from the layer it is drawn on? And possibly store it somewhere else if you want to regret the deletion? Or am I misunderstanding you here? -atle On Wed, 2010-01-27 at 12:28 +, Dan Garland wrote: > Any ta

Re: [OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-27 Thread Dan Garland
Any takers? Or am I on the wrong track here? Thanks in advance, Dan Dan Garland wrote: > Hi all, > > I'm a Ruby on Rails developer working on my first project with > OpenLayers. I'm tasked with developing an free-hand eraser tool that can > erase features created by the drawFeatures tool. Amon

[OpenLayers-Users] Towards an eraser tool in OpenLayers

2010-01-26 Thread Dan Garland
Apologies if this was received twice- I didn't see it show up on the archive page and didn't get a bounceback... Hi all, I'm a Ruby on Rails developer working on my first project with OpenLayers. I'm tasked with developing an free-hand eraser tool that can erase features created by the drawFea