[OpenLayers-Users] Adding radiobuttons to LayerSwitcher
Arnd Wippermann
arnd.wippermann at web.de
Mon Jul 26 08:21:48 EDT 2010
Hi,
I wouldn't take code from that example. It's a terrible hack by me to get
the functionality of set the active layer. I have only replaced the code of
the OpenLayers.LayerSwitcher without the right understanding what's going
on.
Arnd
_____
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Mehmet Sirin
Gesendet: Montag, 26. Juli 2010 12:07
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] Adding radiobuttons to LayerSwitcher
hi,
that's exactly what I need! But I want use it with the layer-group function
.
So now I have layer-grouping via :
http://www.cnblogs.com/iswszheng/archive/2009/12/15/1625069.html and
additional radiobuttons via
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/javascript/LayerSwi
tcherRadioReg.js
(http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.ht
ml). Is there someone, who has time to merge these both functions (because
I'm not able of developing OL source code), so that every layer in the
layerswitcher with group functionality has a radiobutton ?
...would be awesome :)
2010/7/26 C. Mark | Geo-bit <mark at geo-bit.de>
Hi,
I know this example, maybe that is what you want.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/labels_radiobtn.htm
l
Am 26.07.2010 00:07, schrieb Mehmet Sirin:
Hi,
when adding a layer to the map, it is displayed with a checkbox in the
layerswitcher. Now I want to add radiobuttons right to the layernames in
layerswitcher. And then, when selecting one of them, a event should occur.
Yes I know there is Geoext for stuff like this, but after I looked at the
LayerTree example and didn't understand a thing... I want to stay with
OpenLayers.
which possibilities are there to realize this with OL?
I hope you have any ideas..
regards
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100726/cd96c4b8/attachment.html
More information about the Users
mailing list