[OpenLayers-Users] Clear Line
Kenny France
kenny at xarex.com
Thu Sep 11 08:49:16 EDT 2008
I am using v 2.6
I haven't tried it without clear();
But I will
K-
-----Original Message-----
From: andreas.hocevar at gmail.com [mailto:andreas.hocevar at gmail.com] On Behalf
Of Andreas Hocevar
Sent: 11 September 2008 10:19
To: Kenny France
Cc: Users at openlayers.org
Subject: Re: [OpenLayers-Users] Clear Line
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