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: [email protected] 
[mailto:[email protected]] On Behalf Of Paul james
Sent: Tuesday, May 25, 2010 2:37 PM
To: [email protected]
Cc: [email protected]
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
[email protected]<mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to