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