添加一个标记billboard, 然后飞行过去,在飞的过程中,会发现 billboard图片显示不完整,
虽然设置:verticalOrigin: Cesium.VerticalOrigin.BOTTOM,属性,只能够缓解飞行完成后的显示
但不能解决 飞行过程中的问题。
特来请教小哥哥,小姐姐。下面是我的代码
ps:原生cesium中没问题,
/-------------------------------------supermap iclient for webgl---------------------------------------------/
<body>
<div id="cesiumContainer"></div>
<script>
function onload(Cesium) {
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(50, -10, 170, 80);
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider : new Cesium.TiandituImageryProvider({
credit : new Cesium.Credit('天地图全球影像服务 数据来源:国家地理信息公共服务平台 & 四川省测绘地理信息局')
})
});
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(120.1622583467, 33.3486260972,5),
billboard :{
image : '
https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/images/facility.gif',
// verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
}
});
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(120.1622583467, 33.3486260972,10000),
duration : 5,
});
}
</script>
</body>
/----------------------------------Cesium demo----------------------------------------------------/
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(50, -10, 170, 80);
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(120.1622583467, 33.3486260972),
billboard :{
image : '../images/facility.gif'
}
});
viewer.camera.flyTo({
destination : Cesium.Cartesian3.fromDegrees(120.1622583467, 33.3486260972,10000),
duration : 5,
});