Package com.esri.arcgisruntime.ogc.kml
Class KmlPlacemark
- java.lang.Object
-
- com.esri.arcgisruntime.ogc.kml.KmlNode
-
- com.esri.arcgisruntime.ogc.kml.KmlPlacemark
-
- All Implemented Interfaces:
GeoElement
public final class KmlPlacemark extends KmlNode implements GeoElement
A KML Placemark is a KML node associated with geometries.- Since:
- 100.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KmlPlacemark.GraphicType
The list of KML graphic types.-
Nested classes/interfaces inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
KmlNode.RefreshStatus
-
-
Constructor Summary
Constructors Constructor Description KmlPlacemark(KmlGeometry kmlGeometry)
Creates a KML placemark from the specified KML geometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getAttributes()
Gets a java.util.Map of all the available attributes as name value pairs.java.util.List<KmlGeometry>
getGeometries()
Gets an modifiable list of KmlGeometry objects associated with the placemark.Geometry
getGeometry()
Gets the geometry of this geoelement.KmlPlacemark.GraphicType
getGraphicType()
Returns the type of the graphic in the KML Placemark.void
setGeometry(Geometry geometry)
Sets the geometry.-
Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
addIconUpdatedEventListener, addRefreshStatusChangedListener, getAddress, getBalloonBackgroundColor, getBalloonContent, getDescription, getExtent, getHighlightStyle, getId, getName, getParentNode, getRefreshError, getRefreshStatus, getSnippet, getSnippetMaxLines, getStyle, getTimeExtent, getUxIcon, getUxIconColor, getUxIconId, getViewpoint, isHighlighted, isVisible, removeIconUpdatedEventListener, removeRefreshStatusChangedListener, saveAsAsync, setAddress, setDescription, setHighlighted, setHighlightStyle, setId, setName, setSnippet, setSnippetMaxLines, setStyle, setTimeExtent, setViewpoint, setVisible
-
-
-
-
Constructor Detail
-
KmlPlacemark
public KmlPlacemark(KmlGeometry kmlGeometry)
Creates a KML placemark from the specified KML geometry.- Parameters:
kmlGeometry
- geometry to use for the new placemark- Throws:
java.lang.IllegalArgumentException
- if kmlGeometry is null- Since:
- 100.6.0
-
-
Method Detail
-
getGraphicType
public KmlPlacemark.GraphicType getGraphicType()
Returns the type of the graphic in the KML Placemark.- Returns:
- a GraphicType
- Since:
- 100.4.0
-
getGeometries
public java.util.List<KmlGeometry> getGeometries()
Gets an modifiable list of KmlGeometry objects associated with the placemark.The list will contain one geometry for non multi-geometry.
- Returns:
- a modifiable list of KmlGeometry objects
- Since:
- 100.4.0
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Description copied from interface:GeoElement
Gets a java.util.Map of all the available attributes as name value pairs.Attribute values are returned as Object instances, but the underlying value type is based on the
Field.Type
.- Specified by:
getAttributes
in interfaceGeoElement
- Returns:
- all the available attributes as name value pairs.
-
getGeometry
public Geometry getGeometry()
Description copied from interface:GeoElement
Gets the geometry of this geoelement.- Specified by:
getGeometry
in interfaceGeoElement
- Returns:
- the geometry of this geoelement
-
setGeometry
public void setGeometry(Geometry geometry)
Sets the geometry. This method is not implemented yet.- Specified by:
setGeometry
in interfaceGeoElement
- Parameters:
geometry
- the geometry to set- Throws:
java.lang.UnsupportedOperationException
- always- Since:
- 100.4.0
-
-