to draw a polyline on point entity, but the polyline should appear below the point

Hello Mathew,

we have a scenario of drawing line over point and a circle , have used polyline for the same. the issue is that the polyline is not coming below the point and it is coming perfectly below the circle.

the solution which we have come up with is by increasing the z position of the entity containing point then it worked fine for 2.5D and 3D for point also, but for 2D issue persists line is coming on the point.

the code is as given below in sandcastle it can be excuted.

var viewer = new Cesium.Viewer(‘cesiumContainer’);

var greenCircle = viewer.entities.add({

position: Cesium.Cartesian3.fromDegrees(-111.0, 40.0),

name : ‘Green circle at height’,

ellipse : {

semiMinorAxis : 300000.0,

semiMajorAxis : 300000.0,

//height: 200000.0,

material : Cesium.Color.GREEN



var pointNew = viewer.entities.add({

position: Cesium.Cartesian3.fromDegrees(-95.0, 40.0, 50000),

name : ‘point on surface with outline’,

point : {

pixelSize : 50,

outlineWidth : 1,

color : Cesium.Color.YELLOW.withAlpha(1),

outlineColor : Cesium.Color.RED.withAlpha(1)


polyline : {

positions : Cesium.Cartesian3.fromDegreesArray([-111.0, 40.0,

-95.0, 40.0]),

width : 5,

material : Cesium.Color.BLACK




2.5D and 3D the above code works fine but not in 2D

Hence please let us know how the polyline can be rendered below the point for 2D.

we are using cesium1.8 version.

thanks and regards,


please find the attachment for the above point