[OpenLayers-Users] OpenLayers Examaple does not work
Mario Nuñez Jimenez
mario.nunez at atosresearch.eu
Thu Sep 17 11:41:45 EDT 2009
Hello list,
I am trying to get loaded 2 layers, one wms and another wfs but always fails and I don’t know why.
This is the example code “WFS: United States (GeoServer)” taken from http://openlayers.org/dev/examples/ where only I changed the path to .js, .cgi or .css files.
It does not works, the wms layer is failing but also the wfs layer… any idea of what I am doing wrongly?
Thank you in advance.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="OpenLayers-2.8/theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="OpenLayers-2.8/examples/style.css" type="text/css" />
<title>WFS: United States (GeoServer)</title>
<script src="OpenLayers-2.8/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer;
function init(){
OpenLayers.ProxyHost="http://gea.atosorigin.es/cgi-bin/proxy.cgi?url=";
map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseD$
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms-c/Basic.py",
{layers: 'basic'} );
map.addLayer(layer);
layer = new OpenLayers.Layer.WFS( "States WFS",
"http://sigma.openplans.org/geoserver/ows",
{ typename: 'topp:states' } );
map.addLayer(layer);
map.zoomToExtent(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078));
}
</script>
</head>
<body onload="init()">
<h1 id="title">WFS United States (GeoServer) Example</h1>
<div id="tags">
</div>
<p id="shortdesc">
Shows the use of the WFS United States (GeoServer)
</p>
<div id="map" class="smallmap"></div>
<div id="docs"></div>
<DIV> </DIV>------------------------------------------------------------------<br>This e-mail and the documents attached are confidential and intended <br>solely for the addressee; it may also be privileged. If you receive <br>this e-mail in error, please notify the sender immediately and destroy it. <br>As its integrity cannot be secured on the Internet, the Atos Origin <br>group liability cannot be triggered for the message content. Although <br>the sender endeavours to maintain a computer virus-free network, <br>the sender does not warrant that this transmission is virus-free and <br>will not be liable for any damages resulting from any virus transmitted. <br><br>Este mensaje y los ficheros adjuntos pueden contener informacion confidencial <br>destinada solamente a la(s) persona(s) mencionadas anteriormente <br>pueden estar protegidos por secreto profesional. <br>Si usted recibe este correo electronico por error, gracias por informar <br>inmediatamente al remitente y destruir el mensaje. <br>Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin <br>no se hace responsable por su contenido. Su contenido no constituye ningun <br>compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. <br>Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor <br>no puede garantizar nada al respecto y no sera responsable de cualesquiera <br>danos que puedan resultar de una transmision de virus. <br>------------------------------------------------------------------</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090917/5a80cfa8/attachment.html
More information about the Users
mailing list