[OpenLayers-Users] Small shift between google and wms

Simo D simone.dalmasso at gmail.com
Fri May 22 11:19:49 EDT 2009


Yes, for sure.  http://130.192.92.159/mapfish/prove/sdi_layout.html Ithaca
sdi 
Thanks

Christopher Schmidt-2 wrote:
> 
> On Fri, May 22, 2009 at 08:07:03AM -0700, Simo D wrote:
>> 
>> I'm using a trunk version of the 2.8 checked out about three days ago.
>> Shall I checkout a newer version?
> 
> No, i think any potential fix would be included in that. Do you have a
> URL that people can see this at?
> 
>> 
>> Christopher Schmidt-2 wrote:
>> > 
>> > On Fri, May 22, 2009 at 07:57:02AM -0700, Simo D wrote:
>> >> 
>> >> Hi, I created an application which retireves a WMS layer from
>> geoserver
>> >> (chached in epsg:900913), the layers from google and a layer from
>> virtual
>> >> earth plus some georss(GML+GeoRSS format). The issue is that when I
>> >> switch
>> >> from wms to google, there is a small shift of the map, so the georss
>> are
>> >> displayed in a wrong place. This shift disappears when zooming and is
>> not
>> >> present with virtual earth.
>> > 
>> > Are you using OL 2.8? A fix was checked into RC2 to fix this, I
>> believe. 
>> > 
>> >> All the layers have the sphericalMercator set to true. Here follows a
>> >> piece
>> >> of my code:
>> >> var options = {
>> >> 		projection: new OpenLayers.Projection("EPSG:900913"),
>> >> 		displayProjection: new OpenLayers.Projection("EPSG:900913"),
>> >> 		units: "m",
>> >> 		maxResolution: 156543.0339/4,
>> >> 		maxExtent: new OpenLayers.Bounds(-20037508.34,
>> >> -20037508.34,20037508.34,
>> >> 20037508.34),
>> >> 		restrictedExtent:  new OpenLayers.Bounds(-20037508.34,
>> >> -20037508.34,20037508.34, 20037508.34),
>> >> 		numZoomLevels: 10,
>> >> 		zoom: 1, 
>> >> 		controls: []
>> >> 		};
>> >> var world = new
>> >>
>> OpenLayers.Layer.WMS("WFP-SDI",geoweb,{layers:'ithaca_world',"sphericalMercator":
>> >> true,format: 'image/png'});
>> >> 	var gmap = new OpenLayers.Layer.Google("Google
>> >> Streets",{'sphericalMercator': true,minZoomLevel: 2});
>> >> 	var gphy = new OpenLayers.Layer.Google("Google Physical",{type:
>> >> G_PHYSICAL_MAP,"sphericalMercator": true,minZoomLevel: 2});
>> >> 	var gsat = new OpenLayers.Layer.Google("Google Satellite",{type:
>> >> G_SATELLITE_MAP, 'sphericalMercator': true,minZoomLevel: 2});
>> >> 	var vaer = new OpenLayers.Layer.VirtualEarth( "VE",{ minZoomLevel: 2,
>> >> maxZoomLevel: 12, 'type': VEMapStyle.Aerial,'sphericalMercator':
>> true});
>> >> 
>> >> 
>> >> Have you got any advice?
>> >> Thanks a lot.
>> >> 
>> >> Simone
>> >> -- 
>> >> View this message in context:
>> >>
>> http://n2.nabble.com/Small-shift-between-google-and-wms-tp2957923p2957923.html
>> >> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> >> 
>> >> _______________________________________________
>> >> Users mailing list
>> >> Users at openlayers.org
>> >> http://openlayers.org/mailman/listinfo/users
>> > 
>> > -- 
>> > Christopher Schmidt
>> > MetaCarta
>> > _______________________________________________
>> > Users mailing list
>> > Users at openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/Small-shift-between-google-and-wms-tp2957923p2957979.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
> 
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Small-shift-between-google-and-wms-tp2957923p2958054.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list