2012/2/21 martinmaximilianoflores <[email protected]>: > Hola es mi primer post en este foro, tengo un problema con Open Layers, es > script es el siguiente: > > function init() > { > > var map = new OpenLayers.Map( 'map',{maxExtent: new > OpenLayers.Bounds(5596608.075442,6161290.075000,5623305.424558,6182013.925000),maxResolution: > 'auto',units: "m",projection: "EPSG:22195"}); > > var layer = new > OpenLayers.Layer.WMS("wmstest","http://sshhost.dyndns-server.com/cgi-bin/mapserv?map=/var/www/html/webtools/afis.map", > {layers:"afis4ok"}); > > map.addLayer(layer); > > map.addControl(new OpenLayers.Control.LayerSwitcher({})); > > map.zoomToMaxExtent(); > > } > > El script funciona pero..... > no puedo agregarle otra capa base usando isBaseLayer como las de google, a > la capa de google la pongo como baselayer: true y a esta otra(la capa > llamada layer) como false y no anda, creo que tiene que ver con el maxextent > que esta definido para el mapa de la capa layer y otra cosa.. cuando dibuja > el mapa me dibuja unas lineas que son muy molestas, puede ser algo de mi > mapserver? > Me costo mucho poder configurarlo como servidor wms. > > pueden miralo aca: http://sshhost.dyndns-server.com/webtools/op.html > > SAludos. > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Open-layers-tp4491803p4491803.html > Sent from the OSGeo Spanish Local Chapter mailing list archive at Nabble.com. > _______________________________________________ > Spanish mailing list > http://lists.osgeo.org/mailman/listinfo/spanish > http://es.osgeo.org > http://twitter.com/osgeoes
Hola, Probablemente tengas que poner el parámetro transparent a true. Aquí lo recomiendan http://docs.openlayers.org/library/introduction.html#adding-an-overlay-wms También lo mencionan en http://dev.openlayers.org/docs/files/OpenLayers/Layer/WMS-js.html Por otro lado, asegurate de que las capas que vas a superponer están en el mismo sistema de referencia. Tu WMS debería servir las capas en epsg:900913 (creo que ahora tiene otro identificador oficial, el 3785 o el 3758. No me acuerdo) si las vas a superponer sobre una capa base de Google Maps. Saludos, -- Jorge Arévalo Internet & Mobility Division, DEIMOS [email protected] http://mobility.grupodeimos.com/ http://www.libregis.org http://geohash.org/ezjqgrgzz0g _______________________________________________ Spanish mailing list http://lists.osgeo.org/mailman/listinfo/spanish http://es.osgeo.org http://twitter.com/osgeoes
