fix neighbors pinning
This commit is contained in:
@@ -161,7 +161,7 @@ ajax '/ajax/data/device/netmap' => require_login sub {
|
|||||||
LABEL => $name,
|
LABEL => $name,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (exists $pos_for->{$device->ip}) {
|
if ($mapshow ne 'neighbors' and exists $pos_for->{$device->ip}) {
|
||||||
my $node = $v3data{nodes}->{ ($device->get_column('row_number') - 1) };
|
my $node = $v3data{nodes}->{ ($device->get_column('row_number') - 1) };
|
||||||
$node->{'fixed'} = 1;
|
$node->{'fixed'} = 1;
|
||||||
$node->{'x'} = $pos_for->{$device->ip}->{'x'};
|
$node->{'x'} = $pos_for->{$device->ip}->{'x'};
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ $.getJSON('[% uri_for('/ajax/data/device/netmap') %]?[% my_query %]', function(m
|
|||||||
.width( parseInt(jQuery('#netmap_pane').parent().css('width')) )
|
.width( parseInt(jQuery('#netmap_pane').parent().css('width')) )
|
||||||
.height( window.innerHeight - 100 )
|
.height( window.innerHeight - 100 )
|
||||||
.showSelfLinks(true)
|
.showSelfLinks(true)
|
||||||
.minNodeRadius(6)
|
.minNodeRadius(4)
|
||||||
.maxNodeRadius(20)
|
.maxNodeRadius(14)
|
||||||
.minZoomFactor(0.1)
|
.minZoomFactor(0.1)
|
||||||
.maxZoomFactor(10)
|
.maxZoomFactor(10)
|
||||||
.charge(-550)
|
.charge(-550)
|
||||||
|
|||||||
Reference in New Issue
Block a user