[OpenLayers-Users] the right way to refresh a text layer?
Eric Lemoine
eric.c2c at gmail.com
Wed Dec 5 03:46:26 EST 2007
On Dec 5, 2007 7:19 AM, Michal Rok <mrok at mrok.com> wrote:
> > Would you try the attached patch (absolutely untested!)?
>
> This appears to destroy the same thing twice. The line:
>
> this.events.destroy();
>
> in Marker.js causes a scripting error (this.events is null or not an
> object) - apparently this.events does not exist at the time of execution. I
> replaced this.events.destroy in Marker.js with the following:
>
> if (this.events != null) {
> this.events.destroy();
> this.events = null;
> }
>
> (just like it is done with this.icon). There's no error message now, but
> memory consumption keeps growing anyway.
>
>
> regards,
>
> Michal
Thanks for testing this Michal.
I've added a new patch here <http://trac.openlayers.org/ticket/1123>.
I'm not sure at all it'll fix your problem, but it may be worth trying
it out...
Cheers,
--
Eric
More information about the Users
mailing list