[OpenLayers-Users] Layer selection in LayerSwitcher
Arnd Wippermann
arnd.wippermann at web.de
Sun Aug 31 17:01:52 EDT 2008
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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Bas Couwenberg
Gesendet: Donnerstag, 28. August 2008 10:54
An: users at openlayers.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080831/30ffaefe/attachment.html
More information about the Users
mailing list