創建文本標注對象設置樣式的時候,其中的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刪除。