On Thursday, November 26, 2009, Derek Watling <de...@cmainfo.co.za> wrote: > > Is there an event that triggers when the layerswitcher is maximised? If so > how do I hook into it?
there's not. But you can inherit from LayerSwitcher and overload the maximizeControl method: CustomLayerSwitcher = OpenLayers.Class(OpenLayers.Control.LayerSwitcher, { maximizeControl: function() { OpenLayers.Control.LayerSwitcher.prototype.maximizeControl.apply(this, arguments); // do what you need here } }); note, though, that maximizeControl isn't part of the public API, so this code could break with future OpenLayers releases. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users