New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
Returns an NSArray of GMSStyleSpan constructed by repeated application of style and length
information from styles and lengths along path.
path the path along which the output spans are computed.
styles an NSArray of GMSStrokeStyle. Wraps if consumed. Can’t be empty.
lengths an NSArray of NSNumber; each entry gives the length of the corresponding
style from styles. Wraps if consumed. Can’t be empty.
lengthKind the interpretation of values from lengths (geodesic, rhumb or projected).
Example: a polyline with alternating black and white spans:
[[["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 2024-11-15 UTC."],[[["`GMSStyleSpans` creates an array of style spans for a given path, applying styles and lengths repeatedly."],["It takes the path, styles, lengths, and length kind as input, allowing for customized styling of polylines or other paths."],["Styles and lengths are applied in sequence and wrap around if necessary, ensuring continuous styling along the path."],["Lengths can be interpreted as geodesic, rhumb, or projected distances depending on the specified length kind."],["A practical example demonstrates creating a polyline with alternating black and white spans using `GMSStyleSpans`."]]],[]]