Skip to content

Commit

Permalink
webui: Added override default device grouping radius (librenms#8485)
Browse files Browse the repository at this point in the history
* Override default device grouping radius

Added an option to override the default group_radius 80. Usefull in fullscreenmap

* Update worldmap.inc.php

* Update worldmap.inc.php
  • Loading branch information
jepke authored and TheMysteriousX committed May 20, 2018
1 parent c21dd44 commit a9a2489
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/includes/common/worldmap.inc.php
Expand Up @@ -21,6 +21,8 @@
* @package LibreNMS
* @subpackage Frontpage
*/
use LibreNMS\Config;

require_once $config['install_dir'] . '/includes/alerts.inc.php';
require_once $config['install_dir'] . '/includes/device-groups.inc.php';

Expand Down Expand Up @@ -122,7 +124,7 @@
if (!empty($widget_settings['group_radius'])) {
$group_radius = $widget_settings['group_radius'];
} else {
$group_radius = 80;
$group_radius = Config::get('leaflet.group_radius', 80);
}
if (empty($widget_settings['status']) && $widget_settings['status'] != '0') {
$widget_settings['status'] = '0,1';
Expand Down

0 comments on commit a9a2489

Please sign in to comment.