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

Paul james pauljame at gmail.com
Tue May 25 14:21:05 EDT 2010


Thanks Jeff...
But do you know how change map background ? Using Mapscript IMAGECOLOR works
fine...
With CGI/WMS/OL i cant get that to work...

Paul

On Tue, May 25, 2010 at 9:23 AM, Jeff McKenna <jmckenna at gatewaygeomatics.com
> wrote:

> 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/
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100525/87673023/attachment.html


More information about the mapserver-users mailing list