echart 3d地图禁止缩放 滑轮滚动 转动

 echart 3d地图 geo3D缺少roam属性 所以也无法设置false 

 所以只能用其他方式来实现 

1 ,设置地图投影大小然后设置投影的最大值 最小值

orthographicSize: 110, //控制地图大小
                 maxOrthographicSize: 110,
                 minOrthographicSize: 110,

 

即:

 viewControl:{
                 rotateSensitivity: 0,
                 projection: 'orthographic',
                 orthographicSize: 110, //控制地图大小
                 maxOrthographicSize: 110,
                 minOrthographicSize: 110,
                 autoRotate:false,
                 animation:true,
                 alpha:60,
                 beta:10,
                 animationDurationUpdate:10

                 // autoRotateSpeed:5
               },

 

2 鼠标转动值设置为0 为禁止转动 

rotateSensitivity: 0,

 

posted @ 2018-08-14 21:44  hero~  阅读(6366)  评论(0编辑  收藏  举报