viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(81, 39,30.0),
label: { //文字标签
text: "面积:"+area+"平方千米",
font: '500 30px Helvetica',// 15pt monospace
scale: 0.5,
style: Cesium.LabelStyle.FILL,
fillColor: Cesium.Color.WHITE,
pixelOffset: new Cesium.Cartesian2(-8, -35), //偏移量
showBackground: true,
backgroundColor: new Cesium.Color(0.5, 0.6, 1, 1.0)
},
polygon: {
positions: {
cartographicDegrees: [
81.6943359375, 38.91357287764549, 100, 94.2626953125, 37.99072265625, 100, 93.1640625, 27.883298099040985, 100, 78.2666015625, 24.367673099040985, 100
],
},
},
});
});
我是这样画的,但是画不出来,是否有示例