public static class MarkerOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MarkerOptions.Builder |
alt(java.lang.String alt)
Text for the alt attribute of the icon image (useful for accessibility).
|
MarkerOptions |
build()
Builds the MarkerOptions new instace
|
MarkerOptions.Builder |
clickable(java.lang.Boolean clickable)
If false, the marker will not emit mouse events and will act as a part of the underlying map.
|
MarkerOptions.Builder |
draggable(java.lang.Boolean draggable)
Whether the marker is draggable with mouse/touch or not.
|
MarkerOptions.Builder |
icon(Icon icon)
Icon class to use for rendering the marker.
|
MarkerOptions.Builder |
keyboard(java.lang.Boolean keyboard)
Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
|
MarkerOptions.Builder |
opacity(java.lang.Number opacity)
The opacity of the marker.
|
MarkerOptions.Builder |
riseOffset(java.lang.Number riseOffset)
The z-index offset used for the riseOnHover feature.
|
MarkerOptions.Builder |
riseOnHover(java.lang.Boolean riseOnHover)
If true, the marker will get on top of others when you hover the mouse over it.
|
MarkerOptions.Builder |
title(java.lang.String title)
Text for the browser tooltip that appear on marker hover (no tooltip by default).
|
MarkerOptions.Builder |
zIndexOffset(java.lang.Number zIndexOffset)
By default, zIndex for the marker image is set automatically based on its latitude.
|
public MarkerOptions.Builder icon(Icon icon)
icon
- the iconpublic MarkerOptions.Builder clickable(java.lang.Boolean clickable)
clickable
- the clickablepublic MarkerOptions.Builder draggable(java.lang.Boolean draggable)
draggable
- the draggablepublic MarkerOptions.Builder keyboard(java.lang.Boolean keyboard)
keyboard
- the keyboardpublic MarkerOptions.Builder title(java.lang.String title)
title
- the titlepublic MarkerOptions.Builder alt(java.lang.String alt)
alt
- the altpublic MarkerOptions.Builder zIndexOffset(java.lang.Number zIndexOffset)
zIndexOffset
- the z index offsetpublic MarkerOptions.Builder opacity(java.lang.Number opacity)
opacity
- the opacitypublic MarkerOptions.Builder riseOnHover(java.lang.Boolean riseOnHover)
riseOnHover
- the rise on hoverpublic MarkerOptions.Builder riseOffset(java.lang.Number riseOffset)
riseOffset
- the rise offsetpublic MarkerOptions build()