Builds
ConsumerMarkerOptions
instance.
Public Constructor Summary
Builder()
|
Public Method Summary
abstract ConsumerMarkerOptions |
build()
|
abstract ConsumerMarkerOptions.Builder |
setAlpha(float alpha)
Sets the alpha (opacity) for a marker.
|
abstract ConsumerMarkerOptions.Builder |
setAnchorU(float anchorU)
Sets the u-dimension of the anchor to be at a particular point in the marker
image.
|
abstract ConsumerMarkerOptions.Builder |
setAnchorV(float anchorV)
Sets the v-dimension of the anchor to be at a particular point in the marker
image.
|
abstract ConsumerMarkerOptions.Builder |
setIconResId(int iconResId)
Sets the icon resource id for a marker.
|
abstract ConsumerMarkerOptions.Builder |
setInfoWindowAnchorU(float infoWindowAnchorU)
Sets the horizontal distance, normalized to [0, 1], of the info window anchor
from the left edge.
|
abstract ConsumerMarkerOptions.Builder |
setInfoWindowAnchorV(float infoWindowAnchorV)
Sets the vertical distance, normalized to [0, 1], of the info window anchor
from the top edge.
|
abstract ConsumerMarkerOptions.Builder |
setIsDraggable(boolean isDraggable)
Sets the draggability of a marker.
|
abstract ConsumerMarkerOptions.Builder |
setIsFlat(boolean isFlat)
Sets whether this marker should be flat against the map or a billboard facing
the camera.
|
abstract ConsumerMarkerOptions.Builder |
setOnClickListener(GoogleMap.OnMarkerClickListener value)
|
abstract ConsumerMarkerOptions.Builder | |
abstract ConsumerMarkerOptions.Builder | |
abstract ConsumerMarkerOptions.Builder | |
abstract ConsumerMarkerOptions.Builder |
setVisible(boolean visible)
Sets the visibility setting for a marker.
|
abstract ConsumerMarkerOptions.Builder |
setZIndex(float zIndex)
Gets the z-index for a marker.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public abstract ConsumerMarkerOptions build ()
public abstract ConsumerMarkerOptions.Builder setAlpha (float alpha)
Sets the alpha (opacity) for a marker.
public abstract ConsumerMarkerOptions.Builder setAnchorU (float anchorU)
Sets the u-dimension of the anchor to be at a particular point in the marker image.
The anchor specifies the point in the icon image that is anchored to the marker's position on the Earth's surface.
The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner. The anchoring point in a W x H image is the nearest discrete grid point in a (W + 1) x (H + 1) grid, obtained by scaling the then rounding. For example, in a 4 x 2 image, the anchor point (0.7, 0.6) resolves to the grid point at (3, 1).
*-----+-----+-----+-----* | | | | | | | | | | +-----+-----+-----+-----+ | | | X | | (U, V) = (0.7, 0.6) | | | | | *-----+-----+-----+-----* *-----+-----+-----+-----* | | | | | | | | | | +-----+-----+-----X-----+ (X, Y) = (3, 1) | | | | | | | | | | *-----+-----+-----+-----*
public abstract ConsumerMarkerOptions.Builder setAnchorV (float anchorV)
Sets the v-dimension of the anchor to be at a particular point in the marker image.
The anchor specifies the point in the icon image that is anchored to the marker's position on the Earth's surface.
The anchor point is specified in the continuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image, and (1, 1) is the bottom-right corner. The anchoring point in a W x H image is the nearest discrete grid point in a (W + 1) x (H + 1) grid, obtained by scaling the then rounding. For example, in a 4 x 2 image, the anchor point (0.7, 0.6) resolves to the grid point at (3, 1).
*-----+-----+-----+-----* | | | | | | | | | | +-----+-----+-----+-----+ | | | X | | (U, V) = (0.7, 0.6) | | | | | *-----+-----+-----+-----* *-----+-----+-----+-----* | | | | | | | | | | +-----+-----+-----X-----+ (X, Y) = (3, 1) | | | | | | | | | | *-----+-----+-----+-----*
public abstract ConsumerMarkerOptions.Builder setIconResId (int iconResId)
Sets the icon resource id for a marker.
public abstract ConsumerMarkerOptions.Builder setInfoWindowAnchorU (float infoWindowAnchorU)
Sets the horizontal distance, normalized to [0, 1], of the info window anchor from the left edge.
public abstract ConsumerMarkerOptions.Builder setInfoWindowAnchorV (float infoWindowAnchorV)
Sets the vertical distance, normalized to [0, 1], of the info window anchor from the top edge.
public abstract ConsumerMarkerOptions.Builder setIsDraggable (boolean isDraggable)
Sets the draggability of a marker. Note that this field will be ignored for markers of type MarkerType.TripVehicleMarker.
public abstract ConsumerMarkerOptions.Builder setIsFlat (boolean isFlat)
Sets whether this marker should be flat against the map or a billboard facing the camera. If the marker is flat against the map, it will always be drawn facing the camera and will rotate and tilt with the camera. If the marker is a billboard, it will remain stuck to the map as the camera rotates and tilts. Both flat and billboard markers remain the same size as the camera zooms.
public abstract ConsumerMarkerOptions.Builder setOnClickListener (GoogleMap.OnMarkerClickListener value)
public abstract ConsumerMarkerOptions.Builder setSnippet (String snippet)
Sets the snippet for a marker.
public abstract ConsumerMarkerOptions.Builder setTag (Object tag)
Sets the tag for a marker.
public abstract ConsumerMarkerOptions.Builder setTitle (String title)
Sets the title for a marker.
public abstract ConsumerMarkerOptions.Builder setVisible (boolean visible)
Sets the visibility setting for a marker.
public abstract ConsumerMarkerOptions.Builder setZIndex (float zIndex)
Gets the z-index for a marker.