I am using the offline map feature of Cesium and experiencing an issue with billboard icons in the 2D map view. The icons seem to ghost as you pan across the map. I have replicated this with the SandCastle demo, code is below. Is there a setting I am missing on this?
var viewer = new Cesium.Viewer('cesiumContainer', {
sceneMode : Cesium.SceneMode.SCENE2D,
imageryProvider : Cesium.createTileMapServiceImageryProvider({
url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII')
}),
baseLayerPicker : false,
geocoder : false
});
viewer.entities.add({
id: 1,
name: 'Test',
position: new Cesium.Cartesian3.fromDegrees(40.923664, -98.343286, 500),
label: new Cesium.LabelGraphics({
text : 'Test',
font : '14pt sans-serif',
scale: 0.75,
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
verticalOrigin: Cesium.VerticalOrigin.TOP,
heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
fillColor : Cesium.Color.BLACK,
showBackground : true,
backgroundColor : Cesium.Color.GHOSTWHITE,
backgroundPadding : new Cesium.Cartesian2(8, 4),
disableDepthTestDistance : Number.POSITIVE_INFINITY
}),
billboard: {
image : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAbElEQVR42mNgGAUDDf7///9vIDG9HfAXiB8A8R9sDlgAxPlUwFvxOKAEGurBUMegOKCQSlE6FYflX4GYC0ndw4EIgSKo5UHYQmDA08DA5IJRMFoQjRZEowXRaEE0WhCNFkSjBdFoQTQKRjwAABfDLXwNNSZEAAAAAElFTkSuQmCC' , //iconUrl, // default: undefined
show : true, // default
horizontalOrigin : Cesium.HorizontalOrigin.CENTER, // default
verticalOrigin : Cesium.VerticalOrigin.BOTTOM, // default: CENTER
scale : 0.75, // default: 1.0
color : Cesium.Color.WHITE, // default: WHITE
alignedAxis : Cesium.Cartesian3.ZERO, // default
eyeOffset : Cesium.Cartesian3.ZERO, //new Cesium.Cartesian2(0, -50),
pixelOffset : Cesium.Cartesian2.ZERO, //new Cesium.Cartesian3(0.0, 0.0, 0.0),
height: 32,
width: 32,
distanceDisplayCondition : Cesium.DistanceDisplayCondition(10.0, 20.0),
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
},
box: new Cesium.BoxGraphics({
dimensions: new Cesium.Cartesian3(0, 0, 0),
fill: false,
outline: true,
outlineColor: Cesium.Color.WHITE,
outlineWidth: 1.0
})
});