1. A concise explanation of the problem you’re experiencing.
Polyline positions are wrong on iPhone XS. (and maybe on all iOS devices, we think Android works fine)
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
This example slowly animates camera and on desktop it works smoothly. On iPhone XS you will see bad jitter on polyline position!
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var line = viewer.entities.add({
name : “Test line”,
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-154, 60.4, 1, -154.0002, 60.4, 1]),
width : 2,
material : Cesium.Color.RED
}
});
viewer.zoomTo(viewer.entities);
viewer.clock.onTick.addEventListener(function(clock){
viewer.scene.camera.moveDown(0.01);
});
Sandcastle:
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
This prevents the proper usage of polylines on mobile. Totally critical bug for us!
4. The Cesium version you’re using, your operating system and browser.
Newest, Chrome on win10 and safari on iphone xs.