hola a todos estado trabajondo con openlayers en el ultimo mes pero no logro ver mis archivos este el codigo de la pagina :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="OpenLayers-2.8/lib/OpenLayers.js"></script> <script type="text/javascript"> var map; function init() { map = new OpenLayers.Map('map', { controls:[ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Attribution(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.KeyboardDefaults()], sphericalMercator: true, maxExtent: new OpenLayers.Bounds(865279.849223,864491.039124,1060079.6192,1060833.118), maxResolution: 'auto', numZoomLevels: 5, units: 'm'} ); var redpeatonal = new OpenLayers.Layer.GML ("red peatonal", "GML/peatonalred.gml", { style: {strokeWidth:1, strokeColor:"#CCCCCC", fillColor: "red", fillOpacity: 0.5}, projection: new OpenLayers.Projection("EPSG:21891"), format: OpenLayers.Format.GML } ); map.addLayer(redpeatonal); //redpeatonal.isBaseLayer=true; var Lindero = new OpenLayers.Layer.GML ("Lindero", "GML/LINDERO.gml", { style: {strokeWidth:1, strokeColor:"#CCCCCC", fillColor: "yellow", fillOpacity: 0.5}, projection: new OpenLayers.Projection("EPSG:21891"), format: OpenLayers.Format.GML } ); map.addLayer(Lindero); var edificaciones = new OpenLayers.Layer.GML ("edificaciones", "GML/edificaciones.gml", { style: {strokeWidth:1, strokeColor:"#CCCCCC", fillColor: "yellow", fillOpacity: 0.5}, projection: new OpenLayers.Projection("EPSG:21891"), format: OpenLayers.Format.GML } ); map.addLayer(edificaciones); //add both layers here map.addLayers([redpeatonal, Lindero, edificaciones]); map.zoomToMaxExtent(); } </script> </head> <body onload="init()"> <div id="map" style="width: 600px; height: 300px"></div> </body> </html> la verdad no se que estoy haciendo mal por favor que me hace falta o cual es el error Ricardo Rodríguez Ing. Topográfico Univalle
_______________________________________________ Spanish mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/spanish
