put kaXmlOverlap.js and points.xml into the same folder of those js
add this in the index.html
modify the startup.js in function myMapInitialized( eventID, mapName )
1 2 3 4 5 6 7 8 9 |
// *_3_ Create a kaXmlOverlay object: myXmlOverlay = new kaXmlOverlay( myKaMap, 250 ); // *_4_ Add some objects on the overlay layer. There are two ways to do that //Call the loadXml method: this method load an XML document from the web server. myXmlOverlay.loadXml('points.xml'); //* _5_ To have a periodic update: myInterval = setInterval("myXmlOverlay.loadXml('xmlget.php')",5000); |
modify the points.xml