From 7fc193688da1fbf2ae4784a3bf962a38120d5419 Mon Sep 17 00:00:00 2001 From: sasgis <> Date: Sat, 12 Dec 1970 12:00:00 +0000 Subject: [PATCH] update zmp --- Osm/osm_mapnik.zmp/GetUrlScript.txt | 8 ++++++++ Osm/osm_mapnik.zmp/params.txt | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Osm/osm_mapnik.zmp/GetUrlScript.txt b/Osm/osm_mapnik.zmp/GetUrlScript.txt index 163897d4f..d7ba76fc2 100644 --- a/Osm/osm_mapnik.zmp/GetUrlScript.txt +++ b/Osm/osm_mapnik.zmp/GetUrlScript.txt @@ -1,4 +1,12 @@ begin GetURLBase[8]:=chr(ord('a')+random(3)); ResultURL:=GetURLBase+'/'+inttostr(GetZ-1)+'/'+inttostr(GetX)+'/'+inttostr(GetY)+'.png'; + + RequestHead := + 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0' + #13#10 + + 'Referer: http://www.openstreetmap.org/' + #13#10 + + 'Cache-Control: max-age=0' + #13#10 + + 'DNT: 1' + #13#10 + + 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3' + #13#10 + + 'Accept-Encoding: gzip, deflate'; end. \ No newline at end of file diff --git a/Osm/osm_mapnik.zmp/params.txt b/Osm/osm_mapnik.zmp/params.txt index d6b476687..ebd54fb20 100644 --- a/Osm/osm_mapnik.zmp/params.txt +++ b/Osm/osm_mapnik.zmp/params.txt @@ -18,5 +18,4 @@ Sleep=0 DefHotKey=16463 PARENTSUBMENU=OSM IteratorSubRectSize=8,8 -RequestHead=Referer: http://www.openstreetmap.org/ License=(c) OpenStreetMap contributors, CC-BY-SA