@@ -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 })
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user