[mapserver-users] Map background color using OL/WMS

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue May 25 08:23:27 EDT 2010


Paul james wrote:
> Hello all...
> I have a Mapserver WMS application (using OL) ...
> How can I set the map background color?
> I tried to use :
> MAP
>    IMAGECOLOR 230 254 254
> ...
> Without success...
> 
> Tried too :
> METADATA
>             "wms_bgcolor" "0x8B0000"
> 
> No color change...

To test your MapServer mapfile I recommend using the shp2img commandline 
  utility (http://www.mapserver.org/utilities/shp2img.html).  Once you 
have shp2img's resulting map image looking like you want, then you can 
test in your application.  (this is how I would debug your problem, if I 
was hitting your issue)

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-users mailing list