[OSM-dev] MapServer, OpenStreetMap, OpenLayers + Reprojection from Latlong to Mercator: a real nightmare
Jon Burgess
jburgess777 at googlemail.com
Fri Mar 19 22:12:39 GMT 2010
On Fri, 2010-03-19 at 04:51 -0800, Mulone wrote:
> UPDATE: we managed to reproject in google mercator the map on OpenLayers with
> this code:
>
> http://www.copypastecode.com/24724
>
> It looks ok but when I added a transparent Google Maps layer, our geometries
> are shifted south by about 30km.
> Any idea of what might cause this issue?
Instead of:
maxExtent: new OpenLayers.Bounds(-20000000, -20000000, 20000000, 20000000)
You might want to try:
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508),
Jon
More information about the dev
mailing list