2

how can i display my kml files through network link on Google Maps instead of showing it on Google Earth.

I have tried the step mentioned on this link

https://developers.google.com/kml/articles/pagesforkml

but stucked at step 3 where it is saying for uploading kml file as no option is available there.

Actually ,I'm uploading KML maps because , my KML file size is more than 2 MB and as i refresh it on google earth , it got hanged..

So what i need is a network link on Google maps which will show my my.kml file placemarks and this network link is having a refresh interval time ..my.kml file is generating at every 10 seconds by a java program...

my network link code is : // pasted only the network link part

<NetworkLink>
<Link>
<href>/home/placeMarkers.kml</href>
<refreshmode>onChange</refreshmode>
<refreshInterval>60</refreshInterval>
<viewRefreshMode>onStop</viewRefreshMode>
<viewRefreshTime>20</viewRefreshTime>
 </Link>
</NetworkLink>
</kml> 
  • You expect the user to reload 2MB file every 10 seconds? – BradHards Apr 17 '13 at 9:33
  • i expect the file to be refresh in every n seconds automatically and that part i have done , but when it is about to refresh Google earth get hang – user21546 Apr 17 '13 at 10:12
  • I meant - 720Mb/hour seems like a lot... – BradHards Apr 17 '13 at 11:06
  • ok...putting it very simply...how should i code in network link which will refresh my.kml file in every 10 seconds...instead of doing in through Google earth - properties - refresh - timebased refresh...i have edit my question showing the code of network link – user21546 Apr 17 '13 at 11:30
  • 1
    Network KML is NOT FULLY supported on Google Maps - Only Google Earth - see groups.google.com/forum/?fromgroups=#!topic/… "We don't support many KML features - refreshMode is one of them." {Google Employee} – Mapperz Apr 17 '13 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.