Google Earth API

KmlNetworkLink Interface Reference

Inheritance diagram for KmlNetworkLink:
Inheritance graph

List of all members.

Public Member Functions

void set (KmlLink link, bool refreshVisibility, bool flyToView)
KmlLink getLink ()
void setLink (KmlLink link)
bool getRefreshVisibility ()
void setRefreshVisibility (bool refreshVisibility)
bool getFlyToView ()
void setFlyToView (bool flyToView)

Detailed Description

References a KML file or KMZ archive on a remote network. Use the Link property to specify the location of the KML file. Within that property, you can define the refresh options for updating the file, based on time and camera change. NetworkLinks can be used in combination with Regions to handle very large datasets efficiently.

Member Function Documentation

void KmlNetworkLink.set ( KmlLink  link,
bool  refreshVisibility,
bool  flyToView 
)

Sets the link, refreshVisibility, and flyToView for the network link.

Specifies the location of any of the following:

  • KML files fetched by network links
  • Image files used by icons in icon styles, ground overlays, and screen overlays
  • Model files used in the Model object

Specifies the location of any of the following:

  • KML files fetched by network links
  • Image files used by icons in icon styles, ground overlays, and screen overlays
  • Model files used in the Model object

A value of 0 leaves the visibility of features within the control of the Google Earth user. Set the value to 1 to reset the visibility of features each time the NetworkLink is refreshed. For example, suppose a Placemark within the linked KML file has visibility set to 1 and the NetworkLink has refreshVisibility set to 1. When the file is first loaded into Google Earth, the user can clear the check box next to the item to turn off display in the 3D viewer. However, when the NetworkLink is refreshed, the Placemark will be made visible again, since its original visibility state was TRUE.

void KmlNetworkLink.setRefreshVisibility ( bool  refreshVisibility)

A value of 0 leaves the visibility of features within the control of the Google Earth user. Set the value to 1 to reset the visibility of features each time the NetworkLink is refreshed. For example, suppose a Placemark within the linked KML file has visibility set to 1 and the NetworkLink has refreshVisibility set to 1. When the file is first loaded into Google Earth, the user can clear the check box next to the item to turn off display in the 3D viewer. However, when the NetworkLink is refreshed, the Placemark will be made visible again, since its original visibility state was TRUE.

A value of 1 causes Google Earth to fly to the view of the LookAt or Camera in the NetworkLinkControl (if it exists).

void KmlNetworkLink.setFlyToView ( bool  flyToView)

A value of 1 causes Google Earth to fly to the view of the LookAt or Camera in the NetworkLinkControl (if it exists).

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.