/cesium-measure

基于cesium的基础三维量测插件

Primary LanguageJavaScript

cesium-measure


基于cesium的三维量测插件

cesium-measure

说明

/cesium-measure/src/doc

使用

在项目中引入Cesium.js
然后引入 cesium-measure.js 即可
    let viewer = new Cesium.Viewer("viewerContainer")

    let measure = new Cesium.Measure(viewer)

    // 空间距离
    measure.drawLineMeasureGraphics({ clampToGround: clampToGround, callback: () => { } });

    // 空间面积
    measure.drawAreaMeasureGraphics({ clampToGround: clampToGround, callback: () => { } });

    // 三维量测
    measure.drawTrianglesMeasureGraphics({ callback: () => { } });

    // 清除
    measure._drawLayer.entities.removeAll();