+ session->flashdata('message')) { ?>
+
+
+
session->flashdata('message'); ?>
+
+
+
diff --git a/assets/css/cosmo_wide/overrides.css b/assets/css/cosmo_wide/overrides.css
index 729f7b612..fb0d66928 100644
--- a/assets/css/cosmo_wide/overrides.css
+++ b/assets/css/cosmo_wide/overrides.css
@@ -65,6 +65,11 @@
height: 500px !important;
}
+#gridsquare_map {
+ height: calc(100vh - 380px) !important;
+ max-height: 900px !important;
+}
+
@media (min-width: 992px) {
.modal-lg, .modal-xl {
max-width: 1300px;
diff --git a/assets/css/cyborg_wide/overrides.css b/assets/css/cyborg_wide/overrides.css
index 14dca4f97..1dbf2c575 100644
--- a/assets/css/cyborg_wide/overrides.css
+++ b/assets/css/cyborg_wide/overrides.css
@@ -223,6 +223,11 @@ path.grid-worked {
height: 500px !important;
}
+#gridsquare_map {
+ height: calc(100vh - 380px) !important;
+ max-height: 900px !important;
+}
+
#mapqso {
height: 400px !important;
}
diff --git a/assets/css/darkly_wide/overrides.css b/assets/css/darkly_wide/overrides.css
index 39f745e6d..7a0878e2b 100644
--- a/assets/css/darkly_wide/overrides.css
+++ b/assets/css/darkly_wide/overrides.css
@@ -241,6 +241,11 @@ div.alert-danger {
height: 500px !important;
}
+#gridsquare_map {
+ height: calc(100vh - 380px) !important;
+ max-height: 900px !important;
+}
+
#mapqso {
height: 400px !important;
}
diff --git a/assets/css/default_wide/overrides.css b/assets/css/default_wide/overrides.css
index f2f1749d4..a83139a56 100644
--- a/assets/css/default_wide/overrides.css
+++ b/assets/css/default_wide/overrides.css
@@ -65,6 +65,11 @@ thead > tr > td {
height: 500px !important;
}
+#gridsquare_map {
+ height: calc(100vh - 380px) !important;
+ max-height: 900px !important;
+}
+
@media (min-width: 992px) {
.modal-lg, .modal-xl {
max-width: 1300px;
diff --git a/assets/css/general.css b/assets/css/general.css
index 589906874..29fb898ca 100644
--- a/assets/css/general.css
+++ b/assets/css/general.css
@@ -666,6 +666,11 @@ div#station_logbooks_linked_table_paginate {
margin-bottom: 0px;
}
+#advancedmap {
+ height: calc(100vh - 280px) !important;
+ max-height: 1000px !important;
+}
+
.lotw-cert-list table {
margin-bottom: 0px;
}
@@ -835,14 +840,9 @@ label {
}
.coordinates {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- justify-content: center;
+ justify-content: center;
align-items: stretch;
}
-
.cohidden {
display:none;
}
diff --git a/assets/css/superhero_wide/overrides.css b/assets/css/superhero_wide/overrides.css
index 62808f476..b5367b4f4 100644
--- a/assets/css/superhero_wide/overrides.css
+++ b/assets/css/superhero_wide/overrides.css
@@ -87,6 +87,11 @@ path.grid-worked {
height: 400px !important;
}
+#gridsquare_map {
+ height: calc(100vh - 380px) !important;
+ max-height: 900px !important;
+}
+
/*
* Dark Navigation
*/
diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js
index 2f56f9240..6b422c0cc 100644
--- a/assets/js/sections/common.js
+++ b/assets/js/sections/common.js
@@ -929,28 +929,6 @@ $(document).ready(function() {
}
});
-// auto setting of gridmap height
-function set_map_height() {
- //header menu
- var headerNavHeight = $('nav').outerHeight();
- // console.log('nav: ' + headerNavHeight);
-
- // line with coordinates
- var coordinatesHeight = $('.coordinates').outerHeight();
- // console.log('.coordinates: ' + coordinatesHeight);
-
- // form for gridsquare map
- var gridsquareFormHeight = $('.gridsquare_map_form').outerHeight();
- // console.log('.gridsquare_map_form: ' + gridsquareFormHeight);
-
- // calculate correct map height
- var gridsquareMapHeight = window.innerHeight - headerNavHeight - coordinatesHeight - gridsquareFormHeight;
-
- // and set it
- $('#gridsquare_map').css('height', gridsquareMapHeight + 'px');
- // console.log('#gridsquare_map: ' + gridsquareMapHeight);
-}
-
console.log("Ready to unleash your coding prowess and join the fun?\n\n" +
"Check out our GitHub Repository and dive into the coding adventure:\n\n" +
diff --git a/assets/js/sections/ffma.js b/assets/js/sections/ffma.js
index 157afb8f3..0bfbe813d 100644
--- a/assets/js/sections/ffma.js
+++ b/assets/js/sections/ffma.js
@@ -13,8 +13,7 @@ function gridPlot(form) {
if(container != null){
container._leaflet_id = null;
container.remove();
- $("#gridmapcontainer").append('
');
- set_map_height();
+ $("#gridmapcontainer").append('
');
}
ajax_url = site_url + '/awards/getFfmaGridsjs';
@@ -24,7 +23,6 @@ function gridPlot(form) {
type: 'get',
success: function (data) {
$('.cohidden').show();
- set_map_height();
$(".ld-ext-right-plot").removeClass('running');
$(".ld-ext-right-plot").prop('disabled', false);
$('#plot').prop("disabled", false);
@@ -147,8 +145,5 @@ function spawnGridsquareModal(loc_4char) {
}
$(document).ready(function(){
- gridPlot(this.form);
- $(window).resize(function () {
- set_map_height();
- });
+ gridPlot(this.form);
})
diff --git a/assets/js/sections/gridmap.js b/assets/js/sections/gridmap.js
index b90f29519..807002bb7 100644
--- a/assets/js/sections/gridmap.js
+++ b/assets/js/sections/gridmap.js
@@ -39,8 +39,7 @@ function gridPlot(form, visitor=true) {
if(container != null){
container._leaflet_id = null;
container.remove();
- $("#gridmapcontainer").append('
');
- set_map_height();
+ $("#gridmapcontainer").append('
');
}
if (typeof type == 'undefined') { type=''; }
@@ -69,7 +68,6 @@ function gridPlot(form, visitor=true) {
},
success: function (data) {
$('.cohidden').show();
- set_map_height();
$(".ld-ext-right-plot").removeClass('running');
$(".ld-ext-right-plot").prop('disabled', false);
$('#plot').prop("disabled", false);
@@ -221,8 +219,5 @@ function clearMarkers() {
}
$(document).ready(function(){
- gridPlot(this.form, visitor);
- $(window).resize(function () {
- set_map_height();
- });
+ gridPlot(this.form, visitor);
})
diff --git a/assets/js/sections/gridmaster.js b/assets/js/sections/gridmaster.js
index 18d67cee3..b1a15bbf9 100644
--- a/assets/js/sections/gridmaster.js
+++ b/assets/js/sections/gridmaster.js
@@ -13,8 +13,7 @@ function gridPlot(form, dxcc) {
if(container != null){
container._leaflet_id = null;
container.remove();
- $("#gridmapcontainer").append('
');
- set_map_height();
+ $("#gridmapcontainer").append('
');
}
ajax_url = site_url + '/awards/getGridmasterGridsjs/'+dxcc;
@@ -28,7 +27,6 @@ function gridPlot(form, dxcc) {
success: function (data) {
$('.cohidden').show();
- set_map_height();
$(".ld-ext-right-plot").removeClass('running');
$(".ld-ext-right-plot").prop('disabled', false);
$('#plot').prop("disabled", false);
@@ -153,8 +151,5 @@ function spawnGridsquareModal(loc_4char) {
}
$(document).ready(function(){
- gridPlot(this.form, dxcc);
- $(window).resize(function () {
- set_map_height();
- });
+ gridPlot(this.form, dxcc);
})
diff --git a/assets/js/sections/logbookadvanced_map.js b/assets/js/sections/logbookadvanced_map.js
index 1b39a7163..7b6292c70 100644
--- a/assets/js/sections/logbookadvanced_map.js
+++ b/assets/js/sections/logbookadvanced_map.js
@@ -273,7 +273,7 @@ function loadMap(data, iconsList) {
container._leaflet_id = null;
container.remove();
$(".coordinates").remove();
- $("#lba_div").append('
');
+ $(".qso_manager").append('
');
$(".qso_manager").append('
' +
'
' + lang_gen_hamradio_latitude + '
' +
'
' +
@@ -287,7 +287,6 @@ function loadMap(data, iconsList) {
'
' +
'
');
$('.cohidden').show();
- set_advancedmap_height();
}
map = new L.Map('advancedmap', {
@@ -436,323 +435,292 @@ function loadMap(data, iconsList) {
}
}
-function createContentMessage(qso) {
- var table = '
' +
- '' +
- '| ' +
- 'Station callsign: ' + qso.mycallsign +
- " |
" +
- '' +
- '| ' +
- 'Gridsquare: ' + qso.mygridsquare +
- " |
";
- return (table += "
");
-}
+ function createContentMessage(qso) {
+ var table = '
' +
+ '' +
+ '| ' +
+ 'Station callsign: ' + qso.mycallsign +
+ " |
" +
+ '' +
+ '| ' +
+ 'Gridsquare: ' + qso.mygridsquare +
+ " |
";
+ return (table += "
");
+ }
-function createContentMessageDx(qso) {
- var table = '
' +
- '' +
- '| Callsign | ' +
- '' + qso.callsign + ' | ' +
- '
' +
- '' +
- '| Date/time | ' +
- '' + qso.datetime + ' | ' +
- '
' +
- '';
- if (qso.satname != "") {
- table += '| Band | ' +
- 'SAT ' + qso.satname
- if (qso.orbit != "") {
- table += ' (' + qso.orbit + ') '
- }
- table += ' | ' +
+ function createContentMessageDx(qso) {
+ var table = '' +
+ '' +
+ '| Callsign | ' +
+ '' + qso.callsign + ' | ' +
+ '
' +
+ '' +
+ '| Date/time | ' +
+ '' + qso.datetime + ' | ' +
'
' +
'';
- } else {
- table += '| Band | ' +
- '' + qso.band + ' | ' +
- '
' +
- '';
- }
- table += '| Mode | ' +
- '' + qso.mode + ' | ' +
- '
' +
- '';
- if (qso.gridsquare != undefined) {
- table += '| Gridsquare | ' +
- '' + qso.gridsquare + ' | ' +
- '
';
- }
- if (qso.distance != undefined) {
- table += 'Distance | ' +
- '' + qso.distance + ' | ' +
- '';
- }
- if (qso.bearing != undefined) {
- table += 'Bearing | ' +
- '' + qso.bearing + ' | ' +
- '';
- }
- return (table += '
');
-}
-
-function loadMapOptions(data) {
- $.ajax({
- url: base_url + 'index.php/user_options/get_map_custom',
- type: 'GET',
- dataType: 'json',
- error: function () {
- },
- success: function (json_mapinfo) {
- if (typeof json_mapinfo.qso !== "undefined") {
- iconsList = json_mapinfo;
+ if (qso.satname != "") {
+ table += 'Band | ' +
+ 'SAT ' + qso.satname
+ if (qso.orbit != "") {
+ table += ' (' + qso.orbit + ') '
}
- loadMap(data, iconsList)
- }
- });
-}
-
-function mapQsos(form) {
- $('#mapButton').prop("disabled", true).addClass("running");
-
- var id_list=[];
- var elements = $('#qsoList tbody input:checked');
- var nElements = elements.length;
-
- elements.each(function() {
- let id = $(this).first().closest('tr').data('qsoID')
- id_list.push(id);
- unselectQsoID(id);
- });
-
- $("#qsoList").attr("Hidden", true);
- $("#qsoList_wrapper").attr("Hidden", true);
- $("#qsoList_info").attr("Hidden", true);
-
- amap = $('#advancedmap').val();
- if (amap == undefined) {
- $("#lba_div").append('');
- }
-
- if (id_list.length > 0) {
- $.ajax({
- url: base_url + 'index.php/logbookadvanced/mapSelectedQsos',
- type: 'post',
- data: {
- ids: id_list,
- de: form.de.value
- },
- success: function(data) {
- loadMapOptions(data);
- },
- error: function() {
- $('#mapButton').prop("disabled", false).removeClass("running");
- },
- });
- } else {
- $.ajax({
- url: base_url + 'index.php/logbookadvanced/mapQsos',
- type: 'post',
- data: {
- dateFrom: form.dateFrom.value,
- dateTo: form.dateTo.value,
- de: form.de.value,
- dx: form.dx.value,
- mode: form.mode.value,
- band: form.band.value,
- qslSent: form.qslSent.value,
- qslReceived: form.qslReceived.value,
- qslSentMethod: this.qslSentMethod.value,
- qslReceivedMethod: this.qslReceivedMethod.value,
- iota: form.iota.value,
- dxcc: form.dxcc.value,
- propmode: form.selectPropagation.value,
- gridsquare: form.gridsquare.value,
- state: form.state.value,
- qsoresults: form.qsoResults.value,
- sats: form.sats.value,
- orbits: form.orbits.value,
- cqzone: form.cqzone.value,
- lotwSent: form.lotwSent.value,
- lotwReceived: form.lotwReceived.value,
- eqslSent: form.eqslSent.value,
- eqslReceived: form.eqslReceived.value,
- qslvia: $('[name="qslviainput"]').val(),
- sota: form.sota.value,
- pota: form.pota.value,
- operator: form.operator.value,
- wwff: form.wwff.value,
- qslimages: form.qslimages.value,
- },
- success: function(data) {
- loadMapOptions(data);
- },
- error: function() {
- $('#mapButton').prop("disabled", false).removeClass("running");
- },
- });
- }
-};
-
-function mapGlobeQsos(form) {
- var container = L.DomUtil.get('advancedmap');
- if(container != null){
- container._leaflet_id = null;
- container.remove();
- $(".coordinates").remove();
- }
-
- var id_list=[];
- var elements = $('#qsoList tbody input:checked');
- var nElements = elements.length;
-
- elements.each(function() {
- let id = $(this).first().closest('tr').data('qsoID')
- id_list.push(id);
- unselectQsoID(id);
- });
-
- $("#qsoList").attr("Hidden", true);
- $("#qsoList_wrapper").attr("Hidden", true);
- $("#qsoList_info").attr("Hidden", true);
-
- amap = $('#advancedmap').val();
- if (amap == undefined) {
- $("#lba_div").append('');
- }
-
- if (id_list.length > 0) {
- $.ajax({
- url: base_url + 'index.php/logbookadvanced/mapSelectedQsos',
- type: 'post',
- data: {
- ids: id_list,
- de: form.de.value
- },
- success: function(data) {
- globemap(data);
- },
- error: function() {
-
- },
- });
- } else {
- $.ajax({
- url: base_url + 'index.php/logbookadvanced/mapQsos',
- type: 'post',
- data: {
- dateFrom: form.dateFrom.value,
- dateTo: form.dateTo.value,
- de: form.de.value,
- dx: form.dx.value,
- mode: form.mode.value,
- band: form.band.value,
- qslSent: form.qslSent.value,
- qslReceived: form.qslReceived.value,
- qslSentMethod: this.qslSentMethod.value,
- qslReceivedMethod: this.qslReceivedMethod.value,
- iota: form.iota.value,
- dxcc: form.dxcc.value,
- propmode: form.selectPropagation.value,
- gridsquare: form.gridsquare.value,
- state: form.state.value,
- qsoresults: form.qsoResults.value,
- sats: form.sats.value,
- orbits: form.orbits.value,
- cqzone: form.cqzone.value,
- lotwSent: form.lotwSent.value,
- lotwReceived: form.lotwReceived.value,
- eqslSent: form.eqslSent.value,
- eqslReceived: form.eqslReceived.value,
- qslvia: $('[name="qslviainput"]').val(),
- sota: form.sota.value,
- pota: form.pota.value,
- operator: form.operator.value,
- wwff: form.wwff.value,
- qslimages: form.qslimages.value,
- },
- success: function(data) {
- globemap(data);
- },
- error: function() {
-
- },
- });
- }
-};
-
-function globemap(x) {
- globePayArc=[];
- globePayLab=[];
- x.forEach((element) => {
- let OneQsoArc={};
- OneQsoArc.startLat=element.latlng1[0];
- OneQsoArc.startLng=element.latlng1[1];
- OneQsoArc.endLat=element.latlng2[0];
- OneQsoArc.endLng=element.latlng2[1];
- OneQsoArc.name=element.callsign;
- if (element.confirmed) {
- OneQsoArc.color = 'green';
+ table += ' | ' +
+ '
' +
+ '';
} else {
- OneQsoArc.color = 'red';
+ table += '| Band | ' +
+ '' + qso.band + ' | ' +
+ '
' +
+ '';
}
- // 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];
- OneQsoLab.lng=element.latlng2[1];
- OneQsoLab.text=element.callsign;
- globePayLab.push(OneQsoLab);
- });
- renderGlobe(globePayArc,globePayLab);
-}
+ table += '| Mode | ' +
+ '' + qso.mode + ' | ' +
+ '
' +
+ '';
+ if (qso.gridsquare != undefined) {
+ table += '| Gridsquare | ' +
+ '' + qso.gridsquare + ' | ' +
+ '
';
+ }
+ if (qso.distance != undefined) {
+ table += 'Distance | ' +
+ '' + qso.distance + ' | ' +
+ '';
+ }
+ if (qso.bearing != undefined) {
+ table += 'Bearing | ' +
+ '' + qso.bearing + ' | ' +
+ '';
+ }
+ return (table += '
');
+ }
-function renderGlobe(arcsData,labelData) {
- Globe()
- .globeImageUrl(base_url + '/assets/images/earth-blue-marble.jpg')
- .pointOfView({ lat: arcsData[0].startLat, lng: arcsData[0].startLng, altitude:1}, 100)
- .labelsData(labelData)
- .arcsData(arcsData)
- .arcColor('color')
- //.arcAltitude('altitude')
- .arcAltitudeAutoScale(.3)
- .arcStroke(.2)
- .arcDashLength(() => .1)
- .arcDashGap(() => 0.01)
- .arcDashAnimateTime(() => 4000 + 500)
- (document.getElementById('advancedmap'))
-}
+ function loadMapOptions(data) {
+ $.ajax({
+ url: base_url + 'index.php/user_options/get_map_custom',
+ type: 'GET',
+ dataType: 'json',
+ error: function () {
+ },
+ success: function (json_mapinfo) {
+ if (typeof json_mapinfo.qso !== "undefined") {
+ iconsList = json_mapinfo;
+ }
+ loadMap(data, iconsList)
+ }
+ });
+ }
-// auto setting of gridmap height
-function set_advancedmap_height() {
- //header menu
- var headerNavHeight = $('nav').outerHeight();
- // console.log('nav: ' + headerNavHeight);
+ function mapQsos(form) {
+ $('#mapButton').prop("disabled", true).addClass("running");
- // line with coordinates
- var coordinatesHeight = $('.coordinates').outerHeight();
- // console.log('.coordinates: ' + coordinatesHeight);
+ var id_list=[];
+ var elements = $('#qsoList tbody input:checked');
+ var nElements = elements.length;
- // form for gridsquare map
- var qsoManagerHeight = $('.qso_manager').outerHeight();
- // console.log('.qso_manager: ' + qsoManagerHeight);
+ elements.each(function() {
+ let id = $(this).first().closest('tr').data('qsoID')
+ id_list.push(id);
+ unselectQsoID(id);
+ });
- // calculate correct map height
- var advancedMapHeight = window.innerHeight - headerNavHeight - coordinatesHeight - qsoManagerHeight;
+ $("#qsoList").attr("Hidden", true);
+ $("#qsoList_wrapper").attr("Hidden", true);
+ $("#qsoList_info").attr("Hidden", true);
- // and set it
- $('#advancedmap').css('height', advancedMapHeight + 'px');
- // console.log('#advancedmap: ' + advancedMapHeight);
-}
+ amap = $('#advancedmap').val();
+ if (amap == undefined) {
+ $(".qso_manager").append('
');
+ }
+
+ if (id_list.length > 0) {
+ $.ajax({
+ url: base_url + 'index.php/logbookadvanced/mapSelectedQsos',
+ type: 'post',
+ data: {
+ ids: id_list,
+ de: form.de.value
+ },
+ success: function(data) {
+ loadMapOptions(data);
+ },
+ error: function() {
+ $('#mapButton').prop("disabled", false).removeClass("running");
+ },
+ });
+ } else {
+ $.ajax({
+ url: base_url + 'index.php/logbookadvanced/mapQsos',
+ type: 'post',
+ data: {
+ dateFrom: form.dateFrom.value,
+ dateTo: form.dateTo.value,
+ de: form.de.value,
+ dx: form.dx.value,
+ mode: form.mode.value,
+ band: form.band.value,
+ qslSent: form.qslSent.value,
+ qslReceived: form.qslReceived.value,
+ qslSentMethod: this.qslSentMethod.value,
+ qslReceivedMethod: this.qslReceivedMethod.value,
+ iota: form.iota.value,
+ dxcc: form.dxcc.value,
+ propmode: form.selectPropagation.value,
+ gridsquare: form.gridsquare.value,
+ state: form.state.value,
+ qsoresults: form.qsoResults.value,
+ sats: form.sats.value,
+ orbits: form.orbits.value,
+ cqzone: form.cqzone.value,
+ lotwSent: form.lotwSent.value,
+ lotwReceived: form.lotwReceived.value,
+ eqslSent: form.eqslSent.value,
+ eqslReceived: form.eqslReceived.value,
+ qslvia: $('[name="qslviainput"]').val(),
+ sota: form.sota.value,
+ pota: form.pota.value,
+ operator: form.operator.value,
+ wwff: form.wwff.value,
+ qslimages: form.qslimages.value,
+ },
+ success: function(data) {
+ loadMapOptions(data);
+ },
+ error: function() {
+ $('#mapButton').prop("disabled", false).removeClass("running");
+ },
+ });
+ }
+ };
+
+ function mapGlobeQsos(form) {
+ var container = L.DomUtil.get('advancedmap');
+ if(container != null){
+ container._leaflet_id = null;
+ container.remove();
+ $(".coordinates").remove();
+ }
+
+ var id_list=[];
+ var elements = $('#qsoList tbody input:checked');
+ var nElements = elements.length;
+
+ elements.each(function() {
+ let id = $(this).first().closest('tr').data('qsoID')
+ id_list.push(id);
+ unselectQsoID(id);
+ });
+
+ $("#qsoList").attr("Hidden", true);
+ $("#qsoList_wrapper").attr("Hidden", true);
+ $("#qsoList_info").attr("Hidden", true);
+
+ amap = $('#advancedmap').val();
+ if (amap == undefined) {
+ $(".qso_manager").append('
');
+ }
+
+ if (id_list.length > 0) {
+ $.ajax({
+ url: base_url + 'index.php/logbookadvanced/mapSelectedQsos',
+ type: 'post',
+ data: {
+ ids: id_list,
+ de: form.de.value
+ },
+ success: function(data) {
+ globemap(data);
+ },
+ error: function() {
+
+ },
+ });
+ } else {
+ $.ajax({
+ url: base_url + 'index.php/logbookadvanced/mapQsos',
+ type: 'post',
+ data: {
+ dateFrom: form.dateFrom.value,
+ dateTo: form.dateTo.value,
+ de: form.de.value,
+ dx: form.dx.value,
+ mode: form.mode.value,
+ band: form.band.value,
+ qslSent: form.qslSent.value,
+ qslReceived: form.qslReceived.value,
+ qslSentMethod: this.qslSentMethod.value,
+ qslReceivedMethod: this.qslReceivedMethod.value,
+ iota: form.iota.value,
+ dxcc: form.dxcc.value,
+ propmode: form.selectPropagation.value,
+ gridsquare: form.gridsquare.value,
+ state: form.state.value,
+ qsoresults: form.qsoResults.value,
+ sats: form.sats.value,
+ orbits: form.orbits.value,
+ cqzone: form.cqzone.value,
+ lotwSent: form.lotwSent.value,
+ lotwReceived: form.lotwReceived.value,
+ eqslSent: form.eqslSent.value,
+ eqslReceived: form.eqslReceived.value,
+ qslvia: $('[name="qslviainput"]').val(),
+ sota: form.sota.value,
+ pota: form.pota.value,
+ operator: form.operator.value,
+ wwff: form.wwff.value,
+ qslimages: form.qslimages.value,
+ },
+ success: function(data) {
+ globemap(data);
+ },
+ error: function() {
+
+ },
+ });
+ }
+ };
+
+ function globemap(x) {
+ globePayArc=[];
+ globePayLab=[];
+ x.forEach((element) => {
+ let OneQsoArc={};
+ OneQsoArc.startLat=element.latlng1[0];
+ OneQsoArc.startLng=element.latlng1[1];
+ OneQsoArc.endLat=element.latlng2[0];
+ OneQsoArc.endLng=element.latlng2[1];
+ OneQsoArc.name=element.callsign;
+ 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];
+ OneQsoLab.lng=element.latlng2[1];
+ OneQsoLab.text=element.callsign;
+ globePayLab.push(OneQsoLab);
+ });
+ renderGlobe(globePayArc,globePayLab);
+ }
+
+ function renderGlobe(arcsData,labelData) {
+ Globe()
+ .globeImageUrl(base_url + '/assets/images/earth-blue-marble.jpg')
+ .pointOfView({ lat: arcsData[0].startLat, lng: arcsData[0].startLng, altitude:1}, 100)
+ .labelsData(labelData)
+ .arcsData(arcsData)
+ .arcColor('color')
+ //.arcAltitude('altitude')
+ .arcAltitudeAutoScale(.3)
+ .arcStroke(.2)
+ .arcDashLength(() => .1)
+ .arcDashGap(() => 0.01)
+ .arcDashAnimateTime(() => 4000 + 500)
+ (document.getElementById('advancedmap'))
+ }
-$(document).ready(function() {
- $(window).resize(function() {
- set_advancedmap_height();
- });
- $('.lba_buttons').click(function() {
- // we need some delay because of the bs collapse menu
- setTimeout(set_advancedmap_height, 400);
- });
-});
\ No newline at end of file