创建文本标注对象设置样式的时候,其中的backgroundColor属性居然还支持透明啊,不过改变数值好像对效果没有影响
var numLabel = new BMap.Label(num);
numLabel.setStyle({
color : "white", //字体颜色
fontSize : "16px",//字体大小
backgroundColor :"0.05", //文本标注背景颜色
border :"0",
fontWeight :"bold" //字体加粗 });
创建文本标注对象设置样式的时候,其中的backgroundColor属性居然还支持透明啊,不过改变数值好像对效果没有影响
var numLabel = new BMap.Label(num);
numLabel.setStyle({
color : "white", //字体颜色
fontSize : "16px",//字体大小
backgroundColor :"0.05", //文本标注背景颜色
border :"0",
fontWeight :"bold" //字体加粗 });
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。