提交 5211068c authored 作者: 姜立玮's avatar 姜立玮 🤼

修改点标记

上级 aa4de20d
...@@ -102,15 +102,25 @@ export function setStyle() { ...@@ -102,15 +102,25 @@ export function setStyle() {
} else { } else {
let data = feature.get("features")[0].get('data') let data = feature.get("features")[0].get('data')
if (data) { if (data) {
let text=""
if(data.engineer){
text =data.factoryName+" \r\n "+ data.engineer
}else{
text =data.factoryName+" \r\n "
}
if (data.engineerCompletionTime) { if (data.engineerCompletionTime) {
return [new Style({ return [new Style({
image: outerSonCircleGreen, image: outerSonCircleGreen,
}), }),
new Style({ new Style({
image: innerSonCircleGreen, image: innerSonCircleGreen,
text: new Text({ text: new Text({
text: data.factoryName, offsetY: 10,
text: text,
fill: new Fill({ fill: new Fill({
color: '#fff', color: '#fff',
}), }),
...@@ -126,9 +136,11 @@ export function setStyle() { ...@@ -126,9 +136,11 @@ export function setStyle() {
image: outerSonCircle, image: outerSonCircle,
}), }),
new Style({ new Style({
image: innerSonCircle, image: innerSonCircle,
text: new Text({ text: new Text({
text: data.factoryName, offsetY: 10,
text: text,
fill: new Fill({ fill: new Fill({
color: '#fff', color: '#fff',
}), }),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论