目录

CustomCap

Class Info

public final class CustomCap extends Cap

Extends the Cap class to customize the cap style for a polyline.

Public Field Summary

Qualifier and Type

Field and Description

public final BitmapDescriptor

bitmapDescriptor

Definition of a Bitmap to be overlaid at the start or end vertex of a polyline.

public final float

refWidth

Reference stroke width, in pixels.

Public Constructor Summary

Constructor Name

CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

Creates a CustomCap object based on specified parameters.

CustomCap(@NonNull BitmapDescriptor bitmap)

Creates a CustomCap object based on specified parameters.

Public Method Summary

Qualifier and Type

Method Name and Description

String

toString()

Returns the object as a string.

Public Constructors

[h2]CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

Constructor

public CustomCap(@NonNull BitmapDescriptor bitmap, float bitmapRefWidth)

Creates a CustomCap object based on specified parameters.

Parameters

Name

Description

bitmap

Definition of a Bitmap to be overlaid at the start or end vertex of a polyline.

bitmapRefWidth

Reference stroke width, in pixels.

[h2]CustomCap(@NonNull BitmapDescriptor bitmap)

Constructor

public CustomCap(@NonNull BitmapDescriptor bitmap)

Creates a CustomCap object based on specified parameters.

Parameters

Name

Description

bitmap

Definition of a Bitmap to be overlaid at the start or end vertex of a polyline.