[ka-Map-users] dynamic xml overlay?

Lorenzo Becchi lorenzo at ominiverdi.com
Wed Sep 10 06:36:09 EDT 2008

Hi Deli,

Deli Soetiawan wrote:
> hi there,
> still new with WebGis and KaMap, i've tried XML Overlay demo and it 
> works well, i plan to create something like vehicle tracking using 
> KaXMLOverlay for my college works. the concept was to move car icon on 
> XML generated data every 1 minute,
> however i need to know how dynamically load data works using this xml 
> overlay?
> i've read :
> http://ka-map.ominiverdi.org/wiki/index.php/Overlay_API_Reference
> and found code:
> myInterval = setInterval("myMovingOverlay.loadXml('xmlget.php')",5000);
> did it refresh the xml result from xmlget.php every 5 seconds (5000 
> miliseconds)?

it should

> i mean did it really refresh the data (say if there an update every 2 
> seconds)?

it should relead the data. Every two seconds, IMO, is not a good 
interval, it's too short. Many times net congestions can arise the 
number of contemporary calls on the server and create problems.


> since i really concerned about data refresh
> and what the different if i use this js:
> var myInterval = 
> setTimeout("myMovingOverlay.loadXml('xmlget.php')",5000);

More information about the ka-Map-users mailing list