java.lang.Object | ||
↳ | com.google.android.gms.maps.model.Cap | |
↳ | com.google.android.gms.maps.model.CustomCap |
Bitmap overlay centered at the start or end vertex of a Polyline
, orientated according to
the direction of the line's first or last edge and scaled with respect to the line's stroke
width. CustomCap
can be applied to Polyline
with any stroke pattern.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
bitmapDescriptor | Descriptor of the bitmap to be overlaid at the start or end vertex. | ||||||||||
refWidth | Reference stroke width (in pixels) - the stroke width for which the cap bitmap at its native dimension is designed. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
CustomCap . | |||||||||||
Constructs a new
CustomCap with default reference stroke width of 10 pixels (equal to
the default stroke width, see width(float) ). |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Descriptor of the bitmap to be overlaid at the start or end vertex.
Reference stroke width (in pixels) - the stroke width for which the cap bitmap at its native dimension is designed. The default reference stroke width is 10 pixels.
Constructs a new CustomCap
.
Parameters | |
---|---|
bitmapDescriptor |
BitmapDescriptor :
Descriptor of the bitmap to be used. Must not be null . |
refWidth |
float :
Stroke width, in pixels, for which the cap bitmap at its native dimension is
designed. Must be positive.
|
Constructs a new CustomCap
with default reference stroke width of 10 pixels (equal to
the default stroke width, see width(float)
).
Parameters | |
---|---|
bitmapDescriptor |
BitmapDescriptor :
Descriptor of the bitmap to be used. Must not be null .
|
Returns | |
---|---|
String |