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

[Feature Request] Map rotation #1236

Closed
rhysperry111 opened this issue Jun 12, 2022 · 3 comments
Closed

[Feature Request] Map rotation #1236

rhysperry111 opened this issue Jun 12, 2022 · 3 comments
Assignees

Comments

@rhysperry111
Copy link

Hi, currently the map view does not support rotation. This is rather odd, and can make it quite hard to understand where somebody is if the map isn't orientated in the way you expect.

It does seem that osmdroid supports rotation already, so this should be fairly easy to implement, no?

@rhysperry111
Copy link
Author

rhysperry111 commented Jun 13, 2022

Just an excerpt from the osmdroid Kotlin how-to:


How to enable rotation gestures

val rotationGestureOverlay = new RotationGestureOverlay(context, mMapView);
rotationGestureOverlay.isEnabled
map.setMultiTouchControls(true);
map.overlys.add(rotationGestureOverlay);

I notice this in OSMMapFragment.kt:

            if (!overlays.any { it is RotationGestureOverlay }) {
                overlays.add(RotationGestureOverlay(this))
            }

Am I just being dumb and is rotation already supported?

@growse
Copy link
Collaborator

growse commented Jun 13, 2022

I added that snippet in after seeing the issue raised. Still some bits to work on, but should be in the next release.

@growse growse self-assigned this Jun 13, 2022
@rhysperry111
Copy link
Author

Ah cool, thanks :)

@growse growse closed this as completed in a9c5456 Aug 3, 2022
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