mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 05:41:01 +00:00
Display location on map node details
This commit is contained in:
@@ -139,14 +139,14 @@ export class Connection {
|
||||
}
|
||||
|
||||
case Actions.LocatedNode: {
|
||||
const [id, latitude, longitude] = message.payload;
|
||||
const [id, latitude, longitude, city] = message.payload;
|
||||
const node = nodes.get(id);
|
||||
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
|
||||
node.location = [latitude, longitude];
|
||||
node.location = [latitude, longitude, city];
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user