cesiumjs通过经纬控制显示范围

转载:https://blog.csdn.net/u010001043/article/details/78058404

第一步:创建范围矩形,其中west, south, east, north是以度为单位

var rectangle = new Cesium.Rectangle.fromDegrees(west, south, east, north);

第二步:相机定位

 viewer.camera.flyTo({
 destination: rectangle
});

猜你喜欢

转载自blog.csdn.net/sinat_38818576/article/details/83615194
今日推荐