Display location on map node details

This commit is contained in:
maciejhirsz
2018-07-18 16:59:47 +02:00
parent 3696d7c46e
commit 5c1480f9f5
11 changed files with 30 additions and 17 deletions
+2 -2
View File
@@ -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;
}