Browse Source

偏移量调整

laiguoran 3 years ago
parent
commit
c0943f0a5d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/view/tender/detail.ejs

+ 3 - 3
app/view/tender/detail.ejs

@@ -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,
                     });