diff --git a/htdocs/lib/MapMarkers.js b/htdocs/lib/MapMarkers.js index 5120c3ac..fc61b033 100644 --- a/htdocs/lib/MapMarkers.js +++ b/htdocs/lib/MapMarkers.js @@ -11,9 +11,6 @@ function MarkerManager() { // Colors used for marker types this.colors = { - 'KiwiSDR' : '#800000', - 'WebSDR' : '#000080', - 'OpenWebRX' : '#004000', 'HFDL' : '#004000', 'VDL2' : '#000080', 'ADSB' : '#800000', @@ -22,11 +19,6 @@ function MarkerManager() { // Symbols used for marker types this.symbols = { - 'KiwiSDR' : '◬', - 'WebSDR' : '◬', - 'OpenWebRX' : '◬', - 'Stations' : '⍑', //'◎', - 'Repeaters' : '⋈', 'APRS' : '⚐', 'AIS' : '⩯', 'HFDL' : '✈', @@ -37,11 +29,7 @@ function MarkerManager() { // Marker type shown/hidden status this.enabled = { - 'KiwiSDR' : false, - 'WebSDR' : false, - 'OpenWebRX' : false, - 'Stations' : false, - 'Repeaters' : false + 'APRS' : true }; } @@ -231,7 +219,6 @@ Marker.prototype.remove = function() { // // Feature Marker -// Represents static map features, such as stations and receivers. // Derived classes have to implement: // setMarkerOpacity() // @@ -245,14 +232,7 @@ FeatureMarker.prototype.update = function(update) { this.mode = update.mode; this.url = update.location.url; this.comment = update.location.comment; - // Receivers this.altitude = update.location.altitude; - this.device = update.location.device; - this.antenna = update.location.antenna; - // EIBI - this.schedule = update.location.schedule; - // Repeaters - this.freq = update.location.freq; this.status = update.location.status; this.updated = update.location.updated; this.mmode = update.location.mmode; @@ -298,7 +278,7 @@ FeatureMarker.prototype.getAnchorOffset = function() { return [0, -this.symHeight/2]; }; -FeatureMarker.prototype.getInfoHTML = function(name, receiverMarker = null) { +FeatureMarker.prototype.getInfoHTML = function(name) { var nameString = this.url? Marker.linkify(name, this.url) : name; var commentString = this.comment? '
' + Marker.makeListTitle('Schedule') + scheduleString + '
'; } - if (receiverMarker) { - distance = ' at ' + Marker.distanceKm(receiverMarker.position, this.position) + ' km'; - } - return '' + Marker.makeListTitle('Details') + detailsString + '
'; } - if (receiverMarker) { - distance = ' at ' + Marker.distanceKm(receiverMarker.position, this.position) + ' km'; - } - if (this.hops && this.hops.length > 0) { var hops = this.hops.toString().split(','); hops.forEach(function(part, index, hops) {