ProfileAnalysis

new Cesium.ProfileAnalysis(viewer, options)

剖面分析
Name Type Description
viewer Object optional 视景器对象
options Object optional 对象具有如下属性:
Name Type Description
name String optional 对象名称
extendHeight Number optional 分析区域内的抬升高度

Members

剖切终点
分析区域内的抬升高度
剖切对象名称
剖切起点 坐标为经纬度
纹理高度
纹理宽度

Methods

销毁对象
Name Type Description
callback Object 获取分析结果的回调函数
Example:
profileAnalysis.getBuferData(function (buffer) {
                var canvas = document.getElementById("proAnalysis");
                canvas.height = profile._textureHeight;
                canvas.width = profile._textureWidth;
                var ctx = canvas.getContext("2d");
                var imgData = ctx.createImageData(profile._textureWidth, profile._textureHeight);
                imgData.data.set(buffer);
                ctx.putImageData(imgData, 0, 0);
            });
注册,分析对象只有被注册,才会有效果
反注册
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.