我的github
posts - 3243,  comments - 42,  views - 158万

初始化:

复制代码
      //工具-图上量算初始化
      initMeasure(){
        this.measure = new globe.analysi.Measure({
          viewer: window.viewer
        })
        this.measure.on( globe.analysi.Measure.event.change, (e) => {

        });
        this.measure.on( globe.analysi.Measure.event.start, (e) => {//开始分析前回调(异步)
          this.loading = this.$loading({
            lock: true,
            text: '数据加紧量算中,请稍等...',
            spinner: 'el-icon-loading',
            background: 'rgba(0, 0, 0, 0.7)'
          });
          setTimeout(() => {
            this.loading.close();
          }, 10000);
        });
        this.measure.on( globe.analysi.Measure.event.end, (e) => {//分析完成后回调(异步)
          this.loading && this.loading.close()
          if (e.mtype == "section") { //剖面
            this.EchartsVisible = true
            this.setEchartOptions(e)
          }
        });
      }
复制代码

 

参考1:https://www.jianshu.com/p/1766679c3ebe(Cesium开发工具篇 | 04量测工具与调试面板)

             https://github.com/zhangti0708/cesium-measure

>>cesium 求地表两点的距离(基础篇):https://www.jianshu.com/p/0442003aa59b

posted on   XiaoNiuFeiTian  阅读(463)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2019-11-22 You Only Look Once Unified, Real-Time Object Detection(你只需要看一次统一的,实时的目标检测)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示