Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

GetUrlScript.txt 869 B

54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
54 år sedan
1234567891011121314151617181920
  1. var
  2. r: integer;
  3. BaseUrl: string;
  4. begin
  5. r := random(2);
  6. case r of
  7. 0: BaseUrl := GetURLBase;
  8. 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088', 'maps.melda.ru');
  9. end;
  10. if GetZ < 13 then
  11. ResultURL := BaseUrl+'2km.png'+'/z'+inttostr(GetZ-1)+'/'+inttostr(GetY)+'/'+inttostr(GetX)+'.png'
  12. else if getz <14 then
  13. ResultURL := BaseUrl+'1km'+'/z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'
  14. else if getz <15 then
  15. ResultURL := BaseUrl+'500m.png'+'/z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'
  16. else
  17. ResultURL := BaseUrl+'250m.png'+'/z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.png'
  18. end.