Hi,
I use a proxy-script to cache tiles on my server. The script is from this url
http://wiki.openstreetmap.org/wiki/ProxySimplePHP

Everything worked fine in Openlayers 6.x - but in 7.x I had two problems:
first, there were no tiles saved at all which I resolved with this patch:
http://drupal.org/node/1447482

Now, tiles are caches locally. But, the tiles are gotten with the wrong z-value.
E.G. my tiles have to be z = 14, x = 8563 and y = 5712 (14_8563_5712.png)

X and Y are fine but the z is alway -1 (-1_8563_5712.png)
So it seems, that the zoomlevel isn't submitted correctly by the xyz-layer-handler.

I don't know, where this is submitted to the proxy-script. Can anyone help?

Kind regards and a nice day.

Comments

vistree’s picture

Status: Active » Needs review

Hi, I had a deeper search in OL issues and found an issue, where OL versions were tested.
So, I tried the older OL librarie 2.10 - and with this version everything is fine!
The only thing is, that I get some warning now:

Not suggested compatible version. Though you are very welcome to use whatever version of the OpenLayers library you want, it is suggested that you use version 2.11. You are currently not using that version or we are unable to determine which version you are using. Update your library settings at OpenLayers settings.
Could not find a valid library with a Javascript client-side check; Value found: OpenLayers 2.10 -- $Revision: 10721 $. Please visit the OpenLayers settings page for more details.
zzolo’s picture

Category: bug » support
Status: Needs review » Active

Hey @vistree. Please only use "needs review" when you have submitted a patch.

Can you provide your complete URL and example tile?

I just updated the XYZ layer to work via the UI. Were you providing this layer with the UI?

vistree’s picture

Hi zzolo,
sorry for the wrong status ...
Yes, I created the xyz-layer with the UI of openlayers (-> structure -> openlayers -> layers -> ad).

But the tiles-server is the script I linked in my previous post.

My OpenLayers-Version is 7.x-2.0-beta1+12-dev (2012-Feb-10)

Did you change the xyz-UI in a later dev-Version?

Kind regards and a nice evening!

zzolo’s picture

Yep. Please try the newest dev version.

vistree’s picture

Hi zzolo,
it is still the same problem: even with the newest dev-Version I can't get OL-2.11 to work. Still the tiles are saved as -1_x_y.png

With OL-2.10 it works.

proweb.ua’s picture

Issue tags: +tiles, +zyx

Layer Type - XYZ

7.x-2.0-beta1+84-dev + OL-2.11
and
7.x-2.0-beta1+84-dev + OL-2.12
If I set the Zoom Level Range, same problem

if I do not choose anything in Zoom Level Range
map does not display correctly http://pix.am/n8ze/

7.x-2.0-beta1+84-dev + OL-2.10
tiles are shown, but not correctly http://pix.am/n8ze/

my map has 5 zoom level

pol’s picture

Status: Active » Needs work

Can you try and report with the latest 7.x-2.x version ?

Thanks !

avpaderno’s picture

Issue summary: View changes
Issue tags: -tiles, -zyx