目录

Cap

Defines a cap that is applied at the start or end vertex of a Polyline object.

Constants

Constant

Type

Description

squareCap

Cap

Sets the start or end vertex of a polyline to the square type.

buttCap

Cap

Defines a cap that is squared off exactly at the start or end vertex of a polyline.

roundCap

Cap

Represents a semicircle with a radius equal to a half of the stroke width. The semicircle will be centered at the start or end vertex of a polyline.

Constructor Summary

Constructor

Description

Cap.customCapFromBitmap(BitmapDescriptor bitmapDescriptor, {double refWidth})

Customizes the cap style for a polyline.

Constructors

[h2]Cap.customCapFromBitmap

Constructs a cap with a bitmap overlay that is centered at the start or end vertex of a Polyline object, orientated to the direction of the line's first or last edge, and scaled with respect to the line's stroke width.

Parameter

Type

Description

bitmapDescriptor

BitmapDescriptor

BitmapDescriptor object.

refWidth

double

Stroke width, in pixels.