mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-27 01:24:16 +00:00
Added Colors for cnfmd/wked
This commit is contained in:
@@ -12,7 +12,13 @@ $(document).ready(function() {
|
||||
OneQsoArc.endLat=element.latlng2[0];
|
||||
OneQsoArc.endLng=element.latlng2[1];
|
||||
OneQsoArc.name=element.callsign;
|
||||
OneQsoArc.color = [['red', 'white', 'blue', 'green'][Math.round(Math.random() * 3)], ['red', 'white', 'blue', 'green'][Math.round(Math.random() * 3)]]
|
||||
if (element.confirmed) {
|
||||
OneQsoArc.color = 'green';
|
||||
} else {
|
||||
OneQsoArc.color = 'red';
|
||||
}
|
||||
// OneQsoArc.color = [['red', 'white', 'blue', 'green'][Math.round(Math.random() * 3)], ['red', 'white', 'blue', 'green'][Math.round(Math.random() * 3)]]
|
||||
OneQsoArc.altitude=0.15;
|
||||
globePayArc.push(OneQsoArc);
|
||||
let OneQsoLab={};
|
||||
OneQsoLab.lat=element.latlng2[0];
|
||||
@@ -46,6 +52,9 @@ $(document).ready(function() {
|
||||
.labelsData(labelData)
|
||||
.arcsData(arcsData)
|
||||
.arcColor('color')
|
||||
//.arcAltitude('altitude')
|
||||
.arcAltitudeAutoScale(.3)
|
||||
.arcStroke(.2)
|
||||
.arcDashLength(() => 1)
|
||||
.arcDashGap(() => 0)
|
||||
.arcDashAnimateTime(() => 4000 + 500)
|
||||
|
||||
Reference in New Issue
Block a user