You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marcoboerner
changed the title
MapbocMap and Snapshotter camera(for:padding:bearing:pitch:) Methods don't set Padding
MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) Methods don't set Padding
Apr 17, 2024
marcoboerner
changed the title
MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) Methods don't set Padding
MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding
Apr 17, 2024
@persidskiy I did change this for the MapboxMap methods and it works.However, the Snapshotter doesn't have those new methods yet, but the same issue exists. In this case, it only works when we set the padding on the CameraOptions object manually again after creating it.
Environment
Observed behavior and steps to reproduce
When using the
camera(for:padding:bearing:pitch:)
Methods ofMapboxMap
orSnapshotter
, the padding in theCameraOptions
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.The text was updated successfully, but these errors were encountered: