Albrecht,
I'm not sure if what you are requesting is really what you want. In
Mapbuilder, every change you make in a widget will be written back to
the underlying model. So the remaining question is: am I right that
you want to know which layers are visible (=checked)?
You would get this information by issuing the following statement,
assuming that your map model has the id "mainMap":
var layers = config.objects.mainMap.selectNodes("//wmc:[EMAIL
PROTECTED]'0']|//wmc:[EMAIL PROTECTED]'0']");
var name;
for (var i=0; i<layers.length; i++) {
name = getNodeValue(layers[i].selectSingleNode('wmc:Name'));
// do something with the layer name
}
Regards,
Andreas
On Nov 21, 2007 4:33 PM, Albrecht Weiser <[EMAIL PROTECTED]> wrote:
> Hi again,
> i posted last time, but i think my question was too special.
> Therefore now a new try with less requests: does anybody know, how to
> reach the information about the checkboxes of the legend widget? I need
> the info's about checked true or false and the name (or title) of the
> checkbox. It would be nice if someone could help me, because i'm
> really stuck with this problem.
> Thanks
> Albrecht
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users