164 feature request enhance map for long distances between two points (#184)

This commit is contained in:
Daniel Graf
2025-08-29 13:00:31 +02:00
committed by GitHub
parent ac6654c0f0
commit 8ec9a3d3a1
3 changed files with 11 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.4</version>
<version>3.5.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.dedicatedcode</groupId>

File diff suppressed because one or more lines are too long

View File

@@ -17,6 +17,7 @@
<script src="/js/htmx.min.js"></script>
<script src="/js/leaflet.js"></script>
<script src="/js/TileLayer.Grayscale.js"></script>
<script src="/js/leaflet.geodesic.2.7.2.js"></script>
</head>
<body>
<div id="message-container">
@@ -230,12 +231,13 @@
// Function to update map with raw location points
function updateMapWithRawPoints(rawPointsData, color) {
const rawPointsPath = L.polyline([], {
const rawPointsPath = L.geodesic([], {
color: color == null ? '#f1ba63' : color,
weight: 6,
opacity: 0.9,
lineJoin: 'round',
lineCap: 'round'
lineCap: 'round',
steps: 2
});
if (rawPointsData && rawPointsData.points && rawPointsData.points.length > 0) {
@@ -253,12 +255,14 @@
}
}
const selectedPath = L.polyline([], {
const selectedPath = L.geodesic([], {
color: '#ff984f',
weight: 6,
opacity: 1,
lineJoin: 'round',
lineCap: 'round'
lineCap: 'round',
steps: 2
});
const rawPointPaths = [];