<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: rgb(0, 128, 255);"><div>Hello all,<br>I have problem to display Legend into the Chameleon Framework? anyone can help? when i put legendtemplate in the web template, then trouble appearance (i sent the picture too: my_strangelegend.jpg). here the coding<br><br><br style="font-weight: bold;"><span style="font-weight: bold;">initialize Legend in the Map</span><br>(Ina.map)<br>:<br>:<br>CONNECTIONTYPE POSTGIS<br> CONNECTION "user=usr password=pass dbname=db host=localhost port=5432"<br> DATA "the_geom FROM tbk_x USING UNIQUE kode"<br><br><span style="font-weight: bold;">CLASS</span><br> NAME "xx"<br> TEMPLATE "./webtemplate.html"<br> EXPRESSION ([ljum_pkl]>=1000 and [ljum_pkl]<=2000) <br>
STYLE<br> COLOR 255 50 50<br> OUTLINECOLOR 0 0 0<br> WIDTH 2<br> ANTIALIAS TRUE<br> END#STYLE<br> END #CLASS<br> <br> <span style="font-weight: bold;">CLASS</span><br> NAME "yy"<br> TEMPLATE "./webtemplate.html"<br> EXPRESSION ([ljum_pkl]>=2001 and [ljum_pkl]<=4000) <br> STYLE<br> COLOR
100 200 100<br> OUTLINECOLOR 0 0 0<br> WIDTH 2<br> ANTIALIAS TRUE<br> END#STYLE<br> END #CLASS<br><br>CONNECTIONTYPE POSTGIS<br> CONNECTION "user=usr password=pass dbname=db host=localhost port=5432"<br> DATA "the_geom FROM tbk_x USING UNIQUE kode"<br><span style="font-weight: bold;">CLASS</span><br>NAME "xx"<br> TEMPLATE "./webtemplate.html"<br> EXPRESSION ([ljum_pkl]>=1000 and [ljum_pkl]<=2000) <br> STYLE<br> COLOR 255 50 50<br>
OUTLINECOLOR 0 0 0<br> WIDTH 2<br> ANTIALIAS TRUE<br> END#STYLE<br> END #CLASS<br> <br> <span style="font-weight: bold;">CLASS</span><br> NAME "yy"<br> TEMPLATE "./webtemplate.html"<br> EXPRESSION ([ljum_pkl]>=2001 and [ljum_pkl]<=4000) <br> STYLE<br> COLOR 100 200 100<br> OUTLINECOLOR 0 0 0<br>
WIDTH 2<br> ANTIALIAS TRUE<br> END#STYLE<br> END #CLASS<br><br><span style="font-weight: bold;">LEGEND # </span>BLOK LEGENDA<br> IMAGECOLOR 255 255 204 # kuning Muda<br> KEYSIZE 18 9<br> KEYSPACING 3 5<br> POSTLABELCACHE TRUE<br> STATUS ON # template<br> TRANSPARENT OFF<br> LABEL # LABEL LEGENDA <br> TYPE TRUETYPE<br> FONT arial<br> COLOR 0 0 0<br> SIZE 6<br> ANTIALIAS TRUE<br> END #LABEL<br> TEMPLATE
"./legend_template.html"<br><br><span style="font-weight: bold;">initialize Legend in the Web Template using Chameleon Framework (webtemplate.html)</span><br><br> <body onLoad="CWC2OnLoadFunction()"><br> <br> <table border="3" cellpadding="1" cellspacing="1"><br> <tbody><br> <tr><br><br> <td>~~~coding CWC2 ELSE bla...bla~~</td><br> <td>~~~coding CWC2 ELSE bla...bla~~</td> <br><br> <td valign="top"><br> <img src="./images/sim_utara.gif"><br><br> <CWC2 TYPE="LegendTemplate"<br>
VISIBLE="true"<br> ENABLED="true"<br> EMBEDDED="true"<br> POPUPWIDTH="50"<br> POPUPHEIGHT="25" <br> TEMPLATE="./legend_template.html"/> <br> </td><br><br> <td>~~~coding CWC2 ELSE
bla...bla~~</td><br></tr><br></tbody><br></body><br><br><span style="font-weight: bold;">legend_template.html</span><br style="font-weight: bold;"><br>[leg_layer_html order=ascending opt_flag=15]<br><br> <br> <input type="checkbox" name="legendlayername[]" <br>value="[leg_layer_name]"<br> [if name=layer_status oper=eq value=1]CHECKED[/if]<br> [if name=layer_status oper=eq value=2]CHECKED[/if]><br> <br> <img src="[leg_icon width=22 height=18]" width="22" height="18"><br> <br> [leg_layer_name]<br> <br>[/leg_layer_html]<br><br><span style="font-weight: bold;">how to display Legend with color like in map's class?</span><br><br>Thanks a lot all =)<br><br>-Theresia<br></div>
</div></div><br>
</body></html>