On Thursday, November 26, 2009, Derek Watling <[email protected]> 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 : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users