This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
zoom - Inconsistent variable type (double vs float) #4445
Labels
Android
Mapbox Maps SDK for Android
bug
SEMVER-MAJOR
Requires a major release according to Semantic Versioning rules
Milestone
Looking at Mapbox SDK seems like zoom variable type is not consistent and that's causing me issues.
If I am to retrieve zoom level I would do:
If I want to change zoom level I would do:
However, latter will result with an exception because
CameraUpdateFactory.zoomTo
expectsfloat
Looking at google documentation, I see that getCameraPosition actually holds
zoom
asfloat
.https://developers.google.com/android/reference/com/google/android/gms/maps/model/CameraPosition#field-summary
Now, there might be pretty good reason for us changing this in Mapbox SDK and I would love to hear it, I just wasn't able to find the answer anywhere.
The text was updated successfully, but these errors were encountered: