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

Thomasch thomaschx at gmx.de
Tue May 25 17:02:43 EDT 2010


Am 25.05.2010 21:36, schrieb Paul james:
> Thanks Thomas...
> But how can I change the backround in Client Side?

Just find the Id of your DIV containing yout map and change the 
backgound Color. Maybe there is in the Styles Secion someting like

     <style>

	#map {
     	    width: 800px;
    	    height: 500px;
     	    float: left;
     	    border: 1px solid #ccc;
	}
      [...]
     </style>

Just add background-color:#FFDDDD like

     <style>

	#map {
     	    width: 800px;
    	    height: 500px;
     	    float: left;
     	    border: 1px solid #ccc;
             background-color:#FFDDDD
	}
      [...]
     </style>

Thomasch


More information about the mapserver-users mailing list