show selected callsign on the map

This commit is contained in:
Jakob Ketterl
2019-07-06 15:04:39 +02:00
parent 089964a5eb
commit 3f05565b7b
2 changed files with 20 additions and 2 deletions

View File

@ -1351,8 +1351,8 @@ function update_metadata(meta) {
if (meta.mode && meta.mode != "") {
mode = "Mode: " + meta.mode;
source = meta.source || "";
if (meta.lat && meta.lon) {
source = "<a class=\"openwebrx-maps-pin\" href=\"/map\"></a>" + source;
if (meta.lat && meta.lon && meta.source) {
source = "<a class=\"openwebrx-maps-pin\" href=\"/map?callsign=" + meta.source + "\" target=\"_blank\"></a>" + source;
}
up = meta.up ? "Up: " + meta.up : "";
down = meta.down ? "Down: " + meta.down : "";