java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlNode
com.esri.arcgisruntime.ogc.kml.KmlPlacemark
- All Implemented Interfaces:
GeoElement
A KML Placemark is a KML node associated with geometries.
- Since:
- 100.4.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
balloonBackgroundColor, uxIconColor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The list of KML graphic types.Nested classes/interfaces inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
KmlNode.RefreshStatus
-
Constructor Summary
ConstructorDescriptionKmlPlacemark
(KmlGeometry kmlGeometry) Creates a KML placemark from the specified KML geometry. -
Method Summary
Modifier and TypeMethodDescriptionGets the attributes of the GeoElement as a collection of name/value pairs.Gets an modifiable list of KmlGeometry objects associated with the placemark.Gets the geometry which defines the shape and location of the GeoElement.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, balloonBackgroundColorProperty, 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, uxIconColorProperty
-
Constructor Details
-
KmlPlacemark
Creates a KML placemark from the specified KML geometry.- Parameters:
kmlGeometry
- geometry to use for the new placemark- Throws:
IllegalArgumentException
- if kmlGeometry is null- Since:
- 100.6.0
-
-
Method Details
-
getGraphicType
Returns the type of the graphic in the KML Placemark.- Returns:
- a GraphicType
- Since:
- 100.4.0
-
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
Description copied from interface:GeoElement
Gets the attributes of the GeoElement as a collection of 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:
- the attributes of the GeoElement as a collection of name/value pairs
-
getGeometry
Description copied from interface:GeoElement
Gets the geometry which defines the shape and location of the GeoElement.- Specified by:
getGeometry
in interfaceGeoElement
- Returns:
- the geometry defines the shape and location of the GeoElement, or null if none
-
setGeometry
Sets the geometry. This method is not implemented yet.- Specified by:
setGeometry
in interfaceGeoElement
- Parameters:
geometry
- the geometry defines the shape and location of the GeoElement- Throws:
UnsupportedOperationException
- always- Since:
- 100.4.0
-