Skip to content
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

defaultScale, scale is scaling from corner instead of middle. #42

Open
anuraghazra opened this issue Oct 8, 2019 · 0 comments
Open

Comments

@anuraghazra
Copy link
Contributor

Is there any way to set anchor in the middle of the component and then set the scale? so that when we set defaultScale the img inside will resize from the middle instead of being resized from top left corner

for example:

<MapInteractionCSS defaultScale={0.7} anchor={{x: '50%', y: '50%'}}>
  <img src="..." />
</MapInteractionCSS>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant