java.lang.Object | |
↳ | com.google.android.gms.maps.model.PolylineOptions |
Defines options for a polyline.
For more information, read the Shapes developer guide.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds vertices to the end of the polyline being built.
| |||||||||||
Adds a vertex to the end of the polyline being built.
| |||||||||||
Adds vertices to the end of the polyline being built.
| |||||||||||
Specifies whether this polyline is clickable.
| |||||||||||
Sets the color of the polyline as a 32-bit ARGB color.
| |||||||||||
Sets the cap at the end vertex of the polyline.
| |||||||||||
Specifies whether to draw each segment of this polyline as a geodesic.
| |||||||||||
Gets the color set for this
PolylineOptions object. | |||||||||||
Gets the cap set for the end vertex in this
PolylineOptions object. | |||||||||||
Gets the joint type set in this
PolylineOptions object for all vertices except the
start and end vertices. | |||||||||||
Gets the stroke pattern set in this
PolylineOptions object for the polyline. | |||||||||||
Gets the points set for this
PolylineOptions object. | |||||||||||
Gets the cap set for the start vertex in this
PolylineOptions object. | |||||||||||
Gets the width set for this
PolylineOptions object. | |||||||||||
Gets the zIndex set for this
PolylineOptions object. | |||||||||||
Gets the clickability setting for this
PolylineOptions object. | |||||||||||
Gets the geodesic setting for this
PolylineOptions object. | |||||||||||
Gets the visibility setting for this
PolylineOptions object. | |||||||||||
Sets the joint type for all vertices of the polyline except the start and end vertices.
| |||||||||||
Sets the stroke pattern for the polyline.
| |||||||||||
Sets the cap at the start vertex of the polyline.
| |||||||||||
Specifies the visibility for the polyline.
| |||||||||||
Sets the width of the polyline in screen pixels.
| |||||||||||
Specifies the polyline's zIndex, i.e., the order in which it will be drawn.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Adds vertices to the end of the polyline being built.
Parameters | |
---|---|
points |
LatLng
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with the given points on the end.
|
Adds a vertex to the end of the polyline being built.
Parameters | |
---|---|
point |
LatLng
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with the given point on the end.
|
Adds vertices to the end of the polyline being built.
Parameters | |
---|---|
points |
Iterable
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with the given points on the end.
|
Specifies whether this polyline is clickable. The default setting is false
Parameters | |
---|---|
clickable |
boolean
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new clickability setting.
|
Sets the color of the polyline as a 32-bit ARGB color. The default color is black (
0xff000000
).
Parameters | |
---|---|
color |
int
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new color set.
|
Sets the cap at the end vertex of the polyline. The default end cap is ButtCap
.
Parameters | |
---|---|
endCap |
Cap
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new end cap set.
|
Specifies whether to draw each segment of this polyline as a geodesic. The default setting is
false
Parameters | |
---|---|
geodesic |
boolean
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new geodesic setting.
|
Gets the color set for this PolylineOptions
object.
Returns | |
---|---|
int |
the color of the polyline in ARGB format. |
Gets the cap set for the end vertex in this PolylineOptions
object.
Returns | |
---|---|
Cap |
the end cap of the polyline. |
Gets the joint type set in this PolylineOptions
object for all vertices except the
start and end vertices. See JointType
for possible values.
Returns | |
---|---|
int |
the joint type of the polyline. |
Gets the stroke pattern set in this PolylineOptions
object for the polyline.
Returns | |
---|---|
List<PatternItem> |
the stroke pattern of the polyline. |
Gets the points set for this PolylineOptions
object.
Returns | |
---|---|
List<LatLng> |
the list of LatLng s specifying the vertices of the polyline.
|
Gets the cap set for the start vertex in this PolylineOptions
object.
Returns | |
---|---|
Cap |
the start cap of the polyline. |
Gets the width set for this PolylineOptions
object.
Returns | |
---|---|
float |
the width of the polyline in screen pixels. |
Gets the zIndex set for this PolylineOptions
object.
Returns | |
---|---|
float |
the zIndex of the polyline. |
Gets the clickability setting for this PolylineOptions
object.
Returns | |
---|---|
boolean |
true if the polyline is clickable; false if it is not.
|
Gets the geodesic setting for this PolylineOptions
object.
Returns | |
---|---|
boolean |
true if the polyline segments should be geodesics; false they should
not be.
|
Gets the visibility setting for this PolylineOptions
object.
Returns | |
---|---|
boolean |
true if the polyline is visible; false if it is not.
|
Sets the joint type for all vertices of the polyline except the start and end vertices.
See JointType
for allowed values. The default value DEFAULT
will
be used if joint type is undefined or is not one of the allowed values.
Parameters | |
---|---|
jointType |
int
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new joint type set.
|
Sets the stroke pattern for the polyline. The default stroke pattern is solid, represented by
null
.
Parameters | |
---|---|
pattern |
List
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new stroke pattern set.
|
Sets the cap at the start vertex of the polyline. The default start cap is ButtCap
.
Parameters | |
---|---|
startCap |
Cap
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new start cap set.
|
Specifies the visibility for the polyline. The default visibility is true
.
Parameters | |
---|---|
visible |
boolean
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new visibility setting.
|
Sets the width of the polyline in screen pixels. The default is 10.
Parameters | |
---|---|
width |
float
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new width set.
|
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|
Specifies the polyline's zIndex, i.e., the order in which it will be drawn. See the documentation at the top of this class for more information about zIndex.
Parameters | |
---|---|
zIndex |
float
|
Returns | |
---|---|
PolylineOptions |
this PolylineOptions object with a new zIndex set.
|