arcgis js featureLayer 文本注记(textsymbol)背景颜色不显示,文本颜色等其他的都能生效?是不是和字体有关系?arcgis字体从哪下载的?字体
featureLayer 文本注记(textsymbol)的属性值设置如下:
symbol={
type: "text", // autocasts as new TextSymbol()
color: labelingInfo.color, //labelingInfo.color 文本颜色
backgroundColor: labelingInfo.backgroundColor, //labelingInfo.backgroundColor
xoffset: labelingInfo.xoffset, //labelingInfo.xoffset //水平偏移
yoffset: labelingInfo.yoffset,//labelingInfo.yoffset//垂直偏移
font: { // autocast as new Font()
family: family, //sans-serif文本字体 labelingInfo.family
size: labelingInfo.size, //文本字体大小
weight: "normal" //文本字体加粗
}
},
symbol={
type: "text", // autocasts as new TextSymbol()
color: labelingInfo.color, //labelingInfo.color 文本颜色
backgroundColor: labelingInfo.backgroundColor, //labelingInfo.backgroundColor
xoffset: labelingInfo.xoffset, //labelingInfo.xoffset //水平偏移
yoffset: labelingInfo.yoffset,//labelingInfo.yoffset//垂直偏移
font: { // autocast as new Font()
family: family, //sans-serif文本字体 labelingInfo.family
size: labelingInfo.size, //文本字体大小
weight: "normal" //文本字体加粗
}
},
1 个回复
许丹石
赞同来自:
The background color of the label's bounding box. This property is only supported for MapImageLayer.
要回复问题请先登录或注册