Страница 1 из 1

ZMP for Costa Rica map

СообщениеДобавлено: 09 окт 2017, 12:47
flashkiwi
Hi

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

https://tiles1.arcgis.com/tiles/4u1m1BBDkNDTVWsd/arcgis/rest/services/25000/MapServer?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.

Re: ZMP for Costa Rica map

СообщениеДобавлено: 09 окт 2017, 15:24
garl
try this
copy file into the map folder and restart sas palnet
zoom 15 ++

Re: ZMP for Costa Rica map

СообщениеДобавлено: 09 окт 2017, 16:32
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

Re: ZMP for Costa Rica map

СообщениеДобавлено: 09 окт 2017, 16:53
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.