调整轨迹浮窗宽度

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-16 19:56:42 +08:00
co-authored by Claude
parent 5b873ea059
commit eeefdaa180
2 changed files with 3 additions and 3 deletions
@@ -106,7 +106,7 @@ function renderTrajectory() {
const isStart = index === 0 const isStart = index === 0
const isEnd = index === positions.length - 1 const isEnd = index === positions.length - 1
L.circleMarker(points[index], pointStyle(isStart, isEnd)) L.circleMarker(points[index], pointStyle(isStart, isEnd))
.bindPopup(buildPositionPopupHTML(position, isStart, isEnd), { maxWidth: 280, className: 'trajectory-point-popup' }) .bindPopup(buildPositionPopupHTML(position, isStart, isEnd), { maxWidth: 340, className: 'trajectory-point-popup' })
.addTo(trajectoryLayer) .addTo(trajectoryLayer)
}) })
map.fitBounds(L.latLngBounds(points), { padding: [24, 24], maxZoom: 14 }) map.fitBounds(L.latLngBounds(points), { padding: [24, 24], maxZoom: 14 })
+2 -2
View File
@@ -1308,8 +1308,8 @@ h3 {
} }
.trajectory-point-popup .leaflet-popup-content { .trajectory-point-popup .leaflet-popup-content {
width: 240px !important; width: 320px !important;
max-width: 240px !important; max-width: 320px !important;
} }
.trajectory-popup { .trajectory-popup {