@@ -443,6 +443,7 @@ export function addGraphic(datas){
"data": datas.data,
"attributes": datas.attributes,
"symbol": datas.symbol,
+ "textSymbol": datas.textSymbol,
"title": datas.title
}
};
@@ -727,6 +727,20 @@ function getDeepthPoints(data){
color: [255, 255, 255],
size: 5
},
+ "textSymbol":{
+ type: "text",
+ color: "white", //[255, 255, 255]
+ // haloColor: "black",
+ // haloSize: "15px",
+ // text: title, // 用上面data传入的值填充
+ xoffset: 0,
+ yoffset: 0,
+ font: {
+ size: 10,
+ //family: "Microsoft Yahei",
+ weight: "bold"
+ }
+ },
"title": null
})
}else{