mapbox / mapbox/mapbox-maps-ios
MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## Environment
- Xcode version: 15.3
- iOS version: 16.x, 17.x
- Maps SDK Version: 11.3.0
## Observed behavior and steps to reproduce
When using the `camera(for:padding:bearing:pitch:)` Methods of `MapboxMap` or `Snapshotter`, the padding in the `CameraOptions` is always nil.
## Expected behavior
The padding should not be nil if it has been set with these methods.
## Notes / preliminary analysis
As a workaround, when setting the padding property manually after creating the `CameraOptions`, everything works as intended.
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.
Research direction
Start with the MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods and inspect how their CameraOptions results handle padding. Reproduce the issue on the listed iOS and Maps SDK versions, then verify that padding is retained when supplied through either method.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100