<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hola Ernesto, creo que te falta una barra '/' después de
<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/mapserv.exe?map=">"http://localhost/cgi-bin/mapserv.exe?map="</a>.<br>
En el curso de IDEs y Metadatos de Sinfogeo, el ejemplo lo escribíamos
así:<i>
<a class="moz-txt-link-freetext" href="http://localhost:9000/cgi-bin/mapserv.exe?map=/ms4w/apps/mapserv-demo/itasca-wms.map">http://localhost:9000/cgi-bin/mapserv.exe?map=/ms4w/apps/mapserv-demo/itasca-wms.map</a></i><br>
<br>
Un saludo,<br>
Rafael<br>
<br>
Ernesto Murcia escribió:
<blockquote cite="mid:4B41E3AB.7040108@uco.es" type="cite">Estoy
tratando de elaborar un sencillo visor con Openlayers. Como se puede
ver a continuación el código que he escrito es bien sencillo, pero a
pesar de eso no resulta. Adjunto una captura donde se puede ver el
resultado. ¿Alguien sabe dónde puede estar el error? Muchas gracias.
<br>
<br>
<html xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>>
<br>
<head>
<br>
<style type="text/css">
<br>
#map {
<br>
width: 512px;
<br>
height: 512px;
<br>
border: 1px solid black;
<br>
}
<br>
</style>
<br>
<script
src=<a class="moz-txt-link-rfc2396E" href="http://www.openlayers.org/api/OpenLayers.js">"http://www.openlayers.org/api/OpenLayers.js"</a>></script>
<br>
<script type="text/javascript">
<br>
var map, layer;
<br>
<br>
function init(){
<br>
map = new OpenLayers.Map( 'map',{
<br>
maxExtent: new
OpenLayers.Bounds(60614,3974752,661067,4303638),
<br>
maxResolution: 'auto',
<br>
units: "m",
<br>
projection: "EPSG:25830"}
<br>
);
<br>
layer = new OpenLayers.Layer.WMS( "OpenLayers
WMS",
<br>
<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/mapserv.exe?map=ms4w/apps/tfc/mapserv-demo/wms_prueba.map">"http://localhost/cgi-bin/mapserv.exe?map=ms4w/apps/tfc/mapserv-demo/wms_prueba.map"</a>,
{layers: 'limite_provincial'} );
<br>
map.addLayers([layer]);
<br>
<br>
map.zoomToMaxExtent();
<br>
}
<br>
</script>
<br>
</head>
<br>
<body onload="init()">
<br>
<br>
<b>Ejemplo de Servicio WMS</b>
<br>
<br>
<div>
<br>
El uso básico de MapServer para publicar cartografía
<br>
</div>
<br>
<br>
<div id="map"></div>
<br>
<br>
<div id="docs">
<br>
EJEMPLO
<br>
</div>
<br>
</body>
<br>
</html>
<br>
<br>
<br>
<br>
<hr size="4" width="90%"><br>
<center><img src="cid:part1.03050909.07080306@sinfogeo.com"></center>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Spanish mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spanish@lists.osgeo.org">Spanish@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/spanish">http://lists.osgeo.org/mailman/listinfo/spanish</a>
</pre>
</blockquote>
<br>
</body>
</html>