mirror of
https://github.com/dedicatedcode/reitti.git
synced 2026-01-09 17:37: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>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.5.4</version>
|
<version>3.5.5</version>
|
||||||
<relativePath/> <!-- lookup parent from repository -->
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.dedicatedcode</groupId>
|
<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/htmx.min.js"></script>
|
||||||
<script src="/js/leaflet.js"></script>
|
<script src="/js/leaflet.js"></script>
|
||||||
<script src="/js/TileLayer.Grayscale.js"></script>
|
<script src="/js/TileLayer.Grayscale.js"></script>
|
||||||
|
<script src="/js/leaflet.geodesic.2.7.2.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="message-container">
|
<div id="message-container">
|
||||||
@@ -230,12 +231,13 @@
|
|||||||
|
|
||||||
// Function to update map with raw location points
|
// Function to update map with raw location points
|
||||||
function updateMapWithRawPoints(rawPointsData, color) {
|
function updateMapWithRawPoints(rawPointsData, color) {
|
||||||
const rawPointsPath = L.polyline([], {
|
const rawPointsPath = L.geodesic([], {
|
||||||
color: color == null ? '#f1ba63' : color,
|
color: color == null ? '#f1ba63' : color,
|
||||||
weight: 6,
|
weight: 6,
|
||||||
opacity: 0.9,
|
opacity: 0.9,
|
||||||
lineJoin: 'round',
|
lineJoin: 'round',
|
||||||
lineCap: 'round'
|
lineCap: 'round',
|
||||||
|
steps: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
if (rawPointsData && rawPointsData.points && rawPointsData.points.length > 0) {
|
if (rawPointsData && rawPointsData.points && rawPointsData.points.length > 0) {
|
||||||
@@ -253,12 +255,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectedPath = L.polyline([], {
|
const selectedPath = L.geodesic([], {
|
||||||
color: '#ff984f',
|
color: '#ff984f',
|
||||||
weight: 6,
|
weight: 6,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
lineJoin: 'round',
|
lineJoin: 'round',
|
||||||
lineCap: 'round'
|
lineCap: 'round',
|
||||||
|
steps: 2
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const rawPointPaths = [];
|
const rawPointPaths = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user