mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Custom Maps: geo map and color backgrounds (#16020)
* Custom Maps: geo map and color background tabs blade component geo-map blade component and related script enhancements * Update css/js * style fixes * update db_schema.yaml * fix db_schema hand edit * ignore phpstan being wrong * Handle null * another possible null spot * Use standard file cache for custom map background images * Create map->image as jpeg so we can compress it * whitespace fix * Fix background cancel button when other type is selected than the saved type * Save and restore layer * Map must exist before creating static image * Don't show set as image button for Google and Bing. Bing gives an odd error, but Google won't work.
This commit is contained in:
@@ -11,15 +11,15 @@ class LocationController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$maps_api = Config::get('geoloc.api_key');
|
||||
$maps_config = ['tile_url' => Config::get('leaflet.tile_url', '{s}.tile.openstreetmap.org')];
|
||||
$data = [
|
||||
'maps_api' => $maps_api,
|
||||
'maps_engine' => $maps_api ? Config::get('geoloc.engine') : '',
|
||||
'maps_config' => $maps_config,
|
||||
'maps_config' => [
|
||||
'engine' => Config::get('geoloc.engine'),
|
||||
'api_key' => Config::get('geoloc.api_key'),
|
||||
'tile_url' => Config::get('leaflet.tile_url', '{s}.tile.openstreetmap.org'),
|
||||
],
|
||||
'graph_template' => '',
|
||||
];
|
||||
|
||||
$data['graph_template'] = '';
|
||||
Config::set('enable_lazy_load', false);
|
||||
$graph_array = [
|
||||
'type' => 'location_bits',
|
||||
|
||||
Reference in New Issue
Block a user