From 143e667b6254f2ec12adc375324fe3cd11ccdb32 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Thu, 31 Oct 2024 04:46:24 +0900 Subject: [PATCH] Restore returnAdjustmentPoint --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index d6a256b..eb3a12b 100644 --- a/index.js +++ b/index.js @@ -877,19 +877,17 @@ function getMci() { } else { var groupCnt = 0; if ((item.vm[j].location.longitude == item.vm[j - 1].location.longitude) && (item.vm[j].location.latitude == item.vm[j - 1].location.latitude)) { - groupCnt++; vmGeo.push([ item.vm[j].location.longitude * 1 + - (returnAdjustmentPoint(groupCnt).ax / zoomLevel) * radius, + (returnAdjustmentPoint(j).ax / zoomLevel) * radius, item.vm[j].location.latitude * 1 + - (returnAdjustmentPoint(groupCnt).ay / zoomLevel) * radius, + (returnAdjustmentPoint(j).ay / zoomLevel) * radius, ]); } else { vmGeo.push([ item.vm[j].location.longitude * 1, item.vm[j].location.latitude * 1, ]); - groupCnt = 0; } } validateNum++;