MarkerStyleOptions

public abstract class MarkerStyleOptions extends Object

Options available for customizing a marker managed by the ConsumerMapFragment.

Nested Class Summary

class MarkerStyleOptions.Builder Builder for MarkerStyleOptions

Constant Summary

float DEFAULT_ANCHOR_U Default horizontal anchor distance.
float DEFAULT_ANCHOR_V Default vertical anchor distance.
boolean DEFAULT_FLAT Defaults to billboard facing camera.
boolean DEFAULT_VISIBLE Default visibility of marker.
float DEFAULT_Z_INDEX Default z axis distance.

Public Constructor Summary

Public Method Summary

static MarkerStyleOptions.Builder
abstract float
getAnchorU()
Horizontal distance, normalized to [0,1] of the anchor from the left edge.
abstract float
getAnchorV()
Vertical distance, normalized to [0,1] of the anchor from the top edge.
abstract BitmapDescriptor
getIcon()
The custom icon for the marker.
abstract boolean
getIsFlat()
Returns whether the map display is flat or a billboard facing the camera.
abstract boolean
getIsVisible()
Returns whether the polyline is visible.
abstract float
getZIndex()
The Z axis distance of the element, normalized to [0,1].
abstract MarkerStyleOptions.Builder

Inherited Method Summary

Constants

public static final float DEFAULT_ANCHOR_U

Default horizontal anchor distance.

Constant Value: 0.5

public static final float DEFAULT_ANCHOR_V

Default vertical anchor distance.

Constant Value: 0.5

public static final boolean DEFAULT_FLAT

Defaults to billboard facing camera.

Constant Value: false

public static final boolean DEFAULT_VISIBLE

Default visibility of marker.

Constant Value: true

public static final float DEFAULT_Z_INDEX

Default z axis distance.

Constant Value: 0.0

Public Constructors

public MarkerStyleOptions ()

Public Methods

public static MarkerStyleOptions.Builder builder ()

public abstract float getAnchorU ()

Horizontal distance, normalized to [0,1] of the anchor from the left edge.

public abstract float getAnchorV ()

Vertical distance, normalized to [0,1] of the anchor from the top edge.

public abstract BitmapDescriptor getIcon ()

The custom icon for the marker. If the icon is set to null, Google Maps displays the red drop pin.

public abstract boolean getIsFlat ()

Returns whether the map display is flat or a billboard facing the camera.

public abstract boolean getIsVisible ()

Returns whether the polyline is visible.

public abstract float getZIndex ()

The Z axis distance of the element, normalized to [0,1]. The z-index specifies the stack order.

public abstract MarkerStyleOptions.Builder toBuilder ()