[Chameleon] Legend Problem in chameleon

listserver server chameleon.listserver at gmail.com
Thu Mar 16 10:49:51 EST 2006


I've a problem with the legend of my application
I'm not able to enable/disable layers!

i've added this in my template...
<cwc2 type="LegendTemplate" visible="true" embedded="true"
                template="legend_template.html"
popupstyleresource="TextButtons"
                popupheight="500" popupwidth="300"
                status="true" menubar="true" controlvisibility="false"/>

and this is the legend layer!
[leg_layer_html order=ascending opt_flag=15]
  <tr bgcolor="#fcf8c9">
    <td align="center" width=20><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><img src="farm.png" width="18" height="18" /></td>
    [if name=wms_name oper=isnull]
    <td><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
class="label">[leg_layer_name]</a></td>
  </tr>
    [/if]
    [if name=wms_name oper=isset]
    <td><a href="#"
onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
class="label">[metadata name=WMS_TITLE]</span></a></td>
  </tr>
    [/if]
[/leg_layer_html]


what is Wrong??

Thank you in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060316/7e958203/attachment.html


More information about the Chameleon mailing list