From 034b9805cc1cee6d171e673920e83fc29ecb6e46 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 10 Jan 2024 11:17:46 +0100 Subject: [PATCH] #12734 Fixed visible --- .../godmode/gis_maps/configure_gis_map.php | 24 ++++++++++++++----- pandora_console/operation/gis_maps/ajax.php | 10 ++++++++ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/gis_maps/configure_gis_map.php b/pandora_console/godmode/gis_maps/configure_gis_map.php index cc9ed5d5f0..7a0e4b61e1 100644 --- a/pandora_console/godmode/gis_maps/configure_gis_map.php +++ b/pandora_console/godmode/gis_maps/configure_gis_map.php @@ -68,7 +68,7 @@ foreach ($layer_ids as $layer_id) { $layer_list[] = [ 'id' => (strpos($layer_id, 'new_') === false) ? (int) $layer_id : null, 'layer_name' => $trimmed_name, - 'layer_visible' => ($layers[$layer_id]['visible'] === 'true'), + 'layer_visible' => ($layers[$layer_id]['visible'] == 'true' || $layers[$layer_id]['visible'] === '1'), 'layer_group' => (int) $layers[$layer_id]['agents_from_group'], 'layer_agent_list' => $layers[$layer_id]['agents'], 'layer_group_list' => $layers[$layer_id]['groups'], @@ -562,8 +562,6 @@ $table->data[9][1] = html_print_input_text('map_default_altitude', $map_default_ html_print_table($table); -$user_groups = users_get_groups($config['user'], 'AR', false); - echo '
'.__('Layers').''; $table->width = '100%'; @@ -589,7 +587,7 @@ $table->data[1][0] = '