From 23514f1ad2991a7e879c06c4c7778bccd928daa8 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 | 16 +++++++--------- Osm/osm_mapnik.zmp/params.txt | 7 +++---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Osm/osm_mapnik.zmp/GetUrlScript.txt b/Osm/osm_mapnik.zmp/GetUrlScript.txt index d7ba76fc2..c219a6585 100644 --- a/Osm/osm_mapnik.zmp/GetUrlScript.txt +++ b/Osm/osm_mapnik.zmp/GetUrlScript.txt @@ -1,12 +1,10 @@ begin - GetURLBase[8]:=chr(ord('a')+random(3)); - ResultURL:=GetURLBase+'/'+inttostr(GetZ-1)+'/'+inttostr(GetX)+'/'+inttostr(GetY)+'.png'; + ResultURL := + 'https://' + Chr(Ord('a') + Random(3)) + '.tile.openstreetmap.org/' + + 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 + 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0' + #13#10 + + 'Referer: https://www.openstreetmap.org/' + #13#10 + + 'Accept: image/webp,*/*'; +end. diff --git a/Osm/osm_mapnik.zmp/params.txt b/Osm/osm_mapnik.zmp/params.txt index ddfe10d58..d8953b81d 100644 --- a/Osm/osm_mapnik.zmp/params.txt +++ b/Osm/osm_mapnik.zmp/params.txt @@ -2,15 +2,14 @@ [PARAMS] pnum=116 GUID={D643C5A1-4331-4387-9BE2-DDDF185C117E} -name=MAPNIK (OpenStreetMap) +Name=MAPNIK (OpenStreetMap) +ParentSubMenu=OSM NameInCache=osmmapMapnik -DefURLBase=http://a.tile.openstreetmap.org +DefURLBase= ContentType=image/png Ext=.png projection=1 sradiusa=6378137 sradiusb=6356752 DefHotKey=16463 -PARENTSUBMENU=OSM -IteratorSubRectSize=8,8 License=(c) OpenStreetMap contributors, CC-BY-SA