Thank you all.
I found the solution,
just add a layer parameter (not an option) 'transparent' with value of
'TRUE' in UpperCase.
carls wrote:
>
> I found it,
>
> layer = new OpenLayers.Layer.WMS('MapGuide WMS',
> 'http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Administrator&Password=admin',
> { layers: 'Archives/Background/Layers/Blocks' }, optionswms);
>
> the key point is that I lost 'username' and 'password' in the url.
>
> but another problem:
> how to set the returned image as transparent?
>
--
View this message in context:
http://n2.nabble.com/How-to-add-WMS-Layer-published-by-MapGuide-tp1298795p1301396.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users