Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

How to add round corners to the ends of Polylines? #15350

Closed
makinggainz opened this issue Aug 11, 2019 · 3 comments
Closed

How to add round corners to the ends of Polylines? #15350

makinggainz opened this issue Aug 11, 2019 · 3 comments
Labels
iOS Mapbox Maps SDK for iOS support

Comments

@makinggainz
Copy link

makinggainz commented Aug 11, 2019

I would like my polylines to not have sharp edges but rather round edges at all intersection points. Possibly like this: #1771

Expected behavior

Round edges

Actual behavior

Configuration

Mapbox SDK versions: newest
iOS/macOS versions:
Device/simulator models:
Xcode version: newest ^^^

@LukasPaczos LukasPaczos added iOS Mapbox Maps SDK for iOS support labels Aug 12, 2019
@LukasPaczos
Copy link
Member

Hey @makinggainz, you'll need to use the MGLLineStyleLayer. The properties you're looking for are lineJoin and lineCap.

@makinggainz
Copy link
Author

@LukasPaczos do I have to switch to use that? no way to do it with usual mglpolyline?

@LukasPaczos
Copy link
Member

That's correct @makinggainz. MGLPolyline is a simplified API, for a whole range of features you'll need to switch to Sources and Layers APIs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS support
Projects
None yet
Development

No branches or pull requests

2 participants