[OpenLayers-Users] Newby: Retrive URL of WMS-Layer

Jerome A. Wendell jawendell at suddenlink.net
Fri Jun 7 08:04:34 PDT 2013


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:info at knowhow-la.de] 
Sent: Friday, June 07, 2013 10:54 AM
To: jawendell at suddenlink.net
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:jawendell at suddenlink.net] 
Gesendet: Freitag, 7. Juni 2013 16:18
An: 'Helmut Seidel M.A.'; openlayers-users at lists.osgeo.org
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:openlayers-users-bounces at lists.osgeo.org>
openlayers-users-bounces at lists.osgeo.org [
<mailto:openlayers-users-bounces at lists.osgeo.org>
mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of Helmut Seidel
M.A.
Sent: Friday, June 07, 2013 10:05 AM
To:  <mailto:openlayers-users at lists.osgeo.org>
openlayers-users at lists.osgeo.org
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130607/331a4b3d/attachment.html>


More information about the Users mailing list