FreedomView

new Cesium.FreedomView(viewer, options)

自由视角浏览
Name Type Description
viewer Object optional 场景对象
options Object optional 设置参数:
Name Type Default Description
needMourseEvent Boolean false optional 设置是否需要踩点,true则开始鼠标左键选点,false则position不能为空,
position Cartesian3 optional 自由视角起点,世界坐标,当needMourseEvent为false有效,options.position=Cesium.Cartesian3.fromDegrees(116.30,33.54,500.00);
height Number 0 optional 设置视角起点高度,默认为0,
pointColor Color optional 设置点颜色,默认为red,
pointSize Number 10 optional 设置点大小,默认为10,
lineColor Color optional 设置线颜色,默认为red,
circleColor Color optional 设置圆形颜色,默认为green,

Methods

开始鼠标踩点,并定位到相机
锁定视角
释放视角
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.