开发者

Can Google Earth and Google Maps get live data using KML files?

I've read a little about KML files. They are XML files that开发者_StackOverflow中文版 can be opened in Google Earth and Google Maps to display all kinds of data on the map. I have created a Google Maps application that displays thousands of dots representing thousands of IP addresses. The dots are red, yellow and green, depending on if they're offline, unstable or online respectively. The dots are also refreshed once per 5 seconds.

I was intrigued by the mention of KML files, seeing as they can be opened in Google Maps and Google Earth both. I have a few worries that I couldn't answer by Googling though:

  1. Can Google Earth be set to update the KML file from a URL live? That way the dots would change colours in the application without the user having to manually
  2. If I were to change my application to using KML files, would it still be a simple matter to fetch information about each dot using javascript?
  3. How does creation of Information Windows work in KML files?


You need to read about NetworkLink on NetworkLink This element can load KML(KMZ) from url.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜