Hello!
I am developing an app with ArcGIS Runtime SDK for Android 100.6.0
I am using Android Studio and Kotlin. I don't see interactionOptions property for MapView. Is this for real??
How can I disable map rotation?
Solved! Go to Solution.
Hi Denis,
You can disable rotation touch events by overriding the onRotate function of the `DefaultMapViewOnTouchListener`
mapView.onTouchListener = object : DefaultMapViewOnTouchListener(applicationContext, mapView) { override fun onRotate(event: MotionEvent?, rotationAngle: Double): Boolean { // consume the touch event return true } }
See if this code works for you.
Cheers,
Trevor
Hi Denis,
You can disable rotation touch events by overriding the onRotate function of the `DefaultMapViewOnTouchListener`
mapView.onTouchListener = object : DefaultMapViewOnTouchListener(applicationContext, mapView) { override fun onRotate(event: MotionEvent?, rotationAngle: Double): Boolean { // consume the touch event return true } }
See if this code works for you.
Cheers,
Trevor
It works and it was easy! Thank you very much!