turn off map rotation
xleix opened this issue · 1 comments
xleix commented
How to switch to turn off map rotation in sdk 100.3
TADraeseke commented
Hi tleix,
We encourage everyone to collaborate on questions like this on GeoNet ArcGIS runtime SDK. So please post any follow up questions there.
Short answer to your question, override the onRotate touch event in the DefaultMapViewOnTouchListener
like this:
mMapView.setOnTouchListener(new DefaultMapViewOnTouchListener(this, mMapView) {
@Override public boolean onRotate(MotionEvent event, double rotationAngle) {
return true;
}
});
Good luck with your app!
Trevor