-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unexpected zooming and panning #4
Comments
I also have this problem "When zooming in, the camera will automatically zoom back out or pan in a random direction." |
I encountered this issue and after many attempts, found a temporary working solution. Instead of:
Use:
The key is to catch the zoom change event and "recreate" the cameraState before this random drift occurs. |
Instead of recreate to CameraState (which loose to map: OsmMapView property connection) i recommend to update the zoom level on motion events:
This updates the zoom level correctly on pinch zoom. |
The lines attached below seem to be causing some unexpected zoom and panning issues. When zooming in, the camera will automatically zoom back out or pan in a random direction.
osm-android-compose/osm-compose/src/main/java/com/utsman/osmandcompose/OpenStreetMap.kt
Lines 130 to 135 in 8513df0
The text was updated successfully, but these errors were encountered: