Skip to content

Commit

Permalink
refactor add more calculate distance in ex-two
Browse files Browse the repository at this point in the history
  • Loading branch information
ptduy14 committed May 16, 2024
1 parent 3a941bb commit 5c2c115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/ex-two.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@

if (startPoint && endPoint) {
polyline = L.polyline([startPoint, endPoint], { color: "red" }).addTo(map);
startPoint = null;
endPoint = null;
}
});
</script>
Expand Down

0 comments on commit 5c2c115

Please sign in to comment.