Map color options (#1478)

* Add colors to the maps options

* Update assets build
This commit is contained in:
Nabeel S
2022-08-22 14:05:19 -04:00
committed by GitHub
parent b1ae0240be
commit 231e54ea5e
33 changed files with 17680 additions and 314 deletions
+2 -1
View File
@@ -33,6 +33,7 @@ export default (_opts) => {
positions: null,
render_elem: 'map',
aircraft_icon: '/assets/img/acars/aircraft.png',
flown_route_color: ACTUAL_ROUTE_COLOR,
units: 'nmi',
}, _opts);
@@ -76,7 +77,7 @@ export default (_opts) => {
layerSelFlight = new L.Geodesic([], {
weight: 5,
opacity: 0.9,
color: ACTUAL_ROUTE_COLOR,
color: opts.flown_route_color,
wrap: false,
}).addTo(map);