WebUI: Allows one to view a map of the SNMP location set for a device (#5495)

This commit is contained in:
Richard Mayhew
2017-01-24 11:53:25 +02:00
committed by Neil Lathwood
parent d970764674
commit 998750ddd9
2 changed files with 2 additions and 2 deletions

View File

@@ -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>';
}

View File

@@ -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';