Menu

#158 TuristikaMapSK not working

SVN_version
open
r_x
Map source (6)
5
2012-09-18
2011-03-28
Anonymous
No

Discussion

  • r_x

    r_x - 2011-03-28

    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.

     
  • r_x

    r_x - 2011-03-29

    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.

     
  • Anonymous

    Anonymous - 2011-03-29

    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)

     

Log in to post a comment.

MongoDB Logo MongoDB