11-18-2015 02:50 AM
Hi all,
I need to automatically (ok, let say semi automatic, every n seconds) refresh data source in Portal? Do you have any example of script that can do it working?
I will make presentation, and I know that for customer this is main feature to compare with ESRI portal.
TIA
Tomasz
Solved! Go to Solution.
11-18-2015 04:05 AM
Cześć Tomasz,
What should work is using of $GP.map.refresh(). The bottleneck is that it refreshes all layer and not only a particular layer. To create a loop using JQuery tools should be enough:
setInterval(refreshMap, 5000); // refresh each 5000 miliseconds function refreshMap() { $GP.map.refresh(); }
11-24-2015 07:54 AM - edited 11-24-2015 07:57 AM
Ahoj Jan.
Thanks. It really helped :-)
T.
01-15-2020 02:33 AM
Hi Jan,
Is there any way to refresh only particular layer on the map, not all layers?
Regards,
Mladen