by 蔡建良2019-5-16

关键类: com.esri.arcgisruntime.mapping.view.DefaultMapViewOnTouchListener
DefaultMapViewOnTouchListener是MapView中OnTouchListenner默认事件实现类。
修改DefaultMapViewOnTouchListener类中的onRotate方法,直接返回false。这样地图就不会旋转了。
this.mMapView.setOnTouchListener(new DefaultMapViewOnTouchListener(this, mMapView) {
        @Override
        public boolean onRotate(MotionEvent motionEvent, double v) {
            return false;
        }
    });
 

 

相关文章:

  • 2021-10-17
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-08-28
猜你喜欢
  • 2022-03-03
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-02-09
  • 2021-11-18
相关资源
相似解决方案