java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.MarkerOptions |
An object for defining the initial options for a Marker
object. Use
this to define all the properties of a Marker
before calling the
addMarker(MarkerOptions)
method to add the Marker
to the map.
Modifying MarkerOptions
after the Marker
has been added to
the map has no effect on the appearance of the Marker
.
Note that MarkerOptions
methods do not need to be called on the main
thread.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
MarkerOptions object with default values. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the alpha (opacity) to use for the new
Marker . | |||||||||||
Sets the anchor point to use for the new
Marker 's image onto the
marker's position on the surface of the map. | |||||||||||
Draggable markers are not supported in the Amazon Maps API.
| |||||||||||
Flat markers are not supported in the Amazon Maps API.
| |||||||||||
Gets the alpha (opacity) to use for the new
Marker . | |||||||||||
Gets the U coordinate to use for the new
Marker 's anchor measured
from the left edge. | |||||||||||
Gets the V coordinate to use for the new
Marker 's anchor measured
from the top edge. | |||||||||||
Gets the custom icon that was set for the new
Marker . | |||||||||||
Gets the U coordinate to use for the info window's anchor, measured from
the left edge.
| |||||||||||
Gets the V coordinate to use for the info window's anchor, measured from
the top edge.
| |||||||||||
Gets the position to use for the new
Marker . | |||||||||||
Gets the rotation to use for the new
Marker . | |||||||||||
Gets the snippet to use for the new
Marker . | |||||||||||
Gets the title to use for the new
Marker . | |||||||||||
Sets a custom icon to use for the new
Marker as a
BitmapDescriptor . | |||||||||||
Sets the anchor point to use for the new
Marker 's info window on
the Marker 's image. | |||||||||||
Draggable markers are not supported in the Amazon Maps API.
| |||||||||||
Flat markers are not supported in the Amazon Maps API.
| |||||||||||
Retrieves a boolean value indicating whether the new
Marker
is visible or hidden. | |||||||||||
Sets the geographic position to use for the new
Marker . | |||||||||||
Sets the rotation to use for the new
Marker measured in degrees
clockwise from the default position. | |||||||||||
Sets the snippet text to use for the new
Marker . | |||||||||||
Sets the title to use for the new
Marker . | |||||||||||
Sets the visibility to use for the new
Marker . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new MarkerOptions
object with default values.
Sets the alpha (opacity) to use for the new Marker
. Alpha is a
value in the closed range [0, 1]. Use 0 to make the marker completely
transparent, or 1 to make it completely opaque. The default is 1.
alpha | The alpha value. |
---|
MarkerOptions
object.
Sets the anchor point to use for the new Marker
's image onto the
marker's position on the surface of the map. See
setAnchor(float, float)
for more information about anchor
points. The default is the bottom middle of the image (0.5, 1).
u | The U coordinate where the image should be anchored, as a ratio to the image width and measured from the left edge. Should be in the closed range [0, 1]. |
---|---|
v | The V coordinate where the image should be anchored, as a ratio to the image height and measured from the top edge. Should be in the closed range [0, 1]. |
MarkerOptions
object.
Draggable markers are not supported in the Amazon Maps API.
Sets the draggable property to use for the new Marker
. The
default is false
.
draggable | true to enable dragging, false
otherwise. |
---|
MarkerOptions
object.
Flat markers are not supported in the Amazon Maps API.
Sets the flat option to use for the new Marker
. This determines
whether the Marker
is displayed as flat against the map. The
default is false
.
flat | Use true to make the marker flat, false
otherwise. |
---|
MarkerOptions
object.
Gets the alpha (opacity) to use for the new Marker
.
Marker
's alpha.
Gets the U coordinate to use for the new Marker
's anchor measured
from the left edge. See setAnchor(float, float)
for more
information about anchor points.
Marker
's U coordinate.
Gets the V coordinate to use for the new Marker
's anchor measured
from the top edge. See setAnchor(float, float)
for more
information about anchor points.
Marker
's V coordinate.
Gets the custom icon that was set for the new Marker
.
BitmapDescriptor
representing the custom icon, or
null
if no custom icon has been set.
Gets the U coordinate to use for the info window's anchor, measured from
the left edge. See setAnchor(float, float)
for more
information about anchor points.
Gets the V coordinate to use for the info window's anchor, measured from
the top edge. See setAnchor(float, float)
for more
information about anchor points.
Gets the rotation to use for the new Marker
.
Marker
in degrees clockwise from the default.
Sets a custom icon to use for the new Marker
as a
BitmapDescriptor
. Set to null
to use the default icon.
icon | A custom icon, or null for the default marker. |
---|
MarkerOptions
object.
Sets the anchor point to use for the new Marker
's info window on
the Marker
's image. See setAnchor(float, float)
for more information about anchor points. The default is the top middle
(0.5, 0).
u | The U coordinate where the info window should be anchored, as a ratio to the image width and measured from the left edge. Should be in the closed range [0, 1]. |
---|---|
v | The V coordinate where the info window should be anchored, as a ratio to the image height and measured from the top edge. Should be in the closed range [0, 1]. |
MarkerOptions
object.
Draggable markers are not supported in the Amazon Maps API.
Retrieves a boolean value indicating whether the new Marker
can be
dragged.
true
if the marker is draggable, false
otherwise.
Flat markers are not supported in the Amazon Maps API.
Retrieves a boolean value indicating whether the new Marker
is
displayed as flat or not.
true
if the marker is flat, false
otherwise.
Retrieves a boolean value indicating whether the new Marker
is visible or hidden.
true
if the Marker
is visible, or false
if it is
invisible.
Sets the rotation to use for the new Marker
measured in degrees
clockwise from the default position. The default is zero, pointing
straight up.
rotation | The rotation in degrees. |
---|
MarkerOptions
object.
Sets the snippet text to use for the new Marker
. When using the
default info window, the snippet text is displayed in the body of the
window beneath the title.
snippet | The snippet text. |
---|
MarkerOptions
object.
Sets the title to use for the new Marker
. When using the default info
window, the title text displayed as the window title.
title | The title text. |
---|
MarkerOptions
object.
Sets the visibility to use for the new Marker
. The default value is true
.
visible | true to make the marker visible, or false
to make it invisible. |
---|
MarkerOptions
object.