zoukankan      html  css  js  c++  java
  • 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,

  • 相关阅读:
    C语言寒假大作战04
    C语言寒假大作战03
    C语言寒假大作战02
    C语言寒假大作战01
    C语言I作业12—学期总结
    C语言I博客作业11
    C语言I博客作业10
    预习非数值数据的编码方式
    计算机组成与系统结构作业01
    C语言||作业01
  • 原文地址:https://www.cnblogs.com/tiepeng/p/9478108.html
Copyright © 2011-2022 走看看