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,

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM