[Chameleon] Legend Problem in chameleon

Julien-Samuel Lacroix jlacroix at mapgears.com
Thu Mar 16 15:50:29 EST 2006


Hi,
Can it be the ControlVisible="false" that you set? :)
This parameter must be set to true if you want to turn on/off layers.

Julien

listserver server wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list