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
  • Constructor Details

    • KmlPlacemark

      public KmlPlacemark(KmlGeometry kmlGeometry)
      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

      public KmlPlacemark.GraphicType getGraphicType()
      Returns the type of the graphic in the KML Placemark.
      Returns:
      a GraphicType
      Since:
      100.4.0
    • getGeometries

      public 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 Map<String,Object> 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 interface GeoElement
      Returns:
      the attributes of the GeoElement as a collection of name/value pairs
    • getGeometry

      public Geometry getGeometry()
      Description copied from interface: GeoElement
      Gets the geometry which defines the shape and location of the GeoElement.
      Specified by:
      getGeometry in interface GeoElement
      Returns:
      the geometry defines the shape and location of the GeoElement, or null if none
    • setGeometry

      public void setGeometry(Geometry geometry)
      Sets the geometry. This method is not implemented yet.
      Specified by:
      setGeometry in interface GeoElement
      Parameters:
      geometry - the geometry defines the shape and location of the GeoElement
      Throws:
      UnsupportedOperationException - always
      Since:
      100.4.0