[Spanish] Open layers

Antonio Santiago asantiagop at gmail.com
Tue Feb 21 11:06:46 EST 2012


Como dice Jorge,
las capas de Google por defecto son BaseLayer y usan la EPSG:900913, asi
que si pones WMS encima tiene que tener esa proyeccion,

Saludos.

2012/2/21 Jorge Arévalo <jorge.arevalo at deimos-space.com>

> 2012/2/21 martinmaximilianoflores <martinmaximilianoflores at yahoo.com.ar>:
> > 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
> jorge.arevalo at deimos-space.com
> 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
>



-- 
|----------------------------------------------------------------
| Web Page: http://www.acuriousanimal.com
| Blog: http://www.acuriousanimal.com/blog
| Twitter: @acanimal <http://twitter.com/#%21/acanimal>
|----------------------------------------------------------------
| A crazy mix site: http://www.astracanada.net
| Old Virtual Globe project:http://theballoonproject.blogspot.com
|----------------------------------------------------------------
|   _      __
|  /_)    (_ ` _   _  _)_ o  _   _   _
| / /  o .__) (_( ) ) (_  ( (_( (_( (_)
|                                 _)
|----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/spanish/attachments/20120221/10322a38/attachment-0001.html


More information about the Spanish mailing list