diff --git a/htdocs/lib/MapMarkers.js b/htdocs/lib/MapMarkers.js index 4b839228..877f8e88 100644 --- a/htdocs/lib/MapMarkers.js +++ b/htdocs/lib/MapMarkers.js @@ -292,11 +292,7 @@ FeatureMarker.prototype.getInfoHTML = function(name, receiverMarker = null) { for (var j=0 ; j').text(input).html() }; +// Change frequency as required by given modulation +Utils.offsetFreq = function(freq, mod) { + switch(mod) { + case 'cw': + return freq - 800; + case 'fax': + return freq - 1900; + case 'cwdecoder': + case 'rtty450': + case 'rtty170': + case 'rtty85': + case 'sitorb': + case 'bpsk31': + case 'bpsk63': + return freq - 1000; + } + + return freq; +} + // Wrap given callsign or other ID into a clickable link. Utils.linkify = function(id, url = null, content = null, tip = null) { // If no specific content, use the ID itself