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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
This method is not exposed publicly. Unfortunately, as far as I can tell, there is no way for a consumer to accomplish what this method allows. Specifically, setting a center coordinate with:
A zoom level
An animation timing function
The currently available methods that allow timing functions are:
There is no way to initialize a MGLMapCamera with a zoom level, so this does not work either.
It is possible to to create an MGLMapCamera with an altitude measured in meters. However, as noted in #5583 (and your comment above), there is not currently a way to convert between zoom levels and altitudes.
I've added #5583 to the next Mapbox iOS SDK milestone. In the meantime, you may be able to use a raw altitude value to get nearly the effect you want. And, just in case you've not seen it, you can check out this example.
I'm going to close this in favor of continuing to track this feature in #5583. Thanks for the report!
Currently, there is an internal private method for setting a center coordinate with a zoom level and a timing function:
This method is not exposed publicly. Unfortunately, as far as I can tell, there is no way for a consumer to accomplish what this method allows. Specifically, setting a center coordinate with:
The currently available methods that allow timing functions are:
1.:
This method does not have a mechanism for setting a zoom level if you provide a single point to center on, so this does not work unfortunately.
2.:
There is no way to initialize a
MGLMapCamera
with a zoom level, so this does not work either.Please let me know if I missed something. Thanks!
The text was updated successfully, but these errors were encountered: