<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes Brad , that is what I need, just to know all the layers available
in that site ( that is just my site not any site )<br>
Sure I will use getCapabilities request to catch them using a external
php call.<br>
<br>
Thanks<br>
<br>
Antonio<br>
<br>
<br>
bradleyspencer wrote:
<blockquote cite="midJCEJKDEMIHKMMHKNOHNNAEMHDGAA.brad@cubewerx.com.au"
type="cite">
<pre wrap="">If the site were an OGC compliant site he could use the getCapabilities
request to generate a XML file and parse it to determine all the layers at a
particular OGC Server? Binding that with the particular request would not be
too hard inside JS.
I assume he would like this feature as a OL service that say produced a
select box of layers from that site. Many OGC clients do this.
Just a thought :)
Cheers,
Brad Spencer
General Manager
CubeWerx Australia Pty Ltd
ABN: 37 115 163 285
Mob: +61 (0)404 841 131
Tel/Fax: +61 (0)2 9481 7024
<a class="moz-txt-link-freetext" href="mailto:brad@cubewerx.com.au">mailto:brad@cubewerx.com.au</a>
<a class="moz-txt-link-freetext" href="http://www.cubewerx.com.au">http://www.cubewerx.com.au</a>
-----Original Message-----
From: Christopher Schmidt [<a class="moz-txt-link-freetext" href="mailto:crschmidt@metacarta.com">mailto:crschmidt@metacarta.com</a>]
Sent: Friday, 16 March 2007 8:20 AM
To: Antonio
Cc: <a class="moz-txt-link-abbreviated" href="mailto:dev@openlayers.org">dev@openlayers.org</a>
Subject: Re: [OpenLayers-Dev] List of Layers
On Thu, Mar 15, 2007 at 09:52:57PM +0100, Antonio wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi guys,
I didn't find any method to get info about the layers available on my
mapfile, something that say me how many and how they are named.
</pre>
</blockquote>
<pre wrap=""><!---->
OpenLayers doesn't talk to the map server you are using to learn about
the layers. You need to specify the layers in the javascript setup for
your OpenLayers Map.
</pre>
<blockquote type="cite">
<pre wrap="">I can just load a layer from a WMS server specifying a layer name.
Have I to use some php/java scripts to do that, or I am not looking in
the right place?
</pre>
</blockquote>
<pre wrap=""><!---->
The functionality that you are looking for does not exist in OpenLayers.
Where possible, OpenLayers has taken a 'you can't talk to the server'
approach due to the Same Origin Policy. [1]
[1] <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Same_origin_policy">http://en.wikipedia.org/wiki/Same_origin_policy</a>
Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@openlayers.org">Dev@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/dev">http://openlayers.org/mailman/listinfo/dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
/-------------------------------------------------------\
PLEASE WARNING: E-mail is CHANGED
<a class="moz-txt-link-abbreviated" href="mailto:volpicelli@oato.inaf.it">volpicelli@oato.inaf.it</a>
/-------------------------------------------------------\
</pre>
</body>
</html>