we have tried to overlay a raster layer on Google map and have some difficulties to align the raster images onto the base map. When it is on the overview (Zoom level 1), it looks like this:
On a lower resolution, you could still spot the mis-alignment in high altitude area such as North Europe and Canada:
BUT when we zoom into the highest level, the problem has gone:
We have tried these approaches to address this problem:
- Change the projection of the raster layer on Geoserver from WGS 84 to Web Mercator, does not even shown the image on Google Map.
- We try to change the bbox option in the request but it returns strange results that we cannot even zoom in.
Do you have any idea why this happen? What can we do to address this problem?
Thank you very much!
Best Answer
try setting spericalmercator:true in the openlayers map.