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

lineCap = "round" causes drawing a solid line instead of dashed #96

Closed
wojciech-kulik opened this issue Dec 11, 2019 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@wojciech-kulik
Copy link

wojciech-kulik commented Dec 11, 2019

Steps to reproduce

  1. Using Mapbox-iOS-SDK 5.5.0 add line style layer like this:
let layer = MGLLineStyleLayer(identifier: "my-style", source: source)
layer.lineColor = NSExpression(forConstantValue: UIColor.darkGray)
layer.lineWidth = NSExpression(forConstantValue: 4.0)
layer.lineCap = NSExpression(forConstantValue: "round")
layer.lineDashPattern = NSExpression(forConstantValue: [0.25, 1.5])

Expected behavior

Dashed line should be drawn.

Screenshot from 5.4.0 version
Screenshot 2019-12-11 at 10 50 04

Actual behavior

Solid line is drawn.

Screenshot from 5.5.0 version
Screenshot 2019-12-11 at 10 48 42

Configuration

Mapbox SDK versions: 5.5.0
iOSversions: 13.3
Device/simulator models: all
Xcode version: 11.12.1

@wojciech-kulik wojciech-kulik changed the title Setting lineCap "round" causes drawing a solid line instead of dashed lineCap = "round" causes drawing a solid line instead of dashed Dec 11, 2019
@chloekraw chloekraw added the bug Something isn't working label Dec 14, 2019
@jmkiley
Copy link
Contributor

jmkiley commented Jan 28, 2020

Hi @wojciech-kulik -

Thank you for the report! It looks like this was fixed by mapbox/mapbox-gl-native#15947 in 5.6.0. Please let us know if you still see the issue in v5.6.0 or later.

@jmkiley jmkiley closed this as completed Jan 28, 2020
@wojciech-kulik
Copy link
Author

wojciech-kulik commented Jan 30, 2020

Hi, great to hear!

I will try 5.6.0 once this issue is solved: mapbox/mapbox-navigation-ios#2326

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants