[mapserver-users] Base Layers (VE y Yahoo) in EPSG:4326

Steven M. Ottens steven.ottens at geodan.nl
Wed Dec 1 15:34:27 EST 2010


If you have full control of the postgis layers, you can serve them reprojected into EPSG:900913 (or EPSG:3785) and put it on top of VE/Yahoo.

You cannot (as chris points out) change the projection of VE/Yahoo (or google for that matter). They serve their baselayers in spherical mercator, and you've to adept your data to their standards if you want to use their data. 

Steven


On Dec 1, 2010, at 5:29 PM, <christopher.schmidt at nokia.com> wrote:

> This is an OpenLayers question, and should be setn to the OpenLayers mailing list.
> 
> Additionally, the thing you want to do is not possible.
> 
> -- Chris
> 
> On Dec 1, 2010, at 8:16 AM, ext florencia.bujan wrote:
> 
>> 
>> Hi,
>> 
>> I am using "Blue Marble" and "OpenLayers WMS" base layers with postgis
>> layers and the projection is ok:
>> 
>> var wms = new OpenLayers.Layer.WMS( "Blue Marble",
>> 		        "http://maps.opengeo.org/geowebcache/service/wms",
>> 		        {layers: 'bluemarble'} );
>> map.addLayers([wms]);
>> wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
>>                         "http://vmap0.tiles.osgeo.org/wms/vmap0",
>>                         {layers: 'basic'} );
>> 
>> 
>> But when I add two other base layers (Virtual Earth and Yahoo Layer), the
>> projection is not right:
>> 
>> var ve = new OpenLayers.Layer.VirtualEarth("VE");
>> var yahoo = new OpenLayers.Layer.Yahoo("Yahoo", {"sphericalMercator":
>> true});
>> 
>> I want to change the base layers projection to EPSG:4326 for the correct
>> view.
>> 
>> Thanks!
>> Regards.
>> Florencia
>> 
>> 
>> -- 
>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Base-Layers-VE-y-Yahoo-in-EPSG-4326-tp5791822p5791822.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Steven M. Ottens
Senior Ux Designer
-------------------------------------
Geodan S&R
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
Tel: +31 (0)20 - 5711 315
Fax: +31 (0)20 - 5711 333
-------------------------------------
E-mail: steven.ottens at geodan.nl
Website: www.geodan.nl
KvK-nummer: 33 247475
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------




More information about the mapserver-users mailing list