<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>&nbsp;&nbsp;&nbsp; CONNECTION "user=usr password=pass dbname=db host=localhost port=5432"<br>&nbsp;&nbsp;&nbsp; DATA "the_geom FROM tbk_x USING UNIQUE kode"<br><br><span style="font-weight: bold;">CLASS</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "xx"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./webtemplate.html"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_pkl]&gt;=1000 and [ljum_pkl]&lt;=2000) <br>&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 50 50<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">CLASS</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "yy"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./webtemplate.html"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_pkl]&gt;=2001 and [ljum_pkl]&lt;=4000) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR
 100 200 100<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br><br>CONNECTIONTYPE POSTGIS<br>&nbsp;&nbsp;&nbsp; CONNECTION "user=usr password=pass dbname=db host=localhost port=5432"<br>&nbsp;&nbsp;&nbsp; DATA "the_geom FROM tbk_x USING UNIQUE kode"<br><span style="font-weight: bold;">CLASS</span><br>NAME "xx"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./webtemplate.html"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_pkl]&gt;=1000 and [ljum_pkl]&lt;=2000) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 50 50<br>&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">CLASS</span><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "yy"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEMPLATE "./webtemplate.html"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ([ljum_pkl]&gt;=2001 and [ljum_pkl]&lt;=4000) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 100 200 100<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp; WIDTH 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END#STYLE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END #CLASS<br><br><span style="font-weight: bold;">LEGEND # </span>BLOK LEGENDA<br>&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 204 # kuning Muda<br>&nbsp;&nbsp;&nbsp; KEYSIZE 18 9<br>&nbsp;&nbsp;&nbsp; KEYSPACING 3 5<br>&nbsp;&nbsp;&nbsp; POSTLABELCACHE TRUE<br>&nbsp;&nbsp;&nbsp; STATUS ON # template<br>&nbsp;&nbsp;&nbsp; TRANSPARENT OFF<br>&nbsp;&nbsp;&nbsp; LABEL # LABEL LEGENDA&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE TRUETYPE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FONT arial<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE 6<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>&nbsp;&nbsp;&nbsp; END #LABEL<br>&nbsp;&nbsp;&nbsp; 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>&nbsp;&lt;body onLoad="CWC2OnLoadFunction()"&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;table border="3" cellpadding="1" cellspacing="1"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tbody&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;td&gt;~~~coding CWC2 ELSE bla...bla~~&lt;/td&gt;<br>&nbsp;&nbsp;&nbsp; &lt;td&gt;~~~coding CWC2 ELSE bla...bla~~&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&lt;td valign="top"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src="./images/sim_utara.gif"&gt;&lt;br&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;CWC2 TYPE="LegendTemplate"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
 VISIBLE="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ENABLED="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EMBEDDED="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POPUPWIDTH="50"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POPUPHEIGHT="25"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE="./legend_template.html"/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;td&gt;~~~coding CWC2 ELSE
 bla...bla~~&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/tbody&gt;<br>&lt;/body&gt;<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>&nbsp; <br>&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="checkbox" name="legendlayername[]" <br>value="[leg_layer_name]"<br>&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq&nbsp; value=1]CHECKED[/if]<br>&nbsp;&nbsp;&nbsp; [if name=layer_status oper=eq value=2]CHECKED[/if]&gt;<br>&nbsp;&nbsp;&nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br>&nbsp;&nbsp;&nbsp; &lt;img src="[leg_icon width=22 height=18]" width="22" height="18"&gt;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; [leg_layer_name]<br>&nbsp; <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>