public static class MarkerOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MarkerOptions.Builder |
alt(String alt)
Text for the alt attribute of the icon image (useful for accessibility).
|
MarkerOptions.Builder |
attribution(String attribution) |
MarkerOptions |
build()
Builds the MarkerOptions new instace
|
MarkerOptions.Builder |
clickable(Boolean clickable)
If false, the marker will not emit mouse events and will act as a part of the underlying map.
|
MarkerOptions.Builder |
draggable(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 |
interactive(Boolean interactive) |
MarkerOptions.Builder |
keyboard(Boolean keyboard)
Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
|
MarkerOptions.Builder |
opacity(Double opacity)
The opacity of the marker.
|
MarkerOptions.Builder |
pane(String pane) |
MarkerOptions.Builder |
riseOffset(Double riseOffset)
The z-index offset used for the riseOnHover feature.
|
MarkerOptions.Builder |
riseOnHover(Boolean riseOnHover)
If true, the marker will get on top of others when you hover the mouse over it.
|
MarkerOptions.Builder |
title(String title)
Text for the browser tooltip that appear on marker hover (no tooltip by default).
|
MarkerOptions.Builder |
zIndexOffset(Double 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(Boolean clickable)
clickable
- the clickablepublic MarkerOptions.Builder draggable(Boolean draggable)
draggable
- the draggablepublic MarkerOptions.Builder keyboard(Boolean keyboard)
keyboard
- the keyboardpublic MarkerOptions.Builder title(String title)
title
- the titlepublic MarkerOptions.Builder alt(String alt)
alt
- the altpublic MarkerOptions.Builder zIndexOffset(Double zIndexOffset)
zIndexOffset
- the z index offsetpublic MarkerOptions.Builder opacity(Double opacity)
opacity
- the opacitypublic MarkerOptions.Builder riseOnHover(Boolean riseOnHover)
riseOnHover
- the rise on hoverpublic MarkerOptions.Builder riseOffset(Double riseOffset)
riseOffset
- the rise offsetpublic MarkerOptions.Builder pane(String pane)
public MarkerOptions.Builder attribution(String attribution)
public MarkerOptions.Builder interactive(Boolean interactive)
public MarkerOptions build()
Copyright © 2018 G-Widgets. All rights reserved.