Try without the . in front of the http://

On my WMS connections I use the following:

layers:'All'
mode:'map',
map:'//somepath/some.map',
map_imagetype: 'png'

I notice some of your settings are different, but that could be a difference in WMS servers but the . shouldnt be there I do not think.

Hope that helps,

Ken



On 04/11/2010 7:30 AM, Robert Buckley wrote:
Hi,

I am trying to display the layers from this wms service. But
unfortunately I keep getting errors in Firebug. In my GIS desktop
software the layers are shown, so it can only be a problem with my code.


the url
is...http://memas01.lbeg.de/LucidaMap/ogc/srv/wms/wms.srv.asp?pkgId=WMSGEOTH&Request=GetCapabilities
<http://memas01.lbeg.de/LucidaMap/ogc/srv/wms/wms.srv.asp?pkgId=WMSGEOTH&Request=GetCapabilities>

my code...


var layer_erdwaerme = new OpenLayers.Layer.WMS(
"Erdwaerme",
".http://memas01.lbeg.de/LucidaMap/ogc/srv/wms/wms.srv.asp?
<http://memas01.lbeg.de/LucidaMap/ogc/srv/wms/wms.srv.asp?pkgId=WMSGEOTH&Request=GetCapabilities>",
{
layers: 'L211',
styles: '',
srs: 'EPSG:4326',
format: 'image/png',
transparent: true
},
{
'opacity': 1, 'isBaseLayer': false, visibility:true
}
);


Does anyone get positve results with this service?

yours,

Robert Buckley



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

Reply via email to