We have a map tile layer on OpenLayers where original projection is EPSG:3067
and it is reprojected to EPSG:3395
projection. The map is coming there quite ok, it has not the tiles as straight squares, but still ok for us.
The problem is that in the northern part of the map the tiles that are on map become from two layers. There is a horizontal line with many curves that separates the tiles in north with another zoom level and south with another.
Preview on GeoServer shows the tiles all at same zoom level, openlayers code based map does not. We had an issue about same kind when we had custom zoom levels on map, but removing them the divider appeared in north. Previously it was much souther.
What could cause the layer to take tiles from different zoom level per tile basis, having two different levels in use on the whole map, division between north and south parts.
The issue would be kinda ok, if there weren't place names on map. Now they're cut and missing partly.
Layer is initialized with a ol.source.TileWMS
taking in layer name, format (image/png), transparency and a version.
The layer is a ol.layer.Tile
with that tileWMS as source, title and visibility.
All that seems so basic, there is at least no hacks on there. What could cause the issue?
Edit1:
It appears the GeoServer returns tiles zoomed differently. I took the tile request urls and in the tiles from these I found tiles looking like they were zoomed to different levels.
It requests tiles 256x256 from different bounding boxes in those queries, somehow they happen have different zoom levels.
May the conversion on fly somehow mix the thing?
Edit2:
Newest finding is that the original data is a layer group, so that may cause the switch of level, if some requests give data from another group from some reason.