Helmut,
Is this a public site that you are retrieving the data from? If so, do they have a listing of the layers available? Jerome From: Helmut Seidel M.A. [mailto:[email protected]] Sent: Friday, June 07, 2013 10:54 AM To: [email protected] Subject: AW: [OpenLayers-Users] Newby: Retrive URL of WMS-Layer Dear Jerome, Thank you for your quick answer. I followed your tip (and link) but still only broken links are displayed. I used the following Code: . var ortho = new OpenLayers.Layer.WMS("DOP 200", "http://geodaten.bayern.de/ogc/ogc_dop200_oa.cgi"); I guess it's got something to do with the missing: {layers: ""}); Line. But I don't no any Layer-Names - so is there a posibility to extract them or display all? Thanks again Helmut Von: Jerome A. Wendell [mailto:[email protected]] Gesendet: Freitag, 7. Juni 2013 16:18 An: 'Helmut Seidel M.A.'; [email protected] Betreff: RE: [OpenLayers-Users] Newby: Retrive URL of WMS-Layer Helmut, You don't need the question mark. See the format at the following link: <http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLa yers/Layer/WMS-js.html> OpenLayers.Layer.WMS Hope this helps, Jerome From: <mailto:[email protected]> [email protected] [ <mailto:[email protected]> mailto:[email protected]] On Behalf Of Helmut Seidel M.A. Sent: Friday, June 07, 2013 10:05 AM To: <mailto:[email protected]> [email protected] Subject: [OpenLayers-Users] Newby: Retrive URL of WMS-Layer Hello everybody, I'm sorry to write again but it's quite a lot of thinking and trying to get started with OpenLayers. Now, that I've succeeded loading my geoJSON layer - thanks to you I try to display a WMS layer using the following piece of code: . var ortho = new OpenLayers.Layer.WMS("DOP 200", "http://geodaten.bayern.de/ogc/ogc_dop200_oa.cgi?", {layers: 'basic'}); map.addLayers([flurstuecke, gebaeude, ortho]); After calling the website instead of Ortho-Photoes empty tiles with a broken link symbol in each are displayed. I guess the error lies in the URL - to me it looks like somethings gone missing after the question mark . Can anybody give me a hint how to retrive the missing part or ist he error hidden somewhere else? Thanks again Helmut
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
