I have an application that uses Leaflet maps and I've overlayed some geoserver WMS layers (both point and Polygon). Now when I'm in at zoom 8 or more, etc the overlay looks accurate and exactly where it should be - but as I move out to zooms 7 and less I find my WMS layer seems to shift up more and more with each zoom level I go out.
The projection of the data is 4326 (WGS84). No errors, but as I said as you zoom out you notice the gradual shifting.
I am attaching an image for clarity. Can anyone help me solve this problem?
Please find the url below. This url returns an image that gets overlayed on the map. It is at zoom level 4. Its a very elaborate code & I could not put it here. Hence, I am giving the link that gets generated through the code and the returned image gets overlayed on the map. Every time a pan or zoom happens a new image as per the new view port gets requested and the old one gets replaced by the newly requested one.
We have been using our own proprietary layer imagery generation code in the past. Our data used to be stored in SQL Server as geography data type. We never faced this problem. In case of boundless geoserver we can only work with geometry data type (geography is not supported). Now when we are substituting our proprietary layers with boundless layers we are seeing this problem. Not sure if there is a setting or something that I need to do while setting up the layers in boundless geoserver that would take care of this issue.