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
Comment #1
vistree commentedHi, 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:
Comment #2
zzolo commentedHey @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?
Comment #3
vistree commentedHi 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!
Comment #4
zzolo commentedYep. Please try the newest dev version.
Comment #5
vistree commentedHi 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.
Comment #6
proweb.ua commentedLayer 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
Comment #7
polCan you try and report with the latest 7.x-2.x version ?
Thanks !
Comment #8
avpaderno