mapbox / mapbox/mapbox-maps-ios
Adding a polyline with a set .linePattern property breaks other polyline annotations inside of the same annotation manager
@maios is already working on this.
Since Aug 13, 2024.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Environment
- Xcode version: 15.4/16.0-beta4
- iOS version: 17.5/18.0
- Devices affected: All
- Maps SDK Version: Checked only on 11.5.2 but probably happens on older versions as well.
Observed behavior and steps to reproduce
Adding a polyline annotation with a set .linePattern property to a polyline manager with existing polyline annotations results in the removal of already added polylines in the annotation manager. Consecutive attempts to add new polyline annotations fail as well.
Expected behavior
Adding a polyline annotation with a set .linePattern property shouldn't affect neither already existing annotations nor disable the addition of new annotations to the polyline annotation manager. Polyline annotations with or without .linePattern property should be able to coexist inside of the same annotation manager.
Additional links and references
View controller implementation for replication:
ViewController.txt
Video of issue:
https://github.com/user-attachments/assets/f34aef99-2964-4abb-a2f6-cdd54e281482
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.