[OpenLayers-Users] Custom Controls

Christopher Schmidt crschmidt at metacarta.com
Sat Dec 20 09:06:24 EST 2008


On Sat, Dec 20, 2008 at 09:55:22AM +0100, Eric Lemoine wrote:
> This discussion makes me wonder if it'd make sense to make
> Map.removeControl also deactivate the control. There are controls that
> are automatically activated upon being added to the map (e.g.
> Navigation), and there are controls that are not (e.g. SelectFeature)
> - each control is itself responsible for choosing which activation
> mode it follows. For deactivate I see no cases where deactivation
> after removal makes sense, so I'd be +1 on having removeControl
> deactivate the control before actually removing it from the map
> viewport.

Agreed.

http://trac.openlayers.org/ticket/1880 , with tests. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list