[mapserver-users] Map background color using OL/WMS
Edward Mac Gillavry
emacgillavry at hotmail.com
Thu May 27 00:25:47 PDT 2010
Hi Paul,
Maybe late to the show, but another strategy would be to explicitly state the bgcolor in the WMS request that OpenLayers composes like so:
var wmsmap = new OpenLayers.Layer.WMS(
"Service name",
url,
{
width: '600',
height: '512',
srs: 'EPSG:28992',
layers: 'Dutch provinces',
styles: '',
format: 'image/png',
bgcolor: '0x8FCAE7'
},
{
singleTile: true,
ratio: 1,
attribution: '© 2009 Kadaster',
visibility: true,
isBaseLayer: true
}
);
Hope someone can benefit from this as well.
Cheers,
Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100527/a124cda9/attachment.htm>
More information about the MapServer-users
mailing list