mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

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

Open marcoboerner opened this issue 3 months ago • 3 comments

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.

marcoboerner avatar Apr 17 '24 13:04 marcoboerner