Class 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 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:
        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 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 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 interface GeoElement
        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 interface GeoElement
        Returns:
        the geometry of this geoelement