mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
config migration for receiver_gps
This commit is contained in:
parent
2b7d6738f1
commit
fd9e913a49
7 changed files with 45 additions and 11 deletions
|
|
@ -219,8 +219,8 @@
|
|||
|
||||
map = new google.maps.Map($('.openwebrx-map')[0], {
|
||||
center: {
|
||||
lat: config.receiver_gps[0],
|
||||
lng: config.receiver_gps[1]
|
||||
lat: config.receiver_gps.lat,
|
||||
lng: config.receiver_gps.lon
|
||||
},
|
||||
zoom: 5,
|
||||
mapTypeId: mapTypeId
|
||||
|
|
|
|||
|
|
@ -1097,7 +1097,7 @@ function on_ws_recv(evt) {
|
|||
case "receiver_details":
|
||||
var r = json['value'];
|
||||
e('webrx-rx-title').innerHTML = r['receiver_name'];
|
||||
var query = encodeURIComponent(r['receiver_gps'][0] + ',' + r['receiver_gps'][1]);
|
||||
var query = encodeURIComponent(r['receiver_gps']['lat'] + ',' + r['receiver_gps']['lon']);
|
||||
e('webrx-rx-desc').innerHTML = r['receiver_location'] + ' | Loc: ' + r['locator'] + ', ASL: ' + r['receiver_asl'] + ' m, <a href="https://www.google.com/maps/search/?api=1&query=' + query + '" target="_blank" onclick="dont_toggle_rx_photo();">[maps]</a>';
|
||||
e('webrx-rx-photo-title').innerHTML = r['photo_title'];
|
||||
e('webrx-rx-photo-desc').innerHTML = r['photo_desc'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue