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

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Tue May 25 12:45:22 PDT 2010


If you really needed to set a background color, you could probably create an image of that color, georeference it to have an extent that matches your map extent and then set layer status to default for both of your layers.  It still may be possible for someone to send a WMS to request only your data layer.

Adding this raster layer will also incur some resources for processing.  Whether it is significant or not, I don't know.

To help you figure out the best solution, tell us what your  use case is.  It is likely that someone else has had a similar need.

David.



From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james
Sent: Tuesday, May 25, 2010 2:37 PM
To: thomaschx at gmx.de
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Map background color using OL/WMS

Thanks Thomas...
But how can I change the backround in Client Side?

Paul

Just a guess - I think you have to change the backround of your Map in the Client Side. If you don't have only one Layer, your wms Layers should be transparent. And as wms serves only Layers, there is no way to change the backgroundcolor on Server Side.

But maybe I'm wrong


Thomasch

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto: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/58c54e2e/attachment.htm>


More information about the MapServer-users mailing list