Google Earth API Samples - Creating Network Links

Last Modified:
06/08/2009
Installed Plugin Version:
...

Relevant Resources:

Relevant Code Excerpt:

var networkLink = ge.createNetworkLink("");
networkLink.setDescription("NetworkLink open to fetched content");
networkLink.setName("Open NetworkLink");
networkLink.setFlyToView(true);  

// create a Link object
var link = ge.createLink("");
link.setHref("http://kml-samples.googlecode.com" +
             "/svn/trunk/kml/NetworkLink/placemark.kml");

// attach the Link to the NetworkLink
networkLink.setLink(link);

// add the NetworkLink feature to Earth
ge.getFeatures().appendChild(networkLink);