java.lang.Object | |
↳ | com.amazon.geo.mapsv2.model.PolylineOptions |
An object for defining the initial options for a Polyline
object. Use
this to define all the properties of a Polyline
before calling the
addPolyline(PolylineOptions)
method to add the
Polyline
to the map.
Modifying PolylineOptions
after the Polyline
has been added
to the map has no effect on the appearance of the Polyline
.
Note that PolylineOptions
methods do not need to be called on the main
thread.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PolylineOptions object with default values. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds multiple vertices to the end of the new
Polyline . | |||||||||||
Adds a vertex to the end of the new
Polyline . | |||||||||||
Adds all vertices in
points to the end of the new
Polyline . | |||||||||||
Sets the color to use for the new
Polyline in ARGB format. | |||||||||||
Sets whether the line segments for the new
Polyline are drawn
geodesic or non-geodesic.Geodesic is not supported in Amazon Maps API v2.5 | |||||||||||
Gets the stroke color to use for the new
Polyline . | |||||||||||
Gets the list of the vertices to use to represent the new
Polyline . | |||||||||||
Gets the stroke width to use for the new
Polyline . | |||||||||||
Gets the z-index to use for the new
Polyline . | |||||||||||
Retrieves a boolean value indicating whether the new
Polyline
line segments are drawn as geodesic (curved to correspond to the shortest
path between two points on the surface of the Earth) or as straight
lines.Geodesic is not supported in Amazon Maps API v2.5 | |||||||||||
Retrieves a boolean value indicating whether the new
Polyline is
visible or hidden. | |||||||||||
Sets the visibility to use for the new
Polyline . | |||||||||||
Sets the stroke width to use for the new
Polyline in screen
pixels. | |||||||||||
Sets the z-index to use for the new the
Polyline . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new PolylineOptions
object with default values.
Adds a vertex to the end of the new Polyline
.
point | The vertex to add as a LatLng object. Must not be
null . |
---|
PolylineOptions
object.
Sets the color to use for the new Polyline
in ARGB format. No
line is drawn if this is set to TRANSPARENT
. The default
value is BLACK
.
color | The color in ARGB format. See Color for more
details. |
---|
PolylineOptions
object.
Sets whether the line segments for the new Polyline
are drawn
geodesic or non-geodesic. The default is false
to draw straight
lines.
Geodesic line segments are drawn as a curve that corresponds to the shortest path between two points on the surface of the Earth. The curve is drawn assuming that the Earth is a sphere.
Non-geodesic line segments are drawn as straight lines on top of the map's projection.
Geodesic is not supported in Amazon Maps API v2.5
geodesic | true to draw geodesic line segments, or
false to draw straight lines on the map. |
---|
PolylineOptions
object.
Gets the stroke width to use for the new Polyline
.
Polyline
's width in screen pixels.
Gets the z-index to use for the new Polyline
.
Polyline
's z-index.
Retrieves a boolean value indicating whether the new Polyline
line segments are drawn as geodesic (curved to correspond to the shortest
path between two points on the surface of the Earth) or as straight
lines.
Geodesic is not supported in Amazon Maps API v2.5
true
if each segment is drawn geodesic, or false
if each segment is drawn as a straight line.
Retrieves a boolean value indicating whether the new Polyline
is
visible or hidden.
true
if the Polyline
is visible, or false
if it is invisible.
Sets the visibility to use for the new Polyline
. The default
value is true
.
visible | true to make the Polyline visible, or
false to make it invisible. |
---|
PolylineOptions
object.
Sets the stroke width to use for the new Polyline
in screen
pixels. Must be zero or greater. Setting a negative stroke width causes
addPolyline(PolylineOptions)
to throw an
IllegalArgumentException
. No line is drawn if the stroke width is
set to zero. The default value is 10.
width | The stroke width of the new Polyline in screen
pixels. |
---|
PolylineOptions
object
Sets the z-index to use for the new the Polyline
. Z-index
determines the order in which overlays are drawn. Overlays with higher
indices are drawn over overlays with lower indices. Overlays with the
same z-index are drawn in an arbitrary order.
Overlays that are affected by z-index include GroundOverlay
,
TileOverlay
, Circle
, Polyline
, and
Polygon
.
Marker
overlays are not affected by the z-index of other
overlays.
The default value is zero.
zIndex | The z-index for the new Polyline . |
---|
PolylineOptions
object.