[OpenLayers-Users] OpenLayers.Control.LayerSwitcher and maximizeControl()
Jürgen Dankoweit
Juergen.Dankoweit at T-Online.de
Fri Aug 16 09:03:30 PDT 2013
Hello to the list,
when maximizing the LayerSwitcher control it cannot minimized anymore.
Only the minimizer Icon is shown but the layercontrol is still open. Is
this a bug or did I forget something?
Code snippet:
var c_LayerSwitcher =
obj.map.getControlsByClass("OpenLayers.Control.LayerSwitcher")[0];
if (c_LayerSwitcher) {
[... setting new layer title ...]
c_LayerSwitcher.maximizeControl();
c_LayerSwitcher.redraw();
}
Thanks for the answers
Jürgen
--
Meine stets unfertige Homepage: www.dankoweit.de
More information about the Users
mailing list