It's been a while since I worked on that, but the best way to figure out 
how to do this is follow what was done in the Legend widget.  Look in 
the legend.xsl file for the calls to setHidden() that are the result of 
a mouse click.  setHidden takes 2 parameters: the layer name and a 
boolean to hide the layer or not.

Mike




Grégory Babusiaux wrote:
> HI
>  
> I have a question, specially to Mike Adair who wrote OwsContext.js
>
> I'm currently using Gml Viewer. I got a separate div with some data.
>
> I would like to add an "onClick" option to this data and call the 
> setHidden function defined in lib/model/OWSContext.js
>
> Is this possible? how would this be done? Do I have to pass the 
> context as argument?
>
> Thanks,
> Greg
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>   



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to