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?
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!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.