Fixed the import networkmaps from open.
This commit is contained in:
parent
18412b7727
commit
2f9fba600e
|
@ -213,11 +213,14 @@ class Networkmap extends Map {
|
|||
|
||||
$sep_x = $this->width / $max_x;
|
||||
$sep_y = $this->height / $max_y;
|
||||
|
||||
foreach ($nodes as $i => $node) {
|
||||
$nodes[$i]['x'] *= $sep_x;
|
||||
$nodes[$i]['y'] *= $sep_y;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$sep_x = $sep_y = 100;
|
||||
}
|
||||
|
||||
foreach ($nodes as $i => $node) {
|
||||
$nodes[$i]['x'] *= $sep_x;
|
||||
$nodes[$i]['y'] *= $sep_y;
|
||||
}
|
||||
|
||||
foreach ($edges as $i => $edge) {
|
||||
|
|
Loading…
Reference in New Issue