Proposal: Add setScale method to API #41
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋 After opening #40 I decided to look at the code myself and found that it wouldn't be too crazy to introduce a
setScale
method to the component's API.The proposed method would fit a use case I've run across where I want to explicitly set the zoom level with a UI controller. Like this:
![Screen Shot 2020-02-24 at 10 22 37 AM](https://user-images.githubusercontent.com/3782604/75170478-c9bcfd80-56ef-11ea-9917-fc4f21d4ee0b.png)
Apologies if this is already doable and I am just wasting your time 😞