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

Zoom Control Issue #13

Closed
zaidrix opened this issue Sep 9, 2017 · 3 comments
Closed

Zoom Control Issue #13

zaidrix opened this issue Sep 9, 2017 · 3 comments

Comments

@zaidrix
Copy link

zaidrix commented Sep 9, 2017

If the default "zoom control" is set to hidden (zoomControl: false) on map, it will show up right away after pressing the first point again to close the area (i.e. after the "Total Distance" message).

@zhenyanghua
Copy link
Owner

Without a reliable way to get the map current options, e.g. zoomControl in this case, there is no easy way to preserve the previous map state after overriding the map options during drawing process.

@zhenyanghua
Copy link
Owner

zhenyanghua commented Mar 4, 2018

Current will use a select to determine the map zoomControl value: !!document.querySelector("button[aria-label='Zoom in']"). This is the only way I can think of on top of my head. It works for this particular issue, but will have to check when there is a newer release of Google Maps API.

@zhenyanghua
Copy link
Owner

Fixed in commit f69a65. Released in v0.0.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants