创建文本标注对象设置样式的时候,其中的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
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
QQ咨询|关于我们|Archiver|手机版|小黑屋|( 辽ICP备15012455号-4 ) Powered by 期权论坛 X3.2 © 2001-2016 期权工具网&期权论坛 Inc.
下载期权论坛手机APP