mapbox / mapbox/mapbox-maps-ios

LineLayer pattern and dashline glitch in corners

Open
#2,266 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Xcode version: 15.4
- iOS version: 18.0.1
- Devices affected: All
- Maps SDK Version: 10.19

## Observed behavior and steps to reproduce
LineLayer created with linePattern and an icon or with dashArray property will glitch in corners. images or dashs will be cut and distorted.
![linePattern_lineLayer](https://github.com/user-attachments/assets/e60ae75c-860c-422f-a28a-34d9fe40a10e)
![dashLine_lineLayer](https://github.com/user-attachments/assets/145deb1e-0560-46b0-b443-3cc2eb49830f)

## Expected behavior

In this JS exemple corners are great and react normally
https://docs.mapbox.com/mapbox-gl-js/example/line-pattern/

I expect iOS version to do the same.

## Notes / preliminary analysis

I've tried all the possibilities with the LineCap and LineJoin parameters, but nothing corrects the problem mentioned above.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with an iOS LineLayer using linePattern and an icon, or using dashArray, focusing on corners and comparing the result with the linked Mapbox GL JS line-pattern example. Inspect the iOS line-rendering path and verify that pattern images and dashes remain intact and undistorted at joins.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
computer-graphics, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.