**
在确定位置的时候一定要添加高程值,否则就会出现添加的点一直在平面上,点位属于贴地的效果。
显示不出来高位的问题。
//添加点
viewer.entities.remove(that.entity);
//添加点位
that.entity = new Cesium.Entity({
id : 'flyTmp',
position : Cesium.Cartesian3.fromDegrees(that.lon, that.lat,that.elevation),
point : {
pixelSize : 20,
color : Cesium.Color.RED.withAlpha(0.9),
outlineColor : Cesium.Color.RED.withAlpha(0.9),
outlineWidth : 1,
disableDepthTestDistance: Number.POSITIVE_INFINITY,
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
}
});
viewer.entities.add(that.entity);**