Map rotation
#1967
Replies: 1 comment 1 reply
-
hmm i don't remember writing that class. Not sure what you're trying to do, but i think what you want is this... other than that, i'm not sure i know the answer, sorry |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@spyhunter99 hi! I suppose that you can know how rotation in osmdroid happens as you write this rotation gesture logic. Let's begin with formulation of issue I'm trying to solve - I am implementing course up mode for navigation so I need to rotate map around user's location(but not around center as it is done when calling mapView.setMapOrientation(degrees)). But I noticed that rotation around arbitrary point works perfect when we do rotation gesture so I thought that I can look for this logic somewhere here. But analyzing RotationGestureDetector and RotationGestureOverlay I didn't find nothing except mapView.setMapOrientation(degrees). So the question is - how RotationGestureOverlay rotates around touch position and not center?
Beta Was this translation helpful? Give feedback.
All reactions