diff --git a/Genshtab/ggc/karta_ggc_500m.zmp/GetUrlScript.txt b/Genshtab/ggc/karta_ggc_500m.zmp/GetUrlScript.txt index d7035220c..2c6e4a240 100644 --- a/Genshtab/ggc/karta_ggc_500m.zmp/GetUrlScript.txt +++ b/Genshtab/ggc/karta_ggc_500m.zmp/GetUrlScript.txt @@ -1,3 +1,13 @@ +var + r: integer; + BaseUrl: string; begin - ResultURL:=GetURLBase+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'; -end. + r := random(2); + + case r of + 0: BaseUrl := GetURLBase; + 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088', 'maps.melda.ru'); + end; + + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'; +end. \ No newline at end of file diff --git a/Genshtab/ggc/karta_ggc_500m.zmp/params.txt b/Genshtab/ggc/karta_ggc_500m.zmp/params.txt index 9e2683a03..59e65c246 100644 --- a/Genshtab/ggc/karta_ggc_500m.zmp/params.txt +++ b/Genshtab/ggc/karta_ggc_500m.zmp/params.txt @@ -6,7 +6,7 @@ name_ru=ГосГисЦентр 500 м name=GosGisCentr 500 m name_uk=GosGisCentr 500 м NameInCache=ggc500m -DefURLBase=http://91.237.82.95:8088/pub/ggc/500m/ +DefURLBase=http://91.237.82.95:8088/pub/ggc/500m.png/ defaultContentType=image/png ParentSubMenu_ru=Генштаб\ГГЦ ParentSubMenu=Genshtab\GGC