References a KML file or KMZ archive on a local or remote network. Use the
element to specify the location of the KML file. Within that element, 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.
Syntax:
<NetworkLink id="ID">
<!-- inherited from Feature element --><name>... </name> <!-- string -->
<visibility>1</visibility> <!-- boolean -->
<open>0</open> <!-- boolean -->
<atom:author>...<atom:author> <!-- xmlns:atom -->
<atom:link>...</atom:link> <!-- xmlns:atom -->
<address>... </address> <!-- string -->
<xal:AddressDetails>...</xal:AddressDetails> <!-- xmlns:xal --> <phoneNumber>...</phoneNumber> <!-- string --> <Snippet maxLines="2">... </Snippet> <!-- string -->
<description>... </description> <!-- string -->
<AbstractView>...</AbstractView> <!-- Camera or LookAt -->
<TimePrimitive >...</TimePrimitive >
<styleUrl>... </styleUrl> <!-- anyURI -->
<StyleSelector>...</StyleSelector>
<Region>...</Region>
<Metadata>...</Metadata> <!-- deprecated in KML 2.2 -->
<ExtendedData>...</ExtendedData> <!-- new in KML 2.2 -->
<!-- specific to NetworkLink -->
<refreshVisibility>0</refreshVisibility> <!-- boolean -->
<flyToView>0</flyToView> <!-- boolean -->
<Link>...</Link>
</NetworkLink>
Extends:
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.Feature
abstractView , address , atomAuthor , atomLink , description , extendedData , featureObjectExtension , featureSimpleExtension , metadata , name , open , phoneNumber , region , snippet , snippetd , styleSelector , styleUrl , timePrimitive , visibility , xalAddressDetails
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.Feature
createAndAddStyle , createAndAddStyleMap , createAndSetAtomAuthor , createAndSetAtomLink , createAndSetCamera , createAndSetExtendedData , createAndSetLookAt , createAndSetMetadata , createAndSetRegion , createAndSetSnippet , createAndSetTimeSpan , createAndSetTimeStamp , createAndSetXalAddressDetails , getAbstractView , getAddress , getAtomAuthor , getAtomLink , getDescription , getExtendedData , getFeatureObjectExtension , getFeatureSimpleExtension , getMetadata , getName , getPhoneNumber , getRegion , getSnippet , getSnippetd , getStyleSelector , getStyleUrl , getTimePrimitive , getXalAddressDetails , isOpen , isVisibility , setAbstractView , setAddress , setAtomAuthor , setAtomLink , setDescription , setExtendedData , setMetadata , setName , setOpen , setPhoneNumber , setRegion , setSnippet , setSnippetd , setStyleUrl , setTimePrimitive , setVisibility , setXalAddressDetails
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
refreshVisibility
protected java.lang.Boolean refreshVisibility
Boolean value. 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 set to 1 and the NetworkLink has
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.
flyToView
protected java.lang.Boolean flyToView
Boolean value. A value of 1 causes Google Earth to fly to the view of the LookAt
or Camera in the NetworkLinkControl (if it exists). If the NetworkLinkControl does
not contain an AbstractView element, Google Earth flies to the LookAt or Camera
element in the Feature child within the element in the refreshed file. If
the element does not have a LookAt or Camera specified, the view is unchanged.
For example, Google Earth would fly to the view of the parent Document,
not the of the Placemarks contained within the Document.
url
@Deprecated
protected Link url
Deprecated.
link
protected Link link
(required). see .
specifies the location of any of the following:
If the file specified in is a local file, the and
elements are not used.
KML files fetched by network links Image files used in any Overlay (the element
specifies the image in an Overlay; has the same fields as ) Model files
used in the element
Specifies the URL of the website containing this KML or KMZ file. Be sure to include
the namespace for this element in any KML file that uses it: xmlns:atom="http://www.w3.org/2005/Atom"
(see the sample that follows).
Specifies the file to load and optional refresh parameters. See .
The element replaces the element of contained in earlier
KML releases and adds functionality for the element (introduced in KML
2.1). In Google Earth releases 3.0 and earlier, the element is ignored.
The file is conditionally loaded and refreshed, depending on the refresh parameters
supplied here. Two different sets of refresh parameters can be specified: one set
is based on time ( and ) and one is based on the current
"camera" view ( and ). In addition, Link specifies
whether to scale the bounding box parameters that are sent to the server (
and provides a set of optional viewing parameters that can be sent to the server
() as well as a set of optional parameters containing version and language
information.
Tip: To display the top-level Folder or Document within a Network Link in the List
View, assign an ID to the Folder or Document. Without this ID, only the child object
names are displayed in the List View.
When a file is fetched, the URL that is sent to the server is composed of three
pieces of information:
the href (Hypertext Reference) that specifies the file to load. an arbitrary format
string that is created from (a) parameters that you specify in the
element or (b) bounding box parameters (this is the default and is used if no
element is included in the file). a second format string that is specified in the
element.
Syntax:
<Link id="ID">
<!-- specific to Link -->
<href>... </href> <!-- string -->
<refreshMode>onChange</refreshMode>
<!-- refreshModeEnum: onChange, onInterval, or onExpire -->
<refreshInterval>4</refreshInterval> <!-- float -->
<viewRefreshMode>never</viewRefreshMode>
<!-- viewRefreshModeEnum: never, onStop, onRequest, onRegion -->
<viewRefreshTime>4</viewRefreshTime> <!-- float -->
<viewBoundScale>1</viewBoundScale> <!-- float -->
<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</ viewFormat>
<!-- string -->
<httpQuery>...</httpQuery> <!-- string -->
</Link>
Extends:
networkLinkSimpleExtension
protected java.util.List<java.lang.Object> networkLinkSimpleExtension
networkLinkObjectExtension
protected java.util.List<AbstractObject > networkLinkObjectExtension
This is an abstract base class and cannot be used directly in a KML file. It provides
the id attribute, which allows unique identification of a KML element, and the targetId
attribute, which is used to reference objects that have already been loaded into
Google Earth. The id attribute must be assigned if the mechanism is to
be used.
Syntax:
<!-- abstract element; do not create -->
<!-- Object id="ID" targetId="NCName" -->
<!-- /Object > -->
NetworkLink
public NetworkLink ()
isRefreshVisibility
public java.lang.Boolean isRefreshVisibility ()
Returns: possible object is
Boolean
setRefreshVisibility
public void setRefreshVisibility (java.lang.Boolean value)
Parameters: value
- allowed object is
Boolean
See Also: refreshVisibility
isFlyToView
public java.lang.Boolean isFlyToView ()
Returns: possible object is
Boolean
setFlyToView
public void setFlyToView (java.lang.Boolean value)
Parameters: value
- allowed object is
Boolean
See Also: flyToView
getUrl
public Link getUrl ()
Returns: possible object is
Link
See Also: url
setUrl
public void setUrl (Link value)
Parameters: value
- allowed object is
Link
See Also: url
getLink
public Link getLink ()
Returns: possible object is
Link
See Also: link
setLink
public void setLink (Link value)
Parameters: value
- allowed object is
Link
See Also: link
getNetworkLinkSimpleExtension
public java.util.List<java.lang.Object> getNetworkLinkSimpleExtension ()
See Also: networkLinkSimpleExtension
getNetworkLinkObjectExtension
public java.util.List<AbstractObject > getNetworkLinkObjectExtension ()
See Also: networkLinkObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class Feature
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class Feature
createAndSetUrl
public Link createAndSetUrl ()
Creates a new instance of Link
and set it to url.
This method is a short version for:
Link link = new Link();
this.setUrl(link);
createAndSetLink
public Link createAndSetLink ()
Creates a new instance of Link
and set it to link.
This method is a short version for:
Link link = new Link();
this.setLink(link);
setNetworkLinkSimpleExtension
public void setNetworkLinkSimpleExtension (java.util.List<java.lang.Object> networkLinkSimpleExtension)
Parameters: networkLinkSimpleExtension
- See Also: networkLinkSimpleExtension
addToNetworkLinkSimpleExtension
public NetworkLink addToNetworkLinkSimpleExtension (java.lang.Object networkLinkSimpleExtension)
add a value to the networkLinkSimpleExtension property collection
Parameters: networkLinkSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setNetworkLinkObjectExtension
public void setNetworkLinkObjectExtension (java.util.List<AbstractObject > networkLinkObjectExtension)
Parameters: networkLinkObjectExtension
- See Also: networkLinkObjectExtension
addToNetworkLinkObjectExtension
public NetworkLink addToNetworkLinkObjectExtension (AbstractObject networkLinkObjectExtension)
add a value to the networkLinkObjectExtension property collection
Parameters: networkLinkObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
setObjectSimpleExtension
public void setObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Overrides: setObjectSimpleExtension
in class Feature
See Also: objectSimpleExtension
addToObjectSimpleExtension
public NetworkLink addToObjectSimpleExtension (java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection
Overrides: addToObjectSimpleExtension
in class Feature
Parameters: objectSimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setStyleSelector
public void setStyleSelector (java.util.List<StyleSelector > styleSelector)
Overrides: setStyleSelector
in class Feature
See Also: styleSelector
addToStyleSelector
public NetworkLink addToStyleSelector (StyleSelector styleSelector)
Description copied from class: Feature
add a value to the styleSelector property collection
Overrides: addToStyleSelector
in class Feature
Parameters: styleSelector
- Objects of the following type are allowed in the list: <
StyleSelector
JAXBElement
<
StyleMap
JAXBElement
<
Style
Returns: true (as general contract of Collection.add ).
setFeatureSimpleExtension
public void setFeatureSimpleExtension (java.util.List<java.lang.Object> featureSimpleExtension)
Overrides: setFeatureSimpleExtension
in class Feature
See Also: featureSimpleExtension
addToFeatureSimpleExtension
public NetworkLink addToFeatureSimpleExtension (java.lang.Object featureSimpleExtension)
Description copied from class: Feature
add a value to the featureSimpleExtension property collection
Overrides: addToFeatureSimpleExtension
in class Feature
Parameters: featureSimpleExtension
- Objects of the following type are allowed in the list: <
Object
JAXBElement
<
Boolean
Returns: true (as general contract of Collection.add ).
setFeatureObjectExtension
public void setFeatureObjectExtension (java.util.List<AbstractObject > featureObjectExtension)
Overrides: setFeatureObjectExtension
in class Feature
See Also: featureObjectExtension
addToFeatureObjectExtension
public NetworkLink addToFeatureObjectExtension (AbstractObject featureObjectExtension)
Description copied from class: Feature
add a value to the featureObjectExtension property collection
Overrides: addToFeatureObjectExtension
in class Feature
Parameters: featureObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
withRefreshVisibility
public NetworkLink withRefreshVisibility (java.lang.Boolean refreshVisibility)
fluent setter
Parameters: refreshVisibility
- required parameterSee Also: setRefreshVisibility(Boolean)
withFlyToView
public NetworkLink withFlyToView (java.lang.Boolean flyToView)
fluent setter
Parameters: flyToView
- required parameterSee Also: setFlyToView(Boolean)
withUrl
public NetworkLink withUrl (Link url)
fluent setter
Parameters: url
- required parameterSee Also: setUrl(Link)
withLink
public NetworkLink withLink (Link link)
fluent setter
Parameters: link
- required parameterSee Also: setLink(Link)
withNetworkLinkSimpleExtension
public NetworkLink withNetworkLinkSimpleExtension (java.util.List<java.lang.Object> networkLinkSimpleExtension)
fluent setter
Parameters: networkLinkSimpleExtension
- required parameterSee Also: #setNetworkLinkSimpleExtension(List)
withNetworkLinkObjectExtension
public NetworkLink withNetworkLinkObjectExtension (java.util.List<AbstractObject > networkLinkObjectExtension)
fluent setter
Parameters: networkLinkObjectExtension
- required parameterSee Also: #setNetworkLinkObjectExtension(List)
withObjectSimpleExtension
public NetworkLink withObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter
Overrides: withObjectSimpleExtension
in class Feature
Parameters: objectSimpleExtension
- required parameterSee Also: #setObjectSimpleExtension(List)
withId
public NetworkLink withId (java.lang.String id)
Description copied from class: AbstractObject
fluent setter
Overrides: withId
in class Feature
Parameters: id
- required parameterSee Also: AbstractObject.setId(String)
withTargetId
public NetworkLink withTargetId (java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter
Overrides: withTargetId
in class Feature
Parameters: targetId
- required parameterSee Also: AbstractObject.setTargetId(String)
withName
public NetworkLink withName (java.lang.String name)
Description copied from class: Feature
fluent setter
Overrides: withName
in class Feature
Parameters: name
- required parameterSee Also: Feature.setName(String)
withVisibility
public NetworkLink withVisibility (java.lang.Boolean visibility)
Description copied from class: Feature
fluent setter
Overrides: withVisibility
in class Feature
Parameters: visibility
- required parameterSee Also: Feature.setVisibility(Boolean)
withOpen
public NetworkLink withOpen (java.lang.Boolean open)
Description copied from class: Feature
fluent setter
Overrides: withOpen
in class Feature
Parameters: open
- required parameterSee Also: Feature.setOpen(Boolean)
withAtomAuthor
public NetworkLink withAtomAuthor (Author atomAuthor)
Description copied from class: Feature
fluent setter
Overrides: withAtomAuthor
in class Feature
Parameters: atomAuthor
- required parameterSee Also: Feature.setAtomAuthor(Author)
withAtomLink
public NetworkLink withAtomLink (Link atomLink)
Description copied from class: Feature
fluent setter
Overrides: withAtomLink
in class Feature
Parameters: atomLink
- required parameterSee Also: Feature.setAtomLink(Link)
withAddress
public NetworkLink withAddress (java.lang.String address)
Description copied from class: Feature
fluent setter
Overrides: withAddress
in class Feature
Parameters: address
- required parameterSee Also: Feature.setAddress(String)
withXalAddressDetails
public NetworkLink withXalAddressDetails (AddressDetails xalAddressDetails)
Description copied from class: Feature
fluent setter
Overrides: withXalAddressDetails
in class Feature
Parameters: xalAddressDetails
- required parameterSee Also: Feature.setXalAddressDetails(AddressDetails)
withPhoneNumber
public NetworkLink withPhoneNumber (java.lang.String phoneNumber)
Description copied from class: Feature
fluent setter
Overrides: withPhoneNumber
in class Feature
Parameters: phoneNumber
- required parameterSee Also: Feature.setPhoneNumber(String)
withSnippet
public NetworkLink withSnippet (Snippet snippet)
Description copied from class: Feature
fluent setter
Overrides: withSnippet
in class Feature
Parameters: snippet
- required parameterSee Also: Feature.setSnippet(Snippet)
withSnippetd
public NetworkLink withSnippetd (java.lang.String snippetd)
Description copied from class: Feature
fluent setter
Overrides: withSnippetd
in class Feature
Parameters: snippetd
- required parameterSee Also: Feature.setSnippetd(String)
withDescription
public NetworkLink withDescription (java.lang.String description)
Description copied from class: Feature
fluent setter
Overrides: withDescription
in class Feature
Parameters: description
- required parameterSee Also: Feature.setDescription(String)
withAbstractView
public NetworkLink withAbstractView (AbstractView abstractView)
Description copied from class: Feature
fluent setter
Overrides: withAbstractView
in class Feature
Parameters: abstractView
- required parameterSee Also: Feature.setAbstractView(AbstractView)
withTimePrimitive
public NetworkLink withTimePrimitive (TimePrimitive timePrimitive)
Description copied from class: Feature
fluent setter
Overrides: withTimePrimitive
in class Feature
Parameters: timePrimitive
- required parameterSee Also: Feature.setTimePrimitive(TimePrimitive)
withStyleUrl
public NetworkLink withStyleUrl (java.lang.String styleUrl)
Description copied from class: Feature
fluent setter
Overrides: withStyleUrl
in class Feature
Parameters: styleUrl
- required parameterSee Also: Feature.setStyleUrl(String)
withStyleSelector
public NetworkLink withStyleSelector (java.util.List<StyleSelector > styleSelector)
Description copied from class: Feature
fluent setter
Overrides: withStyleSelector
in class Feature
Parameters: styleSelector
- required parameterSee Also: #setStyleSelector(List)
withRegion
public NetworkLink withRegion (Region region)
Description copied from class: Feature
fluent setter
Overrides: withRegion
in class Feature
Parameters: region
- required parameterSee Also: Feature.setRegion(Region)
withMetadata
public NetworkLink withMetadata (Metadata metadata)
Description copied from class: Feature
fluent setter
Overrides: withMetadata
in class Feature
Parameters: metadata
- required parameterSee Also: Feature.setMetadata(Metadata)
withExtendedData
public NetworkLink withExtendedData (ExtendedData extendedData)
Description copied from class: Feature
fluent setter
Overrides: withExtendedData
in class Feature
Parameters: extendedData
- required parameterSee Also: Feature.setExtendedData(ExtendedData)
withFeatureSimpleExtension
public NetworkLink withFeatureSimpleExtension (java.util.List<java.lang.Object> featureSimpleExtension)
Description copied from class: Feature
fluent setter
Overrides: withFeatureSimpleExtension
in class Feature
Parameters: featureSimpleExtension
- required parameterSee Also: #setFeatureSimpleExtension(List)
withFeatureObjectExtension
public NetworkLink withFeatureObjectExtension (java.util.List<AbstractObject > featureObjectExtension)
Description copied from class: Feature
fluent setter
Overrides: withFeatureObjectExtension
in class Feature
Parameters: featureObjectExtension
- required parameterSee Also: #setFeatureObjectExtension(List)
clone
public NetworkLink clone ()
Overrides: clone
in class Feature