mapbox / mapbox/mapbox-maps-ios

MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding

Open
#2,165 3 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.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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.