第一步:创建范围矩形,其中west, south, east, north是以度为单位
var rectangle = new Cesium.Rectangle.fromDegrees(west, south, east, north);
第二步:相机定位
viewer.camera.flyTo({
destination: rectangle
});
本文介绍如何使用Cesium JavaScript库创建地图范围并实现相机定位到指定地理坐标区域的技术过程。
第一步:创建范围矩形,其中west, south, east, north是以度为单位
var rectangle = new Cesium.Rectangle.fromDegrees(west, south, east, north);
第二步:相机定位
viewer.camera.flyTo({
destination: rectangle
});
2109
1157
3万+

被折叠的 条评论
为什么被折叠?
