[OpenLayers-Users] layerswitcher maximised event?
Eric Lemoine
eric.lemoine at camptocamp.com
Sat Nov 28 08:59:08 EST 2009
On Thursday, November 26, 2009, Derek Watling <derek at 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.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list