Ticket #2754 (closed bug: fixed)
WMS tiles not loading when map region crossing international date line(IDL)
|Reported by:||Senthil||Owned by:||euzuro|
I used Openlayers to load the map with GeoServer & GeoWebcache. Initially loaded layers to New Zealand region and then moved map to IDL(International date line) where longitude changes from +ve to -ve. Suddenly layers got missing even though base map showing part of New Zealand.
I did some further investigation to findout any issues with geoserver/geowebcache and finally with WMS Inspector plugin, i was able to see parameters passed by OpenLayers to backend, which confirmed the issue with OpenLayers.
For example: And When used in zoom level 6, i was able to 42 WMS tile requests to GeoWebcache (7 latitute divisions * 6 longitude divisions) which has longitude parameters between 1.69...E7 to 2.003..E7 range (SRID 900913) even though visible map has 1.821..E7 to -1.990..E7 longitudes.
And when moved map to load more from -ve of longitude and found less number of tile requests such as 28 requests (7 latitute divisions * 4 longitude divisions).. Once center line move to -ve longitude area, it was totally loading on -ve longitude region tiles..
Bug in the tile parameter calculations. I may try to find more details/patch, Hope that openlayers development team could able give more details on fixes sooner.