diff --git a/Osm/osm_mapnik.zmp/GetUrlScript.txt b/Osm/osm_mapnik.zmp/GetUrlScript.txt index adc93d1d8..06559a1bd 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 da56aa1fd..e1bad2600 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