You are right, the url pattern is used on zoom 14 and above.
But even with Referrer and user-agent it does not work. As it seems that you already have it working please use MapEvaulator to verify and post the working map source here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
no, i´m just using firefox with livehttpheaders and webdevelopertoolbar.
but i found out we need a cookie instead of a referer...
so i built this code:
String getTileUrl( int zoom, int x, int y ) {
return "http://mapy.hiking.sk/tiles/topo/" + zoom + "/" + x + "/" + y + ".png";
}
void addHeaders( java.net.HttpURLConnection conn) {
// Optional: set HTTP Referer or Cookies
conn.addRequestProperty("Cookie","auth_new=42f6b1a1b2b7863c935d5bfb0eddeab6b2bcxxx");
conn.addRequestProperty("Referer","http://mapy.hiking.sk");
}
tileType = "png"; // required - image format "png" "jpg" or "gif"
// Default size of each tile is 256x256 pixel
tileSize = 256; // optional
minZoom = 13; // optional
maxZoom = 15; // optional
I am sorry but neither the old nor the new example URL you provided do work on my system.
I just opened the web-page http://mapy.hiking.sk/ and it looks like the map visible there is only an overlay to an Google Terrain map.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
you need a higher zoom level and a referer.
start here: http://mapy.hiking.sk/?zoom=14&lat=6144651.35955&lon=1904681.92274&layers=00BFTTTTTTFFFFF
You are right, the url pattern is used on zoom 14 and above.
But even with Referrer and user-agent it does not work. As it seems that you already have it working please use MapEvaulator to verify and post the working map source here.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
no, i´m just using firefox with livehttpheaders and webdevelopertoolbar.
but i found out we need a cookie instead of a referer...
so i built this code:
String getTileUrl( int zoom, int x, int y ) {
return "http://mapy.hiking.sk/tiles/topo/" + zoom + "/" + x + "/" + y + ".png";
}
void addHeaders( java.net.HttpURLConnection conn) {
// Optional: set HTTP Referer or Cookies
conn.addRequestProperty("Cookie","auth_new=42f6b1a1b2b7863c935d5bfb0eddeab6b2bcxxx");
conn.addRequestProperty("Referer","http://mapy.hiking.sk");
}
tileType = "png"; // required - image format "png" "jpg" or "gif"
// Default size of each tile is 256x256 pixel
tileSize = 256; // optional
minZoom = 13; // optional
maxZoom = 15; // optional
replace the cookie with yours.
then the is a hikingroute layer:
http://mapy.hiking.sk/tiles/topo/14/8970/5682.png
http://mapy.hiking.sk/tiles/tzt/14/000/008/970/000/010/701.png (matching image, different filename)