[OpenLayers-Dev] Fwd: [OpenLayers-Commits] r6230 - trunk/openlayers/lib/OpenLayers

Christopher Schmidt crschmidt at metacarta.com
Tue Feb 12 12:29:30 EST 2008


On Tue, Feb 12, 2008 at 10:51:04AM -0600, Erik Uzureau wrote:
> i dont know what the specific case is here, but i know the following
> rule tends to work in 99% of cases:
> 
> if you create it, you destroy it. if you register it, you unregister it.

The problem is that with controls, the map attempts to destroy them all,
even though it creates relatively few of them. Without a flag to say
'Don't destroy me' (or a more invasive destruction procedure documented
for all OpenLayers apps), there's no way to prevent duplicate
destruction.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list