[OpenLayers-Users] Deleting a vectore Feature leaves Vertex dirt on layer

Eric Lemoine eric.c2c at gmail.com
Tue Mar 17 02:45:46 EDT 2009


Hi

Have you tried unselecting the feature - using
selectControl.unselect(feature) - before deleting the feature?

Cheers,

Eric

2009/3/17, Dave Potts <dave.potts at pinan.co.uk>:
>
> If I attempt to delete a feature from a layer it seems to leave behind a
> yellow spot at every point where a line join another, ie a vertext
>
> Is there anyway of stopping this happening?
>
> I am using the onSelect call back to invoke a function that calls
> detroyFeatures to actual do the removal
>
> ie {onSelect: foobar}
> where foobar is
>
> function foobar(feature){
>     feature.layer.destoryFeatures([feature])
>
> }
>
> Is this the correct way to do things? or do I have an active selection
> function??
>
> Dave.
>

-- 
Envoyé avec mon mobile



More information about the Users mailing list