Cap
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
Cap is an immutable class used to style the start or end of a Polyline on a map.
It offers various predefined cap styles like ButtCap, RoundCap, SquareCap, and allows for custom bitmap overlays with CustomCap.
Cap inherits from AbstractSafeParcelable and implements Parcelable for object serialization.
Developers can use equals(), hashCode(), toString(), and writeToParcel() methods for comparison, hashing, string representation, and serialization, respectively.
Cap objects can be customized further by adjusting the stroke width and pattern of the associated Polyline.
Cap that is squared off exactly at the start or end vertex of a Polyline with solid
stroke pattern, equivalent to having no additional cap beyond the start or end vertex.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-21 UTC."],[],[]]