Running also in the same problem, i have enhanced the
OpenLayers.LayerSwitcher by adding a radiobutton to each layer entry. It
sets a property for the map: map.aktLayer=layerIndex.
 
Control : map.addControl(new OpenLayers.Control.LayerSwitcherRadio());

To get the active layer, call map.layers[map.aktLayer].
 
Example :
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.htm
l
 
Script :
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/javascript/layerswi
tcherradio.js
 
Arnd Wippermann

  _____  

Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Bas Couwenberg
Gesendet: Donnerstag, 28. August 2008 10:54
An: [email protected]
Betreff: [OpenLayers-Users] Layer selection in LayerSwitcher


Hello,
 
is it possbile with the LayerSwitcher control to select a layer (I don't
mean turn invisible) which I then could use to change it opacity. The
opacity part works well from the examples but I want to do this per layer I
select.
 
Best regards,
 
Bas Couwenberg
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to