首页 / 浏览问题 / 三维GIS / 问题详情
移动视图到预定义位置
58EXP 2018年04月11日
老师能具体说下怎么在页面中操作吗?还是不明白
相关的答案: 视图移动到记录位置

1个回答

您好,我们任何一个范例几乎都有把相机移到指定位置的功能,您参考一下http://support.supermap.com.cn:8090/iserver/iClient/for3D/webgl/zh/examples/examples.html#layer

主要代码:

        viewer.scene.camera.setView({
            destination : Cesium.Cartesian3.fromDegrees(88.3648, 29.0946, 90000),
            orientation : {
                heading : 6.10547067016156,
                pitch : -0.8475077031996778,
                roll :6.2831853016686185
            }
        });

5,985EXP 2018年04月12日
...