Skip to content

基于Cesium的可视域分析插件,没有修改源码版引入即可使用

Notifications You must be signed in to change notification settings

zhangti0708/cesium-viewshed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

cesium-viewshed

基于Cesium的可视域分析


基于cesium的三维量测插件

cesium-viewshed

说明

/cesium-viewshed/src/doc

使用

在项目中引入Cesium.js
然后引入 cesium-viewshed.js 即可

 

    // 初始化
    let viewer = new Cesium.Viewer("viewerContainer")

    // 分析参数
    var viewModel = { verticalAngle: 90, horizontalAngle: 120, distance: 10 };

    // 添加可视域
    var viewshed = new Cesium.ViewShed3D(viewer, {
        horizontalAngle: Number(viewModel.horizontalAngle),
        verticalAngle: Number(viewModel.verticalAngle),
        distance: Number(viewModel.distance),
        calback: function () {
          viewModel.distance = viewshed.distance
        }
    });

    // 清除可视域
    viewshed.destroy();

About

基于Cesium的可视域分析插件,没有修改源码版引入即可使用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published