百度地图Label 样式:label.setStyle

创建文本标注对象设置样式的时候,其中的backgroundColor属性居然还支持透明啊,不过改变数值好像对效果没有影响

var numLabel = new BMap.Label(num);
numLabel.setStyle(
{
  
color : "white", //字体颜色
  fontSize : "16px",//字体大小   

  backgroundColor :"0.05", //文本标注背景颜色 

  border :"0",   

  fontWeight :"bold" //字体加粗
});
原文地址:https://www.cnblogs.com/shuilangyizu/p/5893361.html