diff --git a/htdocs/lib/MapMarkers.js b/htdocs/lib/MapMarkers.js index fc61b033..973deef1 100644 --- a/htdocs/lib/MapMarkers.js +++ b/htdocs/lib/MapMarkers.js @@ -280,7 +280,7 @@ FeatureMarker.prototype.getAnchorOffset = function() { FeatureMarker.prototype.getInfoHTML = function(name) { var nameString = this.url? Marker.linkify(name, this.url) : name; - var commentString = this.comment? '
' + this.comment + '
' : ''; var detailsString = ''; var scheduleString = ''; var distance = ''; @@ -294,29 +294,13 @@ FeatureMarker.prototype.getInfoHTML = function(name) { detailsString += Marker.makeListItem('Altitude', this.altitude.toFixed(0) + ' m'); } - if (this.device) { - detailsString += Marker.makeListItem('Device', this.device.manufacturer? - this.device.device + ' by ' + this.device.manufacturer : this.device - ); - } - - if (this.antenna) { - detailsString += Marker.makeListItem('Antenna', Marker.truncate(this.antenna, 24)); - } - - if (this.freq) { - detailsString += Marker.makeListItem('Frequency', Marker.linkifyFreq( - this.freq, this.mmode? this.mmode:'fm' - )); - } - if (this.mmode) { detailsString += Marker.makeListItem('Modulation', this.mmode.toUpperCase()); } if (!this.comment && this.status && this.updated) { - commentString = '' + this.status + + ', last updated on ' + this.updated + '
'; } else { if (this.status) { detailsString += Marker.makeListItem('Status', this.status); @@ -333,31 +317,12 @@ FeatureMarker.prototype.getInfoHTML = function(name) { }); } - if (this.schedule) { - for (var j=0 ; j' + Marker.makeListTitle('Details') + detailsString + '
'; + detailsString = '' + Marker.makeListTitle('Schedule') + scheduleString + '
'; + scheduleString = '' + Marker.makeListTitle('Comment') + '
' + Marker.makeListTitle('Weather'); + weatherString += '
' + Marker.makeListTitle('Details') + detailsString + '
'; + detailsString = '' + timeString + ' using ' + this.mode + + ( this.band ? ' on ' + this.band : '' ) + '
' + commentString + weatherString + detailsString + hopsString; };