Package com.google.maps.android.data.kml
Class KmlPlacemark
- java.lang.Object
-
- java.util.Observable
-
- com.google.maps.android.data.Feature
-
- com.google.maps.android.data.kml.KmlPlacemark
-
public class KmlPlacemark extends Feature
Represents a placemark which is either aKmlPoint
,KmlLineString
,KmlPolygon
or aKmlMultiGeometry
. Stores the properties and styles of the place.
-
-
Constructor Summary
Constructors Constructor Description KmlPlacemark(Geometry geometry, java.lang.String style, KmlStyle inlineStyle, java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new KmlPlacemark object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KmlStyle
getInlineStyle()
Gets the inline style that was foundcom.google.android.gms.maps.model.MarkerOptions
getMarkerOptions()
Gets a MarkerOptioncom.google.android.gms.maps.model.PolygonOptions
getPolygonOptions()
Gets a PolygonOptioncom.google.android.gms.maps.model.PolylineOptions
getPolylineOptions()
Gets a PolylineOptionjava.lang.String
getStyleId()
Gets the style id associated with the basic_placemarkjava.lang.String
toString()
-
Methods inherited from class com.google.maps.android.data.Feature
getGeometry, getId, getProperties, getProperty, getPropertyKeys, hasGeometry, hasProperties, hasProperty
-
-
-
-
Constructor Detail
-
KmlPlacemark
public KmlPlacemark(Geometry geometry, java.lang.String style, KmlStyle inlineStyle, java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new KmlPlacemark object- Parameters:
geometry
- geometry object to storestyle
- style id to storeproperties
- properties hashmap to store
-
-
Method Detail
-
getStyleId
public java.lang.String getStyleId()
Gets the style id associated with the basic_placemark- Returns:
- style id
-
getInlineStyle
public KmlStyle getInlineStyle()
Gets the inline style that was found- Returns:
- InlineStyle or null if not found
-
getPolygonOptions
public com.google.android.gms.maps.model.PolygonOptions getPolygonOptions()
Gets a PolygonOption- Returns:
- new PolygonOptions
-
getMarkerOptions
public com.google.android.gms.maps.model.MarkerOptions getMarkerOptions()
Gets a MarkerOption- Returns:
- A new MarkerOption
-
getPolylineOptions
public com.google.android.gms.maps.model.PolylineOptions getPolylineOptions()
Gets a PolylineOption- Returns:
- new PolylineOptions
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-