|
@@ -1346,14 +1346,14 @@
|
|
|
for (const cl of centerList) {
|
|
|
const opts = {
|
|
|
position : cl.map, // 指定文本标注所在的地理位置
|
|
|
- offset : new BMapGL.Size(0, 0) //设置文本偏移量
|
|
|
+ offset : new BMapGL.Size(5, 5) //设置文本偏移量
|
|
|
}
|
|
|
const label = new BMapGL.Label(cl.tips, opts); // 创建文本标注对象
|
|
|
label.setStyle({
|
|
|
color : cl.color,
|
|
|
fontSize : '10px',
|
|
|
- height : '20px',
|
|
|
- lineHeight : '20px',
|
|
|
+ height : '18px',
|
|
|
+ lineHeight : '18px',
|
|
|
fontFamily: '微软雅黑',
|
|
|
border: '1px solid ' + cl.color,
|
|
|
});
|