-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BEVEL style for start and end caps of the polylines #341
Comments
If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.@vladcioricagoogle Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
After we merge #338 to upgrade to Maps SDK 18.1.0 which supports polyline customization, it will be easier to achieve this. The supported options in 18.1.0 for customizing start and end caps are ButtCap (default), RoundCap, SquareCap, and CustomCap. Would RoundCap satisfy your use case for curves? |
Not really. current SDK already supports ButtCap RoundCap and SquareCap but it doesn't know how to join polylines with different colours in curves for the ButtCap. We will need something similar to what Google Maps is doing for drawing polylines with traffic mode on (where there are multiple colors). Can we achieve something like that for this SDK? |
The best place to request a BevelCap type is in the Issue Tracker for Maps SDK for Android. In the meantime, if you need it sooner, you can generate CustomCap bitmaps that meet your needs. |
Just a note, the current draft implementation for Polylines selects ButtCap; we may need a separate PR to support all cap types. Up to @lenoch0d if you want to add cap types to #308. |
This is needed for achieving a straight line between polylines with different colors. Current ButtCap is not joining the polylines in a smooth way because it leaves open spaces on curves.
The text was updated successfully, but these errors were encountered: