Repository navigation
Moved MGLAltitudeForZoomLevel and MGLZoomLevelForAltitude to public API - #12986
Conversation
There was a problem hiding this comment.
Thank you for making this change. What are your thoughts on making this part of MGLMapCamera with an api that sets/returns the current distance/zoom I'm thinking that the main use case is either "zoom in/out" a camera without making a new one(?), or what are the use cases that this change is going to address?
|
These don't require an |
|
I think this is OK outside of MGLMapCamera. As @julianrex said, it doesn't require MGLMapCamera and MGLMapCamera doesn't use or need zoom level. |
|
I may be wrong by saying I am OK with this being public but was considering if we can provide an api with finer control instead. |
|
@fabian-guerra 100% agree that we need that. This is baby steps... and we need this soon. |
There was a problem hiding this comment.
I agree that there’s more we can do in this department, but this is a reasonable and useful function and not all that surprising an API design. It’s quite an improvement over #12938 and complements #12966. Future efforts can build on this function using composition. For example, a conversion between viewing distance and zoom level would be pretty straightforward and also helpful for certain use cases.
Fixes #5583
/cc @1ec5 @friedbunny @fabian-guerra