[Users] Suggestion for tree RadioButtonPlugin
Dan Ramage
dan at inlet.geol.sc.edu
Mon Aug 2 16:34:37 CEST 2010
I run into situations where I have layers that should be grouped together in
a node, but maybe only one of them is capable of a getFeatureInfo request.
Currently on a node loader.baseAttrs.radioGroup must be defined for the
plugin to work. However every layer that appears in the group will have a
radiobutton whether it is required or not.
When working on my layerOpacitySliderPlugin, I added some code to check not
only if the node defines loader.baseAttrs.slider, but also check to see if
the layer defines layer.options.opacitySlider: true. By default, if
loader.baseAttrs.slider is defined, but nothing is set in
layer.options.opacitySlider, the slider will be created. So one catch is for
any layers in a group that might have a slider, the ones in the groups that
should not have a slider must define layer.options.opacitySlider: false.
Anyway I was wondering if something similar would be a useful addition to
the radio button to give some further creation control.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100802/0d882e84/attachment.htm
More information about the Users
mailing list