diff --git a/src/views/index.vue b/src/views/index.vue index 93df3ae..c3ff360 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1180,7 +1180,7 @@ function getBoundingBoxAndSize(pointsArr) { const height = Math.round(haversineDistance(minLat, minLon, maxLat, minLon)); // 左下角参考点 - const refPoint = {lon: minLon, lat: minLat}; + const refPoint = {lon: maxLon, lat: minLat}; // 找出距离 refPoint 最近的点 let nearestPoint = null;