فهرست منبع

修复概况页图表数据问题

laiguoran 3 سال پیش
والد
کامیت
1c94ed333d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/view/tender/detail.ejs

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

@@ -1377,7 +1377,7 @@
                     const center = JSON.parse(tm.center);
                     pointList.push(turf.point([center.lng, center.lat]));
                     if (tm.tips) {
-                        const centerResult = gcoord.transform([map_json[Math.ceil(map_json.length/2)].lng, map_json[Math.ceil(map_json.length/2)].lat], gcoord.WGS84, gcoord.BD09);
+                        const centerResult = gcoord.transform([map_json[Math.floor(map_json.length/2)].lng, map_json[Math.floor(map_json.length/2)].lat], gcoord.WGS84, gcoord.BD09);
                         centerList.push({ map: new BMapGL.Point(centerResult[0], centerResult[1]), color: tm.color, tips: tm.tips });
                     }
                 }