ZMP for Costa Rica map

English- or other language speakers welcome here
Please do not translate your native language to "broken Russian" via crappy machine translation services - please post it as it is, in your native language.

Модератор: Tolik

Ответить
flashkiwi
Новичок
Сообщения: 5
Зарегистрирован: 09 окт 2017, 12:33
Поблагодарили: 4 раза

ZMP for Costa Rica map

Сообщение flashkiwi »

Hi

I want to create a ZMP for a Costa Rica maps found at

https://tiles1.arcgis.com/tiles/4u1m1BB ... er?f=jsapi

It needs a cache key added to each request. For example a tile request looks like:

https://tiles4.arcgis.com/tiles/4u1m1BB ... 4e1a1dcb62

How do I manage this in SAS? Will I have to do it manually and add a new key when the current one expires?

Thanks for your assistance!

FlashKiwi.
Аватара пользователя
garl
Гуру
Сообщения: 1625
Зарегистрирован: 16 июл 2008, 14:40
Откуда: Краснодар, Кубанская столица.
Благодарил (а): 97 раз
Поблагодарили: 272 раза

Re: ZMP for Costa Rica map

Сообщение garl »

try this
copy file into the map folder and restart sas palnet
zoom 15 ++
Вложения
costarica.zmp
(1.08 КБ) 263 скачивания
Russian NDN Team
QIP NightlyTester
flashkiwi
Новичок
Сообщения: 5
Зарегистрирован: 09 окт 2017, 12:33
Поблагодарили: 4 раза

Re: ZMP for Costa Rica map

Сообщение flashkiwi »

Thanks very much!
I didn't think to add to the geturlscript.

Is there a way to download from multiple services (example tileserver1., tileserver2, tile server3 etc)?

Thanks

FlashKiwi
Аватара пользователя
garl
Гуру
Сообщения: 1625
Зарегистрирован: 16 июл 2008, 14:40
Откуда: Краснодар, Кубанская столица.
Благодарил (а): 97 раз
Поблагодарили: 272 раза

Re: ZMP for Costa Rica map

Сообщение garl »

to use random Tileservers use this code:

Код: Выделить всё

var
  ts: string;
begin
 ts:= RegExprReplaceMatchSubStr(GetURLBase, 'tiles3\.arcgis', 'tiles'+inttostr( Random(4) )+'.arcgis' );

 ResultURL:= ts+inttostr(getz-1)+'/'+inttostr(gety)+'/'+inttostr(getx)+'?cacheKey=b6c5da4e1a1dcb62';
end.
Russian NDN Team
QIP NightlyTester
Ответить

Вернуться в «International visitors section»