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

onRegionChange is constantly called on Android after touching map #1709

Closed
IjzerenHein opened this issue Oct 17, 2017 · 1 comment · Fixed by #1710
Closed

onRegionChange is constantly called on Android after touching map #1709

IjzerenHein opened this issue Oct 17, 2017 · 1 comment · Fixed by #1710

Comments

@IjzerenHein
Copy link
Contributor

This happens, when the following props are set:

zoomEnabled={false}
rotateEnabled={false}
scrollEnabled={false}
pitchEnabled={false}

After inspecting of the Java code I found that startMonitoringRegion was called, but because the camera never changed, stopMonitoringRegion never got called. This caused onRegionChange to be called continuously until the camera was changed. But because no input was possible because of the props, the camera never changed. Even after the component was unmounted, that particular java code was still being executed.

@IjzerenHein
Copy link
Contributor Author

This issue is fixed by PR #1710

This issue was closed.
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

Successfully merging a pull request may close this issue.

1 participant