I have local tiles on my OL 3 app using version 3.6.0.I've noticed when I upgrade to version 3.7.0 I need to rewrite my tileUrlFunction or else they don't shown anymore.
This is the code change I need to do :
source: new ol.source.XYZ({ tileUrlFunction: function (coordinate) { if (coordinate == null) { return ""; } var z = coordinate[0]; var x = coordinate[1]; //var y = coordinate[2]; //3.6.0 var y = -coordinate[2]; //3.7.0 return 'tiles/controlroom/' + z + '/' + x + '/' + y + '.png'; }, minZoom: 7, maxZoom: 16})Once I change to 3.7.0 there is big deviation the further my zoom out is
Example Max Zoom Out:
When I zoom In , the gap seems to get closer where it used to be with 3.6.0
Why does this happens ?
أكثر...
This is the code change I need to do :
source: new ol.source.XYZ({ tileUrlFunction: function (coordinate) { if (coordinate == null) { return ""; } var z = coordinate[0]; var x = coordinate[1]; //var y = coordinate[2]; //3.6.0 var y = -coordinate[2]; //3.7.0 return 'tiles/controlroom/' + z + '/' + x + '/' + y + '.png'; }, minZoom: 7, maxZoom: 16})Once I change to 3.7.0 there is big deviation the further my zoom out is
Example Max Zoom Out:

When I zoom In , the gap seems to get closer where it used to be with 3.6.0

Why does this happens ?
أكثر...