[OpenLayers-Users] Clear Line

Andreas Hocevar ahocevar at opengeo.org
Thu Sep 11 04:19:29 EDT 2008


On Wed, Sep 10, 2008 at 5:44 PM, Kenny France <kenny at xarex.com> wrote:
> if (lineFeature){
>       lineFeature.layer.renderer.clear();
>                lineFeature.layer.destroyFeatures();
>
>     }


Do you really need the layer.renderer.clear() line?
layer.destroyFeatures() should be enough. Which verion of OpenLayers
are you using?

Regards,
Andreas.



More information about the Users mailing list