Browse Source

update zmp

master
sasgis 54 years ago
parent
commit
7cbe4ebfd7
6 changed files with 54 additions and 0 deletions
  1. BIN
      navionics.com.layer.zmp/18.bmp
  2. BIN
      navionics.com.layer.zmp/24.bmp
  3. BIN
      navionics.com.layer.zmp/EmptyTiles/empty.png
  4. +34
    -0
      navionics.com.layer.zmp/GetUrlScript.txt
  5. +20
    -0
      navionics.com.layer.zmp/params.txt
  6. BIN
      navionics.com.zmp/EmptyTiles/empty.png

BIN
navionics.com.layer.zmp/18.bmp View File

Before After

BIN
navionics.com.layer.zmp/24.bmp View File

Before After

BIN
navionics.com.layer.zmp/EmptyTiles/empty.png View File

Before After
Width: 256  |  Height: 256  |  Size: 872 B

+ 34
- 0
navionics.com.layer.zmp/GetUrlScript.txt View File

@@ -0,0 +1,34 @@
var
I: Integer;
VEncoded: string;
VBox: string;
begin
VBox := RoundEx(GetLMetr ,10) + ',' + RoundEx(GetBMetr, 10) + ',' + RoundEx(GetRMetr, 10) + ',' + RoundEx(GetTMetr, 10);
// prepare params
VEncoded :=
'LAYERS=osm_ram' + '&' +
'TRANSPARENT=TRUE' + '&' +
'SERVICE=WMS' + '&' +
'VERSION=1.1.1' + '&' +
'REQUEST=GetMap' + '&' +
'STYLES=' + '&' +
'FORMAT=image%2Fpng' + '&' +
'SRS=EPSG%3A3395' + '&' +
'WIDTH=256' + '&' +
'HEIGHT=256' + '&' +
'BBOX=' + VBox;
// crypt
for I := 1 to Length(VEncoded) do
VEncoded[I] := Chr(Ord(VEncoded[I]) xor 42);
// Base64 encode
VEncoded := Base64Encode(VEncoded);
//replase "+" with "%2b" charset
VEncoded := RegExprReplaceMatchSubStr(VEncoded, '\+', '\%2b');
ResultURL:=GetURLBase + VEncoded + '&NAVKEY=NAVIONICS11WEBAPI111&TEST=' + VBox + '&ZOOM=' + IntToStr(GetZ) + '&v=1&SRC=http://www.navionics.com';
RequestHead := 'Referer: http://www.navionics.com/sites/navionics.plurimedia.it/files/coverage/webapp.html?2985400';
end.

+ 20
- 0
navionics.com.layer.zmp/params.txt View File

@@ -0,0 +1,20 @@
[PARAMS]
GUID={1F5C7247-9999-4DBB-B4B1-5E969C9EB942}
name=Navionics (http://www.navionics.com/en/)
name_en=Navionics (http://www.navionics.com/en/)
name_uk=Navionics (http://www.navionics.com/en/)
ParentSubMenu=Ìîðñêèå êàðòû
ParentSubMenu_en=Marine maps
ParentSubMenu_uk=Marine maps
asLayer=1
DefURLBase=http://webviewer-api.navionics.com/getmap?PARAMS=
NameInCache=navionics_com_layer
separator=0
Ext=.png
UseDwn=1
Sleep=0
DefHotKey=0
ContentType=image/png
projection=2
sradiusa=6378388
sradiusb=6356912

BIN
navionics.com.zmp/EmptyTiles/empty.png View File

Before After
Width: 256  |  Height: 256  |  Size: 872 B

Loading…
Cancel
Save