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-tp1298795p1298983.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users