mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
WebUI: Allows one to view a map of the SNMP location set for a device (#5495)
This commit is contained in:
committed by
Neil Lathwood
parent
d970764674
commit
998750ddd9
@@ -99,7 +99,7 @@ if (!is_array($loc)) {
|
||||
if (is_array($loc)) {
|
||||
echo '<tr>
|
||||
<td>Lat / Lng</td>
|
||||
<td>['.$loc['lat'].','.$loc['lng'].']</td>
|
||||
<td>['.$loc['lat'].','.$loc['lng'].'] <div class="pull-right"><a href="https://maps.google.com/?q='.$loc['lat'].'+'.$loc['lng'].'" target="_blank" class="btn btn-success btn-xs" role="button"><i class="fa fa-map-marker" style="color:white" aria-hidden="true"></i> Map</button></div></a></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
@@ -835,7 +835,7 @@ $config['unix-agent-read-time-out'] = 10;
|
||||
// seconds
|
||||
|
||||
// Lat / Lon support for maps
|
||||
$config['geoloc']['latlng'] = false; // True to enable translation of location to latlng co-ordinates
|
||||
$config['geoloc']['latlng'] = true; // True to enable translation of location to latlng co-ordinates
|
||||
$config['geoloc']['engine'] = 'google';
|
||||
$config['map']['engine'] = 'leaflet';
|
||||
$config['mapael']['default_map'] = 'maps/world_countries.js';
|
||||
|
Reference in New Issue
Block a user