From bd51cd5caed63944f32b84c7f2177e1162dd8025 Mon Sep 17 00:00:00 2001 From: sasbot <> Date: Sat, 6 Jun 2020 12:00:00 +0000 Subject: [PATCH] update zmp --- Osm/osm_mapnik.zmp/GetUrlScript.txt | 9 ++++++++- Osm/osm_mapnik.zmp/params.txt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Osm/osm_mapnik.zmp/GetUrlScript.txt b/Osm/osm_mapnik.zmp/GetUrlScript.txt index adc93d1d..06559a1b 100644 --- a/Osm/osm_mapnik.zmp/GetUrlScript.txt +++ b/Osm/osm_mapnik.zmp/GetUrlScript.txt @@ -1,3 +1,10 @@ begin - ResultURL:=GetURLBase+'/'+inttostr(GetZ-1)+'/'+inttostr(GetX)+'/'+inttostr(GetY)+'.png'; + ResultURL:=GetURLBase+'/'+inttostr(GetZ-1)+'/'+inttostr(GetX)+'/'+inttostr(GetY)+'.png'; + RequestHead:='User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0' + #13#10 + + 'Accept: image/png,image/*;q=0.8,*/*;q=0.5' + #13#10 + + 'Accept-Language: en-us,en;q=0.5' + #13#10 + + 'Accept-Encoding: gzip, deflate' + #13#10 + + 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' + #13#10 + + 'Connection: keep-alive' + #13#10 + + 'Referer: http://www.openstreetmap.org/' + #13#10; end. \ No newline at end of file diff --git a/Osm/osm_mapnik.zmp/params.txt b/Osm/osm_mapnik.zmp/params.txt index da56aa1f..e1bad260 100644 --- a/Osm/osm_mapnik.zmp/params.txt +++ b/Osm/osm_mapnik.zmp/params.txt @@ -6,7 +6,7 @@ name=MAPNIK (OpenStreetMap) name_en=MAPNIK (OpenStreetMap) name_uk=Mapnik (OpenStreetMap) NameInCache=osmmapMapnik -DefURLBase=http://a.tile.openstreetmap.org/ +DefURLBase=http://a.tile.openstreetmap.org ContentType=image/png Ext=.png projection=1