mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +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_x = $this->width / $max_x;
|
||||||
$sep_y = $this->height / $max_y;
|
$sep_y = $this->height / $max_y;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$sep_x = $sep_y = 100;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($nodes as $i => $node) {
|
foreach ($nodes as $i => $node) {
|
||||||
$nodes[$i]['x'] *= $sep_x;
|
$nodes[$i]['x'] *= $sep_x;
|
||||||
$nodes[$i]['y'] *= $sep_y;
|
$nodes[$i]['y'] *= $sep_y;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($edges as $i => $edge) {
|
foreach ($edges as $i => $edge) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user