1. A concise explanation of the problem you’re experiencing.
I’m placing some billboards on the map, and drawing some routes with polyline.
Everything work fine on Chrome (desktop / mobile), but on iOS (10) with Safari most of the times them don’t show.
Sometimes if I clear the Safari cache and I open again the web page them show again, but very few times.
I don’t have any error in console.
I’ve tried with .svg and .png files, but with no succes.
I’ve printed in console many informations (positions, etc) to check if something could be wrong, but everything is right.
The only problem is that the entities don’t show
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
drawTrack() {
this.visibleTrack = viewer.entities.add({
polyline: {
positions: this.cartesianPositions,
clampToGround: false,
width: 5,
// show: false,
material: new Cesium.PolylineOutlineMaterialProperty({
color: Cesium.Color.ORANGE,
outlineWidth: 2,
outlineColor: Cesium.Color.BLACK
})
}
});
}
drawPlaceholder() {
this.placeholder = viewer.entities.add({
position: this.boundingSphere.center,
billboard: {
image: getIconFromLocomotion(this.locomotion),
width: 48,
height: 63,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
}
});
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
1.62
Safari iOS 10