mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
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…
x
Reference in New Issue
Block a user