Select to view content in your preferred language

Prevent MapView rotation during SketchEdit?

348
0
11-08-2018 07:15 AM
CharlesLoftis
Occasional Contributor

Using ArcGIS 100.4.0 Android SDK.

BACKGROUND

I'm developing an app that does not allow map rotation. (BTW, my map is offline - loaded from a locally stored mmpk.) I'm able to achieve this by setting my MapView's onTouchListener to be an extension of the DefaultMapViewOnTouchListener where I've overridden onRotate() to always return true. This works except when interacting with the SketchEditor.

PROBLEM

I'm using the SketchEditor to capture user input on my MapView. During sketch sessions (i.e., after my instance of 

SketchEditor's start(...) method has been called) my map suddenly allows two finger rotations of the map. 

QUESTION

How can stop the SketchEditor from allowing my MapView to be rotated?

0 Kudos
0 Replies