<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>Problem in Print widget</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I got a problem when using print widget in Chameleon 1.0. I am running it with the development version of Mapserver which I got from cvs. When I preview the map with legend in it, the legend icons showed as "?" instead of the symbols I have set. I understand that Chameleon takes a context file as an input and then uses it to generate an updated mapfile whenever a change is made to the application. Therefore, I have created the following context file for testing the creation of legend icons:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">A Test<U> context</U> file:</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT> <FONT SIZE=2 FACE="Arial"><LayerList></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Layer queryable="0" hidden="0"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Server service="WMS" version="1.1.1" title="Aviation_Surface_Weather_Network"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <OnlineResource xlink:type="simple" xlink:href="<A HREF="http://localhost/cgi-bin/wms">http://localhost/cgi-bin/wms</A>?"/></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </Server></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Name>Aviation_Surface_Weather_Network</Name></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Title>Aviation_Surface_Weather_Network</Title></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <FormatList></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Format current="1">image/png</Format></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Format>image/jpeg</Format></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Format>image/wbmp</Format></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FormatList></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <StyleList></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Style current="1"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Name>avn</Name></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <Title>avn</Title></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <LegendURL width="18" height="12" format="image/png"></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <OnlineResource xlink:type="simple" xlink:href="<A HREF="http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true">http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true</A>"/></FONT></P>
<P><FONT SIZE=2 FACE="Arial"> </LegendURL></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </Style></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </StyleList></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </Layer></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </LayerList></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">And the</FONT><U> <FONT SIZE=2 FACE="Arial">mapfile</FONT></U><FONT SIZE=2 FACE="Arial"> it generated is :</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">LEGEND</FONT>
<BR><FONT SIZE=2 FACE="Arial"> IMAGECOLOR 255 255 255</FONT>
<BR><FONT SIZE=2 FACE="Arial"> KEYSIZE 18 12</FONT>
<BR><FONT SIZE=2 FACE="Arial"> KEYSPACING 5 5</FONT>
<BR><FONT SIZE=2 FACE="Arial"> LABEL</FONT>
<BR><FONT SIZE=2 FACE="Arial"> SIZE MEDIUM</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TYPE BITMAP</FONT>
<BR><FONT SIZE=2 FACE="Arial"> BUFFER 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> COLOR 0 0 89</FONT>
<BR><FONT SIZE=2 FACE="Arial"> FORCE FALSE</FONT>
<BR><FONT SIZE=2 FACE="Arial"> MINDISTANCE -1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> MINFEATURESIZE -1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> OFFSET 0 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> PARTIALS TRUE</FONT>
<BR><FONT SIZE=2 FACE="Arial"> END</FONT>
<BR><FONT SIZE=2 FACE="Arial"> POSITION LL</FONT>
<BR><FONT SIZE=2 FACE="Arial"> STATUS ON</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TEMPLATE "legend_template.html"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> END</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">LAYER</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CONNECTION "</FONT><A HREF="http://142.97.246.104/cgi-bin/envirodat?"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://142.97.246.104/cgi-bin/envirodat?</FONT></U></A><FONT SIZE=2 FACE="Arial">"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> CONNECTIONTYPE WMS</FONT>
<BR><FONT SIZE=2 FACE="Arial"> METADATA</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_onlineresource" "</FONT><A HREF="http://142.97.246.104/cgi-bin/envirodat?"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://142.97.246.104/cgi-bin/envirodat?</FONT></U></A><FONT SIZE=2 FACE="Arial">"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style_avn_legendurl_width" "18"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_name" "Aviation_Surface_Weather_Network"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style_avn_title" "avn"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style_avn_legendurl_format" "image/png"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style_avn_legendurl_height" "12"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_formatlist" "image/png,image/jpeg,image/wbmp"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_format" "image/png"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "LEGEND_ORDER" "0"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style_avn_legendurl_href" "</FONT><A HREF="http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true</FONT></U></A><FONT SIZE=2 FACE="Arial">"</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> "wms_server_version" "1.1.1"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_stylelist" "avn"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_style" "avn"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> "wms_title" "Aviation_Surface_Weather_Network"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> END</FONT>
<BR><FONT SIZE=2 FACE="Arial"> NAME "l0:Aviation_Surface_Weather_Network"</FONT>
<BR><FONT SIZE=2 FACE="Arial"> SIZEUNITS PIXELS</FONT>
<BR><FONT SIZE=2 FACE="Arial"> STATUS ON</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TOLERANCE 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TOLERANCEUNITS PIXELS</FONT>
<BR><FONT SIZE=2 FACE="Arial"> TYPE RASTER</FONT>
<BR><FONT SIZE=2 FACE="Arial"> UNITS METERS</FONT>
<BR><FONT SIZE=2 FACE="Arial"> END</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">However, when I started up Chameleon 1.0 with the above context file I got the following error and the image doesn't generate at all:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">"msWMSLoadGetMapParams(): Invalid style ((null)) Mapserver supports only default styles and is expecting and empty string for the STYLES= or STYLES=,,,," </FONT></P>
<P><FONT SIZE=2 FACE="Arial">I know I mess up something somewhere in the context file or anywhere else. Does anyone have any idea on what did I set up wrongly and does anyone know a proper way to make the legend icons show up in the preview ? I am a new to Chameleon if I understood anything wrongly, just point me out. Any help would be greatly appreciated.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks in advance,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Stephanie</FONT>
</P>
</BODY>
</HTML>