mirror of
https://github.com/dedicatedcode/reitti.git
synced 2026-01-09 01:17:57 -05:00
164 feature request enhance map for long distances between two points (#184)
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -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>
|
||||
|
||||
2
src/main/resources/static/js/leaflet.geodesic.2.7.2.js
Normal file
2
src/main/resources/static/js/leaflet.geodesic.2.7.2.js
Normal file
File diff suppressed because one or more lines are too long
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user