[Chameleon] chameleon HTML legend
Jason Fournier
jfournier at dmsolutions.ca
Tue Dec 20 10:30:17 EST 2005
Hi Maxi,
The following legend template might provide something similar to what you're looking for (WARNING: untested!):
[leg_layer_html order=ascending opt_flag=15]
<tr>
<td><input type="radio" name="my_legend" onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1] CHECKED[/if] ></td>
<td><input type="checkbox" name="legendlayername[]" value="[leg_layer_name]" [if name=layer_status oper=eq value=1]CHECKED[/if] [if name=layer_status oper=eq value=2]CHECKED[/if]></td>
<td><img src="[leg_icon width=20 height=18]" width="20" height="18"</td>
[if name=wms_name oper=isnull]
<td>[leg_layer_name]</td>
</tr>
[/if]
[if name=wms_name oper=isset]
<td>[metadata name=WMS_TITLE]</td>
</tr>
[/if]
[/leg_layer_html]
[leg_class_html opt_flag=0]
<tr>
<td> </td>
<td> </td>
<td width="19"><img src="[leg_icon width=15 height=15]" width="15" height="15"></td>
<td>[leg_class_name]</td>
</tr>
[/leg_class_html]
More information can be found at http://mapserver.gis.umn.edu/docs/howto/html_legend .
Best Regards,
Jason
Massimiliano Cannata wrote:
> Hi,
> Is there a way to show a legend with:
>
> radio - check - layer name
> class_icon - class name
> class_icon - class name
> radio - check - layer name
> class_icon - class name
> class_icon - class name
>
> by using HTML legend in chameleon applications?
>
> Any help is welcome.....
>
> thanks.
> Maxi
>
>
> _______________________________________________
> 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
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list