let data = [
{x:106.6567310, y: 29.5018702, value: 20},
{x:106.6552488, y: 29.5006757, value: 50},
{x:106.6411832, y: 29.4938576, value: 80},
{x:106.6404616, y: 29.4924980, value: 40},
{x:106.6421648, y: 29.4954613, value: 100},
];
//将所有点位组装-计算边界值
let bpoint = [];
for (let coord of data) {
console.log('coord',coord)
bpoint.push(new Cesium.Cartographic(coord.x, coord.y, 0))
}
let bound = new Cesium.Rectangle.fromCartographicArray(bpoint);//计算所有点位的边界
console.log('bound',bound);
//将所有点位组装-计算边界值---完
网友评论