-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapboxMap and Snapshotter camera(for:padding:bearing:pitch:) methods don't set padding #2165
Comments
Hi, if you are using this method, it is deperecated now as it was quite counter-intuitive https://docs.mapbox.com/ios/maps/api/11.3.0/documentation/mapboxmaps/mapboxmap/camera(for:padding:bearing:pitch:)-5juqy If you want the resulting camera to have the specific padding, use this method https://docs.mapbox.com/ios/maps/api/11.3.0/documentation/mapboxmaps/mapboxmap/camera(for:camera:coordinatespadding:maxzoom:offset:)
Note: The |
@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. |
@marcoboerner Thank you for reporting this, the method should be available in Snapshotter too. Internal ticket to track: https://mapbox.atlassian.net/browse/MAPSIOS-1323 |
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: