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.

<html xmlns="http://www.w3.org/1999/xhtml";>
 <head>
   <style type="text/css">
       #map {
           width: 512px;
           height: 512px;
           border: 1px solid black;
       }
   </style>
   <script src="http://www.openlayers.org/api/OpenLayers.js";></script>
   <script type="text/javascript">
var map, layer;

       function init(){
           map = new OpenLayers.Map( 'map',{
maxExtent: new OpenLayers.Bounds(60614,3974752,661067,4303638),
                    maxResolution: 'auto',
                   units: "m",
                   projection: "EPSG:25830"}
                );
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://localhost/cgi-bin/mapserv.exe?map=ms4w/apps/tfc/mapserv-demo/wms_prueba.map";, {layers: 'limite_provincial'} ); map.addLayers([layer]);

           map.zoomToMaxExtent();
       }
   </script>
  </head>
  <body onload="init()">

        <b>Ejemplo de Servicio WMS</b>
<div>
         El uso básico de MapServer para publicar cartografía
    </div>
<div id="map"></div> <div id="docs">
        EJEMPLO
    </div>
  </body>
 </html>


<<inline: captura.JPG>>

_______________________________________________
Spanish mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/spanish

Responder a