[OpenLayers-Dev] Should control.destroy() call removeControl ?

Christopher Schmidt crschmidt at metacarta.com
Fri Sep 21 07:45:17 EDT 2007


On Fri, Sep 21, 2007 at 11:37:30AM +0200, Fr??d??ric Junod wrote:
> Hi list,
> 
> In OpenLayers.Layer the destroy function call removeLayer() to remove itself
> from the map.
> 
> Shouldn't OpenLayers.Control.destroy() do the same and call removeControl() ?

Yep. removeControl is newer than removeLayer, and never got added.

> New ticket ?

New ticket, 2.6 because I'm concerned about the side effects of making
this the default behavior.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list