public class NetworkLink extends Feature implements Cloneable
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 -->Extends:
<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>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
flyToView
|
protected Link |
link
(required). see .
|
protected List<AbstractObject> |
networkLinkObjectExtension
|
protected List<Object> |
networkLinkSimpleExtension |
protected Boolean |
refreshVisibility
|
protected Link |
url
Deprecated.
|
abstractView, address, atomAuthor, atomLink, description, extendedData, featureObjectExtension, featureSimpleExtension, metadata, name, open, phoneNumber, region, snippet, snippetd, styleSelector, styleUrl, timePrimitive, visibility, xalAddressDetailsid, objectSimpleExtension, targetId| Constructor and Description |
|---|
NetworkLink() |
| Modifier and Type | Method and Description |
|---|---|
NetworkLink |
addToFeatureObjectExtension(AbstractObject featureObjectExtension)
add a value to the featureObjectExtension property collection
|
NetworkLink |
addToFeatureSimpleExtension(Object featureSimpleExtension)
add a value to the featureSimpleExtension property collection
|
NetworkLink |
addToNetworkLinkObjectExtension(AbstractObject networkLinkObjectExtension)
add a value to the networkLinkObjectExtension property collection
|
NetworkLink |
addToNetworkLinkSimpleExtension(Object networkLinkSimpleExtension)
add a value to the networkLinkSimpleExtension property collection
|
NetworkLink |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
NetworkLink |
addToStyleSelector(StyleSelector styleSelector)
add a value to the styleSelector property collection
|
NetworkLink |
clone() |
Link |
createAndSetLink()
Creates a new instance of
Link and set it to link. |
Link |
createAndSetUrl()
Creates a new instance of
Link and set it to url. |
boolean |
equals(Object obj) |
Link |
getLink() |
List<AbstractObject> |
getNetworkLinkObjectExtension() |
List<Object> |
getNetworkLinkSimpleExtension() |
Link |
getUrl() |
int |
hashCode() |
Boolean |
isFlyToView() |
Boolean |
isRefreshVisibility() |
void |
setFeatureObjectExtension(List<AbstractObject> featureObjectExtension) |
void |
setFeatureSimpleExtension(List<Object> featureSimpleExtension) |
void |
setFlyToView(Boolean value) |
void |
setLink(Link value) |
void |
setNetworkLinkObjectExtension(List<AbstractObject> networkLinkObjectExtension) |
void |
setNetworkLinkSimpleExtension(List<Object> networkLinkSimpleExtension) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setRefreshVisibility(Boolean value) |
void |
setStyleSelector(List<StyleSelector> styleSelector) |
void |
setUrl(Link value) |
NetworkLink |
withAbstractView(AbstractView abstractView)
fluent setter
|
NetworkLink |
withAddress(String address)
fluent setter
|
NetworkLink |
withAtomAuthor(Author atomAuthor)
fluent setter
|
NetworkLink |
withAtomLink(Link atomLink)
fluent setter
|
NetworkLink |
withDescription(String description)
fluent setter
|
NetworkLink |
withExtendedData(ExtendedData extendedData)
fluent setter
|
NetworkLink |
withFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
fluent setter
|
NetworkLink |
withFeatureSimpleExtension(List<Object> featureSimpleExtension)
fluent setter
|
NetworkLink |
withFlyToView(Boolean flyToView)
fluent setter
|
NetworkLink |
withId(String id)
fluent setter
|
NetworkLink |
withLink(Link link)
fluent setter
|
NetworkLink |
withMetadata(Metadata metadata)
fluent setter
|
NetworkLink |
withName(String name)
fluent setter
|
NetworkLink |
withNetworkLinkObjectExtension(List<AbstractObject> networkLinkObjectExtension)
fluent setter
|
NetworkLink |
withNetworkLinkSimpleExtension(List<Object> networkLinkSimpleExtension)
fluent setter
|
NetworkLink |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
NetworkLink |
withOpen(Boolean open)
fluent setter
|
NetworkLink |
withPhoneNumber(String phoneNumber)
fluent setter
|
NetworkLink |
withRefreshVisibility(Boolean refreshVisibility)
fluent setter
|
NetworkLink |
withRegion(Region region)
fluent setter
|
NetworkLink |
withSnippet(Snippet snippet)
fluent setter
|
NetworkLink |
withSnippetd(String snippetd)
fluent setter
|
NetworkLink |
withStyleSelector(List<StyleSelector> styleSelector)
fluent setter
|
NetworkLink |
withStyleUrl(String styleUrl)
fluent setter
|
NetworkLink |
withTargetId(String targetId)
fluent setter
|
NetworkLink |
withTimePrimitive(TimePrimitive timePrimitive)
fluent setter
|
NetworkLink |
withUrl(Link url)
fluent setter
|
NetworkLink |
withVisibility(Boolean visibility)
fluent setter
|
NetworkLink |
withXalAddressDetails(AddressDetails xalAddressDetails)
fluent setter
|
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, setXalAddressDetailsgetId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected 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
protected 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
@Deprecated protected Link url
protected Link link
specifies the location of any of the following:
If the file specified in
KML files fetched by network links Image files used in any Overlay (the
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
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 (
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
<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:protected List<AbstractObject> networkLinkObjectExtension
public void setRefreshVisibility(Boolean value)
value - allowed object is
BooleanrefreshVisibilitypublic void setFlyToView(Boolean value)
value - allowed object is
BooleanflyToViewpublic List<Object> getNetworkLinkSimpleExtension()
networkLinkSimpleExtensionpublic List<AbstractObject> getNetworkLinkObjectExtension()
networkLinkObjectExtensionpublic Link createAndSetUrl()
Link and set it to url.
This method is a short version for:
Link link = new Link();
this.setUrl(link); public Link createAndSetLink()
Link and set it to link.
This method is a short version for:
Link link = new Link();
this.setLink(link); public void setNetworkLinkSimpleExtension(List<Object> networkLinkSimpleExtension)
networkLinkSimpleExtension - networkLinkSimpleExtensionpublic NetworkLink addToNetworkLinkSimpleExtension(Object networkLinkSimpleExtension)
networkLinkSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setNetworkLinkObjectExtension(List<AbstractObject> networkLinkObjectExtension)
networkLinkObjectExtension - networkLinkObjectExtensionpublic NetworkLink addToNetworkLinkObjectExtension(AbstractObject networkLinkObjectExtension)
networkLinkObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class FeatureobjectSimpleExtensionpublic NetworkLink addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class FeatureobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setStyleSelector(List<StyleSelector> styleSelector)
setStyleSelector in class FeaturestyleSelectorpublic NetworkLink addToStyleSelector(StyleSelector styleSelector)
FeatureaddToStyleSelector in class FeaturestyleSelector - Objects of the following type are allowed in the list: <StyleJAXBElement<StyleSelectorJAXBElement<StyleMappublic void setFeatureSimpleExtension(List<Object> featureSimpleExtension)
setFeatureSimpleExtension in class FeaturefeatureSimpleExtensionpublic NetworkLink addToFeatureSimpleExtension(Object featureSimpleExtension)
FeatureaddToFeatureSimpleExtension in class FeaturefeatureSimpleExtension - Objects of the following type are allowed in the list: <DoubleJAXBElement<ObjectJAXBElement<Booleanpublic void setFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
setFeatureObjectExtension in class FeaturefeatureObjectExtensionpublic NetworkLink addToFeatureObjectExtension(AbstractObject featureObjectExtension)
FeatureaddToFeatureObjectExtension in class FeaturefeatureObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic NetworkLink withRefreshVisibility(Boolean refreshVisibility)
refreshVisibility - required parametersetRefreshVisibility(Boolean)public NetworkLink withFlyToView(Boolean flyToView)
flyToView - required parametersetFlyToView(Boolean)public NetworkLink withUrl(Link url)
url - required parametersetUrl(Link)public NetworkLink withLink(Link link)
link - required parametersetLink(Link)public NetworkLink withNetworkLinkSimpleExtension(List<Object> networkLinkSimpleExtension)
networkLinkSimpleExtension - required parameter#setNetworkLinkSimpleExtension(Listpublic NetworkLink withNetworkLinkObjectExtension(List<AbstractObject> networkLinkObjectExtension)
networkLinkObjectExtension - required parameter#setNetworkLinkObjectExtension(List) public NetworkLink withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class FeatureobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic NetworkLink withId(String id)
AbstractObjectwithId in class Featureid - required parameterAbstractObject.setId(String)public NetworkLink withTargetId(String targetId)
AbstractObjectwithTargetId in class FeaturetargetId - required parameterAbstractObject.setTargetId(String)public NetworkLink withName(String name)
FeaturewithName in class Featurename - required parameterFeature.setName(String)public NetworkLink withVisibility(Boolean visibility)
FeaturewithVisibility in class Featurevisibility - required parameterFeature.setVisibility(Boolean)public NetworkLink withOpen(Boolean open)
FeaturewithOpen in class Featureopen - required parameterFeature.setOpen(Boolean)public NetworkLink withAtomAuthor(Author atomAuthor)
FeaturewithAtomAuthor in class FeatureatomAuthor - required parameterFeature.setAtomAuthor(Author)public NetworkLink withAtomLink(Link atomLink)
FeaturewithAtomLink in class FeatureatomLink - required parameterFeature.setAtomLink(Link)public NetworkLink withAddress(String address)
FeaturewithAddress in class Featureaddress - required parameterFeature.setAddress(String)public NetworkLink withXalAddressDetails(AddressDetails xalAddressDetails)
FeaturewithXalAddressDetails in class FeaturexalAddressDetails - required parameterFeature.setXalAddressDetails(AddressDetails)public NetworkLink withPhoneNumber(String phoneNumber)
FeaturewithPhoneNumber in class FeaturephoneNumber - required parameterFeature.setPhoneNumber(String)public NetworkLink withSnippet(Snippet snippet)
FeaturewithSnippet in class Featuresnippet - required parameterFeature.setSnippet(Snippet)public NetworkLink withSnippetd(String snippetd)
FeaturewithSnippetd in class Featuresnippetd - required parameterFeature.setSnippetd(String)public NetworkLink withDescription(String description)
FeaturewithDescription in class Featuredescription - required parameterFeature.setDescription(String)public NetworkLink withAbstractView(AbstractView abstractView)
FeaturewithAbstractView in class FeatureabstractView - required parameterFeature.setAbstractView(AbstractView)public NetworkLink withTimePrimitive(TimePrimitive timePrimitive)
FeaturewithTimePrimitive in class FeaturetimePrimitive - required parameterFeature.setTimePrimitive(TimePrimitive)public NetworkLink withStyleUrl(String styleUrl)
FeaturewithStyleUrl in class FeaturestyleUrl - required parameterFeature.setStyleUrl(String)public NetworkLink withStyleSelector(List<StyleSelector> styleSelector)
FeaturewithStyleSelector in class FeaturestyleSelector - required parameter#setStyleSelector(List) public NetworkLink withRegion(Region region)
FeaturewithRegion in class Featureregion - required parameterFeature.setRegion(Region)public NetworkLink withMetadata(Metadata metadata)
FeaturewithMetadata in class Featuremetadata - required parameterFeature.setMetadata(Metadata)public NetworkLink withExtendedData(ExtendedData extendedData)
FeaturewithExtendedData in class FeatureextendedData - required parameterFeature.setExtendedData(ExtendedData)public NetworkLink withFeatureSimpleExtension(List<Object> featureSimpleExtension)
FeaturewithFeatureSimpleExtension in class FeaturefeatureSimpleExtension - required parameter#setFeatureSimpleExtension(Listpublic NetworkLink withFeatureObjectExtension(List<AbstractObject> featureObjectExtension)
FeaturewithFeatureObjectExtension in class FeaturefeatureObjectExtension - required parameter#setFeatureObjectExtension(List) public NetworkLink clone()
Copyright © 2014 Micromata GmbH. All rights reserved.