kml gx track dynamic update from real time data -


i want coordinates every second , update track on google earth in kml file

i know need network link update added coordiantes time , refresh every second couldnt find complete examples show , update part confusing me. wondering if some1 write out simple example?

if want generate kml , update on regular interval create root kml such this:

<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2">   <networklink>     <name>networklink example</name>     <link>           <href>http://...</href>           <refreshmode>oninterval</refreshmode>           <refreshinterval>5</refreshinterval>     </link>   </networklink> </kml> 

if area of interest "small" or locallized may want add region networklink , viewrefreshmode element onregion value refresh when region active (e.g., within current view).

  <networklink>     <name>networklink example region</name>     <region>     </region>     ...     <link>           <href>http://...</href>           <refreshmode>oninterval</refreshmode>           <refreshinterval>5</refreshinterval>           <viewrefreshmode>onregion</viewrefreshmode>     </link>   </networklink> 

for networklinkcontrol tutorial can found here working example. https://developers.google.com/kml/documentation/updates


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -