[Chameleon] RE: Legend Problem in chameleon

He, Matt Yubin mhe at itsc.uah.edu
Thu Mar 16 12:36:43 EST 2006


Sorry, wrong link. 

The link is http://mapserver.gis.umn.edu/docs/howto/html_legend


Matt He

-----Original Message-----
From: He, Matt Yubin 
Sent: Thursday, March 16, 2006 11:33 AM
To: 'chameleon at lists.maptools.org'
Subject: RE: Legend Problem in chameleon

To my knowledge, legend template will display all layers in your map
file. 
If you don't want to show a layer, you can remove it from map file, or
modify your template file. 

For how to change Legend template file, you can take a look at this:
http://www.mapbender.org/index.php/Legend


Matt



Date: Thu, 16 Mar 2006 16:49:51 +0100
From: "listserver server" <chameleon.listserver at gmail.com>
Subject: [Chameleon] Legend Problem in chameleon
To: chameleon at lists.maptools.org
Message-ID: <253120740603160749x6221fd00q at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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



More information about the Chameleon mailing list