From 5c2c1157eb0bc8a73ef781daff871c0744774f23 Mon Sep 17 00:00:00 2001 From: ptduy14 Date: Thu, 16 May 2024 23:07:33 +0700 Subject: [PATCH] refactor add more calculate distance in ex-two --- pages/ex-two.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/ex-two.html b/pages/ex-two.html index affe4b5..a8ddbd6 100644 --- a/pages/ex-two.html +++ b/pages/ex-two.html @@ -99,6 +99,8 @@ if (startPoint && endPoint) { polyline = L.polyline([startPoint, endPoint], { color: "red" }).addTo(map); + startPoint = null; + endPoint = null; } });