[Chameleon] Layers control Question

Jason Fournier jfournier at dmsolutions.ca
Wed Dec 7 23:23:41 EST 2005


You can use the LegendTemplate widget to get the desired effect.  The 
LegendTemplate widget exposes MapServer's HTML Legend template to 
Chameleon.  It should look something like:

<cwc2 type="LegendTemplate" visible="true" embedded="true" 
template="legend_template.html" popupstyleresource="TextButtons" 
popupwidth="500" popupheight="400" status="false" menubar="false" 

where legend_template.html is a valid HTML Legend template.

For an example of it's implementation, take a look at the Chameleon 
Samples ... specifically the Enhanced Sample Application.

The documentation for the HTML Legend can be found at 

Best Regards,

krishnaa sridharan wrote:
> Dear all,
> I am a new user to chameleon, kindly help me. I have a map file created 
> from mapedit. It has 2 layers from postGIS. can some one tell mw what 
> widget I use to create controls of the layer( meaning turning on and 
> off). I know this a basic question, but i couldnt find a released widget 
> to do this ( if I am right). can someone please help me with this  or 
> point me to the documentation to do this.
> Thanks in advance
> Krishnaa
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3> 
> ------------------------------------------------------------------------
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
613.565.5056 x18

More information about the Chameleon mailing list