Class PointStyle
-
- All Implemented Interfaces:
-
com.google.maps.android.data.renderer.model.Style
public final class PointStyle implements Style
A data class representing the style for a PointGeometry.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integercolorprivate final StringiconUrlprivate final Floatheadingprivate final FloatanchorUprivate final FloatanchorVprivate final Floatscaleprivate final FloatzIndexprivate final Stringtitleprivate final Stringsnippetprivate final Booleandraggableprivate final Booleanflatprivate final Booleanvisibleprivate final FloatinfoWindowAnchorUprivate final FloatinfoWindowAnchorV
-
Method Summary
Modifier and Type Method Description final IntegergetColor()The color of the point, as an integer (e.g., ARGB) or hex string. final StringgetIconUrl()The URL or resource identifier for a custom marker icon. final FloatgetHeading()The heading of the icon in degrees clockwise from north. final FloatgetAnchorU()The U-coordinate of the icon's anchor point, as a ratio of the icon's width (0.0 to 1.0). final FloatgetAnchorV()The V-coordinate of the icon's anchor point, as a ratio of the icon's height (0.0 to 1.0). final FloatgetScale()The scale factor for the icon. final FloatgetZIndex()The z-index of the marker. final StringgetTitle()Optional title override for the marker. final StringgetSnippet()Optional snippet override for the marker. final BooleangetDraggable()Whether the marker is draggable. final BooleangetFlat()Whether the marker should be rendered flat against the map. final BooleangetVisible()Whether the marker is visible. final FloatgetInfoWindowAnchorU()The U-coordinate of the info window anchor point. final FloatgetInfoWindowAnchorV()The V-coordinate of the info window anchor point. -
-
Method Detail
-
getColor
final Integer getColor()
The color of the point, as an integer (e.g., ARGB) or hex string. Defaults to black.
-
getIconUrl
final String getIconUrl()
The URL or resource identifier for a custom marker icon. Optional.
-
getHeading
final Float getHeading()
The heading of the icon in degrees clockwise from north. Optional.
-
getAnchorU
final Float getAnchorU()
The U-coordinate of the icon's anchor point, as a ratio of the icon's width (0.0 to 1.0). Defaults to 0.5 (center).
-
getAnchorV
final Float getAnchorV()
The V-coordinate of the icon's anchor point, as a ratio of the icon's height (0.0 to 1.0). Defaults to 1.0 (bottom).
-
getZIndex
final Float getZIndex()
The z-index of the marker. Higher values are drawn above lower values. Defaults to 0.0.
-
getSnippet
final String getSnippet()
Optional snippet override for the marker.
-
getDraggable
final Boolean getDraggable()
Whether the marker is draggable. Defaults to false.
-
getFlat
final Boolean getFlat()
Whether the marker should be rendered flat against the map. Defaults to false.
-
getVisible
final Boolean getVisible()
Whether the marker is visible. Defaults to true.
-
getInfoWindowAnchorU
final Float getInfoWindowAnchorU()
The U-coordinate of the info window anchor point. Defaults to 0.5.
-
getInfoWindowAnchorV
final Float getInfoWindowAnchorV()
The V-coordinate of the info window anchor point. Defaults to 0.0.
-
-
-
-