[OpenLayers-Users] WMS layer not on "right" world

Gilbert, Antoine AGilbert at korem.com
Wed Aug 22 12:48:55 PDT 2012


Hi list

I have a problem I already solved with some workaround found somewhere for OpenLayers 2.9, so it's long time ago and I don't remember very well

Anyway, my problem is, with a Google base map, sometime my WMS layer is overlaped in the wrong world

Example:


 *   at first I'm centred at 0,0 on zoom level 0 or 1, My WMS WORLD overlap correctly the Google WORLD
 *   If I double click zoom on australia, my WMS world is overlaped by open layers on the next google world to the left

This is strange because in the initSingleTile method, I see the left-right span something around from 3,000,000 to 27,000,000 (m) but the getURL of my WMS layer receive –37,000,000 to –13,000,000

Why I have this shifting problem?

Antoine Gilbert


More information about the Users mailing list