Because is derived from , it can contain one of the two
elements derived from —either or . The Camera (or
LookAt) specifies a viewpoint and a viewing direction (also referred to as a view
vector). The PhotoOverlay is positioned in relation to the viewpoint. Specifically,
the plane of a 2D rectangular image is orthogonal (at right angles to) the view
vector. The normal of this plane—that is, its front, which is the part with the
photo—is oriented toward the viewpoint.
For more information, see the "Topics in KML" page on PhotoOverlay.
The element allows you to geographically locate a photograph on the
Earth and to specify viewing parameters for this PhotoOverlay. The PhotoOverlay
can be a simple 2D rectangle, a partial or full cylinder, or a sphere (for spherical
panoramas). The overlay is placed at the specified location and oriented toward
the viewpoint.
The URL for the PhotoOverlay image is specified in the tag, which is inherited
from . The tag must contain an element that specifies the
image file to use for the PhotoOverlay. In the case of a very large image, the
is a special URL that indexes into a pyramid of images of varying resolutions (see
ImagePyramid).
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
rotation
protected double rotation
Adjusts how the photo is placed inside the field of view. This element is useful
if your photo has been rotated and deviates slightly from a desired horizontal view.
Indicates the angle of rotation of the parent object. A value of 0 means no rotation.
The value is an angle in degrees counterclockwise starting from north. Use ±180
to indicate the rotation of the parent object from 0. The center of the ,
if not (.5,.5), is specified in .
viewVolume
protected ViewVolume viewVolume
Defines how much of the current scene is visible. Specifying the field of view is
analogous to specifying the lens opening in a physical camera. A small field of
view, like a telephoto lens, focuses on a small part of the scene. A large field
of view, like a wide-angle lens, focuses on a large part of the scene.
imagePyramid
protected ImagePyramid imagePyramid
For very large images, you'll need to construct an image pyramid, which is a hierarchical
set of images, each of which is an increasingly lower resolution version of the
original image. Each image in the pyramid is subdivided into tiles, so that only
the portions in view need to be loaded. Google Earth calculates the current viewpoint
and loads the tiles that are appropriate to the user's distance from the image.
As the viewpoint moves closer to the PhotoOverlay, Google Earth loads higher resolution
tiles. Since all the pixels in the original image can't be viewed on the screen
at once, this preprocessing allows Google Earth to achieve maximum performance because
it loads only the portions of the image that are in view, and only the pixel details
that can be discerned by the user at the current viewpoint.
When you specify an image pyramid, you also modify the in the element
to include specifications for which tiles to load.
point
protected Point point
A geographic location defined by longitude, latitude, and (optional) altitude. When
a Point is contained by a Placemark, the point itself determines the position of
the Placemark's name and icon. When a Point is extruded, it is connected to the
ground with a line. This "tether" uses the current LineStyle.
The element acts as a inside a element. It draws an
icon to mark the position of the PhotoOverlay. The icon drawn is specified by the
and fields, just as it is for .
Syntax:
<Point id="ID">
<!-- specific to Point -->
<extrude>0</extrude> <!-- boolean -->
<altitudeMode>clampToGround</altitudeMode>
<!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute -->
<!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor -->
<coordinates>... </coordinates> <!-- lon,lat[,alt] -->
</Point>
Extends:
shape
protected Shape shape
Shape
rectangle, cylinder, sphere
See Also:
See
photoOverlaySimpleExtension
protected java.util.List<java.lang.Object> photoOverlaySimpleExtension
photoOverlayObjectExtension
protected java.util.List<AbstractObject > photoOverlayObjectExtension
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 > -->
PhotoOverlay
public PhotoOverlay ()
getRotation
public double getRotation ()
Returns: possible object is
Double
See Also: rotation
setRotation
public void setRotation (double value)
Parameters: value
- allowed object is
Double
See Also: rotation
getViewVolume
public ViewVolume getViewVolume ()
Returns: possible object is
ViewVolume
See Also: viewVolume
setViewVolume
public void setViewVolume (ViewVolume value)
Parameters: value
- allowed object is
ViewVolume
See Also: viewVolume
getImagePyramid
public ImagePyramid getImagePyramid ()
Returns: possible object is
ImagePyramid
See Also: imagePyramid
setImagePyramid
public void setImagePyramid (ImagePyramid value)
Parameters: value
- allowed object is
ImagePyramid
See Also: imagePyramid
getPoint
public Point getPoint ()
Returns: possible object is
Point
See Also: point
setPoint
public void setPoint (Point value)
Parameters: value
- allowed object is
Point
See Also: point
getShape
public Shape getShape ()
Returns: possible object is
Shape
See Also: shape
setShape
public void setShape (Shape value)
Parameters: value
- allowed object is
Shape
See Also: shape
getPhotoOverlaySimpleExtension
public java.util.List<java.lang.Object> getPhotoOverlaySimpleExtension ()
See Also: photoOverlaySimpleExtension
getPhotoOverlayObjectExtension
public java.util.List<AbstractObject > getPhotoOverlayObjectExtension ()
See Also: photoOverlayObjectExtension
hashCode
public int hashCode ()
Overrides: hashCode
in class Overlay
equals
public boolean equals (java.lang.Object obj)
Overrides: equals
in class Overlay
createAndSetViewVolume
public ViewVolume createAndSetViewVolume ()
Creates a new instance of ViewVolume
and set it to viewVolume.
This method is a short version for:
ViewVolume viewVolume = new ViewVolume();
this.setViewVolume(viewVolume);
createAndSetImagePyramid
public ImagePyramid createAndSetImagePyramid ()
Creates a new instance of ImagePyramid
and set it to imagePyramid.
This method is a short version for:
ImagePyramid imagePyramid = new ImagePyramid();
this.setImagePyramid(imagePyramid);
createAndSetPoint
public Point createAndSetPoint ()
Creates a new instance of Point
and set it to point.
This method is a short version for:
Point point = new Point();
this.setPoint(point);
setPhotoOverlaySimpleExtension
public void setPhotoOverlaySimpleExtension (java.util.List<java.lang.Object> photoOverlaySimpleExtension)
Parameters: photoOverlaySimpleExtension
- See Also: photoOverlaySimpleExtension
addToPhotoOverlaySimpleExtension
public PhotoOverlay addToPhotoOverlaySimpleExtension (java.lang.Object photoOverlaySimpleExtension)
add a value to the photoOverlaySimpleExtension property collection
Parameters: photoOverlaySimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setPhotoOverlayObjectExtension
public void setPhotoOverlayObjectExtension (java.util.List<AbstractObject > photoOverlayObjectExtension)
Parameters: photoOverlayObjectExtension
- See Also: photoOverlayObjectExtension
addToPhotoOverlayObjectExtension
public PhotoOverlay addToPhotoOverlayObjectExtension (AbstractObject photoOverlayObjectExtension)
add a value to the photoOverlayObjectExtension property collection
Parameters: photoOverlayObjectExtension
- 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 Overlay
See Also: objectSimpleExtension
addToObjectSimpleExtension
public PhotoOverlay addToObjectSimpleExtension (java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection
Overrides: addToObjectSimpleExtension
in class Overlay
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 Overlay
See Also: styleSelector
addToStyleSelector
public PhotoOverlay addToStyleSelector (StyleSelector styleSelector)
Description copied from class: Feature
add a value to the styleSelector property collection
Overrides: addToStyleSelector
in class Overlay
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 Overlay
See Also: featureSimpleExtension
addToFeatureSimpleExtension
public PhotoOverlay addToFeatureSimpleExtension (java.lang.Object featureSimpleExtension)
Description copied from class: Feature
add a value to the featureSimpleExtension property collection
Overrides: addToFeatureSimpleExtension
in class Overlay
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 Overlay
See Also: featureObjectExtension
addToFeatureObjectExtension
public PhotoOverlay addToFeatureObjectExtension (AbstractObject featureObjectExtension)
Description copied from class: Feature
add a value to the featureObjectExtension property collection
Overrides: addToFeatureObjectExtension
in class Overlay
Parameters: featureObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
setOverlaySimpleExtension
public void setOverlaySimpleExtension (java.util.List<java.lang.Object> overlaySimpleExtension)
Overrides: setOverlaySimpleExtension
in class Overlay
See Also: overlaySimpleExtension
addToOverlaySimpleExtension
public PhotoOverlay addToOverlaySimpleExtension (java.lang.Object overlaySimpleExtension)
Description copied from class: Overlay
add a value to the overlaySimpleExtension property collection
Overrides: addToOverlaySimpleExtension
in class Overlay
Parameters: overlaySimpleExtension
- Objects of the following type are allowed in the list: Object
Returns: true (as general contract of Collection.add ).
setOverlayObjectExtension
public void setOverlayObjectExtension (java.util.List<AbstractObject > overlayObjectExtension)
Overrides: setOverlayObjectExtension
in class Overlay
See Also: overlayObjectExtension
addToOverlayObjectExtension
public PhotoOverlay addToOverlayObjectExtension (AbstractObject overlayObjectExtension)
Description copied from class: Overlay
add a value to the overlayObjectExtension property collection
Overrides: addToOverlayObjectExtension
in class Overlay
Parameters: overlayObjectExtension
- Objects of the following type are allowed in the list: AbstractObject
Returns: true (as general contract of Collection.add ).
withRotation
public PhotoOverlay withRotation (double rotation)
fluent setter
Parameters: rotation
- required parameterSee Also: setRotation(double)
withViewVolume
public PhotoOverlay withViewVolume (ViewVolume viewVolume)
fluent setter
Parameters: viewVolume
- required parameterSee Also: setViewVolume(ViewVolume)
withImagePyramid
public PhotoOverlay withImagePyramid (ImagePyramid imagePyramid)
fluent setter
Parameters: imagePyramid
- required parameterSee Also: setImagePyramid(ImagePyramid)
withPoint
public PhotoOverlay withPoint (Point point)
fluent setter
Parameters: point
- required parameterSee Also: setPoint(Point)
withShape
public PhotoOverlay withShape (Shape shape)
fluent setter
Parameters: shape
- required parameterSee Also: setShape(Shape)
withPhotoOverlaySimpleExtension
public PhotoOverlay withPhotoOverlaySimpleExtension (java.util.List<java.lang.Object> photoOverlaySimpleExtension)
fluent setter
Parameters: photoOverlaySimpleExtension
- required parameterSee Also: #setPhotoOverlaySimpleExtension(List)
withPhotoOverlayObjectExtension
public PhotoOverlay withPhotoOverlayObjectExtension (java.util.List<AbstractObject > photoOverlayObjectExtension)
fluent setter
Parameters: photoOverlayObjectExtension
- required parameterSee Also: #setPhotoOverlayObjectExtension(List)
withObjectSimpleExtension
public PhotoOverlay withObjectSimpleExtension (java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter
Overrides: withObjectSimpleExtension
in class Overlay
Parameters: objectSimpleExtension
- required parameterSee Also: #setObjectSimpleExtension(List)
withId
public PhotoOverlay withId (java.lang.String id)
Description copied from class: AbstractObject
fluent setter
Overrides: withId
in class Overlay
Parameters: id
- required parameterSee Also: AbstractObject.setId(String)
withTargetId
public PhotoOverlay withTargetId (java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter
Overrides: withTargetId
in class Overlay
Parameters: targetId
- required parameterSee Also: AbstractObject.setTargetId(String)
withName
public PhotoOverlay withName (java.lang.String name)
Description copied from class: Feature
fluent setter
Overrides: withName
in class Overlay
Parameters: name
- required parameterSee Also: Feature.setName(String)
withVisibility
public PhotoOverlay withVisibility (java.lang.Boolean visibility)
Description copied from class: Feature
fluent setter
Overrides: withVisibility
in class Overlay
Parameters: visibility
- required parameterSee Also: Feature.setVisibility(Boolean)
withOpen
public PhotoOverlay withOpen (java.lang.Boolean open)
Description copied from class: Feature
fluent setter
Overrides: withOpen
in class Overlay
Parameters: open
- required parameterSee Also: Feature.setOpen(Boolean)
withAtomAuthor
public PhotoOverlay withAtomAuthor (Author atomAuthor)
Description copied from class: Feature
fluent setter
Overrides: withAtomAuthor
in class Overlay
Parameters: atomAuthor
- required parameterSee Also: Feature.setAtomAuthor(Author)
withAtomLink
public PhotoOverlay withAtomLink (Link atomLink)
Description copied from class: Feature
fluent setter
Overrides: withAtomLink
in class Overlay
Parameters: atomLink
- required parameterSee Also: Feature.setAtomLink(Link)
withAddress
public PhotoOverlay withAddress (java.lang.String address)
Description copied from class: Feature
fluent setter
Overrides: withAddress
in class Overlay
Parameters: address
- required parameterSee Also: Feature.setAddress(String)
withXalAddressDetails
public PhotoOverlay withXalAddressDetails (AddressDetails xalAddressDetails)
Description copied from class: Feature
fluent setter
Overrides: withXalAddressDetails
in class Overlay
Parameters: xalAddressDetails
- required parameterSee Also: Feature.setXalAddressDetails(AddressDetails)
withPhoneNumber
public PhotoOverlay withPhoneNumber (java.lang.String phoneNumber)
Description copied from class: Feature
fluent setter
Overrides: withPhoneNumber
in class Overlay
Parameters: phoneNumber
- required parameterSee Also: Feature.setPhoneNumber(String)
withSnippet
public PhotoOverlay withSnippet (Snippet snippet)
Description copied from class: Feature
fluent setter
Overrides: withSnippet
in class Overlay
Parameters: snippet
- required parameterSee Also: Feature.setSnippet(Snippet)
withSnippetd
public PhotoOverlay withSnippetd (java.lang.String snippetd)
Description copied from class: Feature
fluent setter
Overrides: withSnippetd
in class Overlay
Parameters: snippetd
- required parameterSee Also: Feature.setSnippetd(String)
withDescription
public PhotoOverlay withDescription (java.lang.String description)
Description copied from class: Feature
fluent setter
Overrides: withDescription
in class Overlay
Parameters: description
- required parameterSee Also: Feature.setDescription(String)
withAbstractView
public PhotoOverlay withAbstractView (AbstractView abstractView)
Description copied from class: Feature
fluent setter
Overrides: withAbstractView
in class Overlay
Parameters: abstractView
- required parameterSee Also: Feature.setAbstractView(AbstractView)
withTimePrimitive
public PhotoOverlay withTimePrimitive (TimePrimitive timePrimitive)
Description copied from class: Feature
fluent setter
Overrides: withTimePrimitive
in class Overlay
Parameters: timePrimitive
- required parameterSee Also: Feature.setTimePrimitive(TimePrimitive)
withStyleUrl
public PhotoOverlay withStyleUrl (java.lang.String styleUrl)
Description copied from class: Feature
fluent setter
Overrides: withStyleUrl
in class Overlay
Parameters: styleUrl
- required parameterSee Also: Feature.setStyleUrl(String)
withStyleSelector
public PhotoOverlay withStyleSelector (java.util.List<StyleSelector > styleSelector)
Description copied from class: Feature
fluent setter
Overrides: withStyleSelector
in class Overlay
Parameters: styleSelector
- required parameterSee Also: #setStyleSelector(List)
withRegion
public PhotoOverlay withRegion (Region region)
Description copied from class: Feature
fluent setter
Overrides: withRegion
in class Overlay
Parameters: region
- required parameterSee Also: Feature.setRegion(Region)
withMetadata
public PhotoOverlay withMetadata (Metadata metadata)
Description copied from class: Feature
fluent setter
Overrides: withMetadata
in class Overlay
Parameters: metadata
- required parameterSee Also: Feature.setMetadata(Metadata)
withExtendedData
public PhotoOverlay withExtendedData (ExtendedData extendedData)
Description copied from class: Feature
fluent setter
Overrides: withExtendedData
in class Overlay
Parameters: extendedData
- required parameterSee Also: Feature.setExtendedData(ExtendedData)
withFeatureSimpleExtension
public PhotoOverlay withFeatureSimpleExtension (java.util.List<java.lang.Object> featureSimpleExtension)
Description copied from class: Feature
fluent setter
Overrides: withFeatureSimpleExtension
in class Overlay
Parameters: featureSimpleExtension
- required parameterSee Also: #setFeatureSimpleExtension(List)
withFeatureObjectExtension
public PhotoOverlay withFeatureObjectExtension (java.util.List<AbstractObject > featureObjectExtension)
Description copied from class: Feature
fluent setter
Overrides: withFeatureObjectExtension
in class Overlay
Parameters: featureObjectExtension
- required parameterSee Also: #setFeatureObjectExtension(List)
withColor
public PhotoOverlay withColor (java.lang.String color)
Description copied from class: Overlay
fluent setter
Overrides: withColor
in class Overlay
Parameters: color
- required parameterSee Also: Overlay.setColor(String)
withDrawOrder
public PhotoOverlay withDrawOrder (int drawOrder)
Description copied from class: Overlay
fluent setter
Overrides: withDrawOrder
in class Overlay
Parameters: drawOrder
- required parameterSee Also: Overlay.setDrawOrder(int)
withIcon
public PhotoOverlay withIcon (Icon icon)
Description copied from class: Overlay
fluent setter
Overrides: withIcon
in class Overlay
Parameters: icon
- required parameterSee Also: Overlay.setIcon(Icon)
withOverlaySimpleExtension
public PhotoOverlay withOverlaySimpleExtension (java.util.List<java.lang.Object> overlaySimpleExtension)
Description copied from class: Overlay
fluent setter
Overrides: withOverlaySimpleExtension
in class Overlay
Parameters: overlaySimpleExtension
- required parameterSee Also: #setOverlaySimpleExtension(List)
withOverlayObjectExtension
public PhotoOverlay withOverlayObjectExtension (java.util.List<AbstractObject > overlayObjectExtension)
Description copied from class: Overlay
fluent setter
Overrides: withOverlayObjectExtension
in class Overlay
Parameters: overlayObjectExtension
- required parameterSee Also: #setOverlayObjectExtension(List)
clone
public PhotoOverlay clone ()
Overrides: clone
in class Overlay