Browse Source

update zmp

master
sasbot 4 years ago
parent
commit
d60b6b1a4c
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      Yandex/YaTraf.zmp/GetUrlScript.txt
  2. +1
    -1
      Yandex/YaTraf.zmp/params.txt

+ 2
- 2
Yandex/YaTraf.zmp/GetUrlScript.txt View File

@@ -73,9 +73,9 @@ var
begin begin
ts := 0; ts := 0;
if IsNeedUpdateTimeStamp(ADelta) then begin if IsNeedUpdateTimeStamp(ADelta) then begin
stat_js := DownloadUrl('http://jgo.maps.yandex.net/trf/stat.js');
stat_js := DownloadUrl('https://api-maps.yandex.ru/services/coverage/v2/layers_stamps?l=trf');
if stat_js <> '' then begin if stat_js <> '' then begin
ts_val := RegExprGetMatchSubStr(stat_js, 'timestamp:"(\d+)"', 1);
ts_val := RegExprGetMatchSubStr(stat_js, '"version":"(\d+)"', 1);
if ts_val <> '' then begin if ts_val <> '' then begin
ts := StrToInt(ts_val); ts := StrToInt(ts_val);
SaveIntValue(ts_key, ts); SaveIntValue(ts_key, ts);


+ 1
- 1
Yandex/YaTraf.zmp/params.txt View File

@@ -10,7 +10,7 @@ ParentSubMenu_ru=Яндекс
ParentSubMenu=Yandex ParentSubMenu=Yandex
ParentSubMenu_uk=Яндекс ParentSubMenu_uk=Яндекс
NameInCache=yatraf NameInCache=yatraf
DefURLBase=http://jgo.maps.yandex.net/tiles?l=trf%2Ctrfe&x=
DefURLBase=https://core-jams-rdr.maps.yandex.net/1.1/tiles?trf&l=trf&x=
ContentType=image/png ContentType=image/png
Ext=.png Ext=.png
projection=2 projection=2


Loading…
Cancel
Save