mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Draw patrol commit ranges in the new map.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
* - CV waypoints
|
||||
* - Time of day/weather themeing
|
||||
* - Exclusion zones
|
||||
* - Commit ranges
|
||||
* - Supply route status
|
||||
* - "Actual" front line
|
||||
* - Debug flight plan drawing
|
||||
@@ -247,8 +246,14 @@ function drawFlightPlan(flight) {
|
||||
});
|
||||
|
||||
if (flight.selected) {
|
||||
L.polyline(points, { color: highlight }).addTo(selectedFlightPlansLayer);
|
||||
L.polyline(points, { color: highlight }).addTo(layer);
|
||||
L.polyline(points, { color: highlight })
|
||||
.addTo(layer)
|
||||
.addTo(selectedFlightPlansLayer);
|
||||
if (flight.commitBoundary) {
|
||||
L.polyline(flight.commitBoundary, { color: highlight, weight: 1 }).addTo(
|
||||
layer.addTo(selectedFlightPlansLayer)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
L.polyline(points, { color: color, weight: 1 }).addTo(layer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user