From ad6b1f26ed06a239e1609a183fa50088565481dc Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Wed, 30 Mar 2022 15:53:21 +0200 Subject: [PATCH] rollback --- .../godmode/gis_maps/configure_gis_map.php | 912 ++++++++---------- 1 file changed, 414 insertions(+), 498 deletions(-) diff --git a/pandora_console/godmode/gis_maps/configure_gis_map.php b/pandora_console/godmode/gis_maps/configure_gis_map.php index 73d1d74110..2df8d06c6e 100644 --- a/pandora_console/godmode/gis_maps/configure_gis_map.php +++ b/pandora_console/godmode/gis_maps/configure_gis_map.php @@ -119,7 +119,6 @@ switch ($action) { $map_initial_altitude = get_parameter('map_initial_altitude'); $map_zoom_level = get_parameter('map_zoom_level'); $map_background = ''; - // TODO $map_default_longitude = get_parameter('map_default_longitude'); $map_default_latitude = get_parameter('map_default_latitude'); $map_default_altitude = get_parameter('map_default_altitude'); @@ -219,7 +218,6 @@ switch ($action) { case 'edit_map': $next_action = 'update_saved'; - break; case 'update_saved': @@ -229,7 +227,6 @@ switch ($action) { $map_initial_altitude = get_parameter('map_initial_altitude'); $map_zoom_level = get_parameter('map_zoom_level'); $map_background = ''; - // TODO $map_default_longitude = get_parameter('map_default_longitude'); $map_default_latitude = get_parameter('map_default_latitude'); $map_default_altitude = get_parameter('map_default_altitude'); @@ -275,8 +272,7 @@ switch ($action) { $map_levels_zoom ); - if (empty($invalidFields)) { - // TODO + if (empty($invalidFields) === true) { gis_update_map( $idMap, $map_name, @@ -307,6 +303,10 @@ switch ($action) { $next_action = 'update_saved'; html_print_input_hidden('map_id', $idMap); break; + + default: + // Default. + break; } ?> @@ -440,6 +440,10 @@ switch ($action) { $layer_list = !empty($mapData['layers']) ? $mapData['layers'] : []; break; + + default: + // Default. + break; } $table = new stdClass(); @@ -468,12 +472,20 @@ foreach ($listConnectionTemp as $connectionTemp) { } $table->data[1][0] = __('Add Map connection').$iconError; -$table->data[1][1] = ".html_print_select($listConnection, 'map_connection_list', '', '', '', '0', true)." - < / td > < td > < a href = 'javascript: addConnectionMap();' > ".html_print_image( - 'images/add.png', - true, - ['class' => 'invert_filter'] -)." < / a > < input type = 'hidden' name = 'map_connection_list' value = '' id = 'map_connection_list' / > < input type = 'hidden' name = 'layer_list' value = '' id = 'layer_list' / > < / td > < / tr > (".gis_add_conection_maps_in_form($map_connection_list).' +$table->data[1][1] = " + + + + ".gis_add_conection_maps_in_form($map_connection_list).'
".html_print_select($listConnection, 'map_connection_list', '', '', '', '0', true)." + + ".html_print_image( + 'images/add.png', + true, + ['class' => 'invert_filter'] +)." + + +
'; $own_info = get_user_info($config['id_user']); @@ -549,9 +561,9 @@ $table->data = []; $table->data[0][0] = '

'.__('List of layers').'

'; $table->data[0][1] = '
'.html_print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub add "', true).'
'; -$table->data[1][0] = '
'; -$table->data[1][1] = '
'; +$table->data[1][1] = '