| | |
| | | }, |
| | | //定位实体位置 |
| | | shiti: function (data, i) { |
| | | console.log(data) |
| | | // console.log(data) |
| | | var imgs = i == 1 ? 'images/addL/全景.png' : i == 2 ? 'images/addL/监控.png' : i == 3 ? 'images/addL/监测.png' : ''; |
| | | this.addOneEntitys.add({ |
| | | id: data.id, // 实体ID |
| | |
| | | label: { |
| | | show: true, |
| | | text: data.name, // text 与实体相关的文字 |
| | | font: "700 17px '黑体'", |
| | | fillColor: Cesium.Color.RED, |
| | | font: "700 20px '黑体'", |
| | | fillColor: Cesium.Color.fromCssColorString("rgba(57,165,253)"), |
| | | // backgroundColor: Cesium.Color.DEEPSKYBLUE, |
| | | style: Cesium.LabelStyle.FILL_AND_OUTLINE, |
| | | outlineWidth: 2, |
| | | outlineColor: Cesium.Color.fromBytes(0, 0, 0), // 文字轮廓的颜色 |
| | | outlineWidth: 3, |
| | | outlineColor: Cesium.Color.fromBytes(255, 255, 255), // 文字轮廓的颜色 |
| | | verticalOrigin: Cesium.VerticalOrigin.CENTER,//垂直位置 |
| | | horizontalOrigin: Cesium.HorizontalOrigin.LEFT,//水平位置 |
| | | pixelOffset: new Cesium.Cartesian2(-10, -30), // 文字位置 |
| | | horizontalOrigin: Cesium.HorizontalOrigin.CENTER,//水平位置 |
| | | pixelOffset: new Cesium.Cartesian2(0, -30), // 文字位置 |
| | | heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, |
| | | // distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1, entityConfig.showheight), |
| | | disableDepthTestDistance: Number.POSITIVE_INFINITY |