[Chameleon] WMS Legend Icons Blank

Julien-Samuel Lacroix jlacroix at mapgears.com
Thu Mar 23 15:20:57 EST 2006


Hi,
I may be wrong, but I think that the legend icons for WMS layers are not 
automatically created since they are raster layers. You may try to add 
the KEYIMAGE parameter in your CLASS.

Julien

Bird, Derek (xwave) wrote:
> Hi List,
>  
> I created an empty.map file and template, then added a bunch of WMS 
> sources (from my own server), however all of the legend icons are 
> white(empty) ...
>  
> All the layers appear correctly on my map, just the legend seems to be 
> messed up... If someone can point me in the right
> direction, it would be appreciated...
>  
> I have included both my layer from my map file, and the matching layer 
> from my context file.
>  
> Regards,
> Derek
>  
> MAP FILE:
>  
>   LAYER
>     PROJECTION
>       "init=epsg:4326"
>     END
>  
>     NAME "World Countries"
>     STATUS ON
>     DATA "World/world_countries"
>     TYPE POLYGON
>     #higher number means you must zoom out further to see the layer:
>     MINSCALE 4500000
>     METADATA
>       "DESCRIPTION"    "Country File"
>       "wms_title" "WorldCountries"
>       "wms_boundingbox"    "EPSG:4326 -180.000000 -90.000000 180.000000 
> 83.623596"
>  
>     END
>     CLASS
>       NAME "COUNTRY"
>       #COLOR 255 255 255
>       STYLE
>         COLOR 230 225 220
>         OUTLINECOLOR 171 118 56
>       END
>     END
>   END
> XML:
> <Layer queryable="1" hidden="0">
>       <Server service="WMS" version="1.1.1" title="WorldCountries">
>         <OnlineResource xlink:type="simple" 
> xlink:href="http://10.204.5.24:8080/cgi-bin/world.exe?"/>
>       </Server>
>       <Name>World Countries</Name>
>       <Title>WorldCountries</Title>
>       <SRS>EPSG:4326</SRS>
>       <FormatList>
>         <Format current="1">image/png</Format>
>         <Format>image/gif</Format>
>         <Format>image/png; mode</Format>
>       </FormatList>
>     </Layer>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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