diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3632f2397a..2fff047105 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,14 @@ +2013-02-05 Miguel de Dios + + * include/functions_gis.php, + include/javascript/openlayers.pandora.js, operation/menu.php, + operation/gis_maps/render_view.php, godmode/menu.php: fixed the + height of maps when the menu is short. + + Fixes: #3602800 + + MERGED FROM PANDORA_4 + 2013-02-05 Sergio Martin * godmode/reporting/visual_console_builder.editor.php: Fixed missed diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 06ab116bd0..1bd51fcb4e 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -297,6 +297,7 @@ if (check_acl ($config['id_user'], 0, "PM")) { } } + if(!$config['pure']) { menu_print_menu ($menu_godmode); } diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index 589cac4e0d..fac39b39bd 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -95,8 +95,7 @@ function gis_print_map($idDiv, $iniZoom, $latCenter, $lonCenter, $baselayers, $c num_zoom_levels: null, name: null, type: null, - url: null - };"; + url: null};"; echo "baselayer['type'] = '" . $baselayer['typeBaseLayer'] . "';"; echo "baselayer['name'] = '" . $baselayer['name'] . "';"; @@ -125,6 +124,7 @@ function gis_print_map($idDiv, $iniZoom, $latCenter, $lonCenter, $baselayers, $c echo "js_printMap(idDiv, initialZoom, centerLatitude, centerLongitude, baselayerList, controlsList)"; + echo ""; } diff --git a/pandora_console/include/javascript/openlayers.pandora.js b/pandora_console/include/javascript/openlayers.pandora.js index 6f97c88b1f..cd3a827d31 100755 --- a/pandora_console/include/javascript/openlayers.pandora.js +++ b/pandora_console/include/javascript/openlayers.pandora.js @@ -120,14 +120,13 @@ function js_printMap(id_div, initial_zoom, center_latitude, center_longitude, ob var option = { - controls: controlsList, - projection: new OpenLayers.Projection("EPSG:900913"), - displayProjection: new OpenLayers.Projection("EPSG:4326"), - units: "m", - numZoomLevels: 18, - maxResolution: 156543.0339, - maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34) - }; + controls: controlsList, + projection: new OpenLayers.Projection("EPSG:900913"), + displayProjection: new OpenLayers.Projection("EPSG:4326"), + units: "m", + numZoomLevels: 18, + maxResolution: 156543.0339, + maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34)}; map = new OpenLayers.Map(id_div, option); @@ -142,7 +141,8 @@ function js_printMap(id_div, initial_zoom, center_latitude, center_longitude, ob baseLayer = new OpenLayers.Layer.OSM( objBaseLayers[baselayerIndex]['name'], objBaseLayers[baselayerIndex]['url'], - {numZoomLevels: objBaseLayers[baselayerIndex]['num_zoom_levels'], + { + numZoomLevels: objBaseLayers[baselayerIndex]['num_zoom_levels'], 'sphericalMercator': true } ); @@ -202,7 +202,8 @@ function js_printMap(id_div, initial_zoom, center_latitude, center_longitude, ob objBaseLayers[baselayerIndex]['bb_top'] ), new OpenLayers.Size(objBaseLayers[baselayerIndex]['image_width'], objBaseLayers[baselayerIndex]['image_height']), - {projection: new OpenLayers.Projection("EPSG:4326"), + { + projection: new OpenLayers.Projection("EPSG:4326"), numZoomLevels: objBaseLayers[baselayerIndex]['num_zoom_levels'] } ); diff --git a/pandora_console/operation/gis_maps/render_view.php b/pandora_console/operation/gis_maps/render_view.php index 62fdfe83a7..366cc5f559 100644 --- a/pandora_console/operation/gis_maps/render_view.php +++ b/pandora_console/operation/gis_maps/render_view.php @@ -110,8 +110,7 @@ $times = array( SECONDS_5MINUTES => __('5 minutes'), SECONDS_10MINUTES => __('10 minutes'), SECONDS_1HOUR => __('1 hour'), - SECONDS_2HOUR => __('2 hours') - ); + SECONDS_2HOUR => __('2 hours')); $buttons[] = ' ' . __('Refresh: ') . html_print_select($times, 'refresh_time', 60, 'changeRefreshTime(this.value);', '', 0, true, false, false) . " "; @@ -134,7 +133,7 @@ if ($config["pure"] == 0) { echo "
"; } else { - echo "
"; + echo "
"; } gis_print_map('map', $map['zoom_level'], $map['initial_latitude'], @@ -144,7 +143,7 @@ if ($layers != false) { foreach ($layers as $layer) { gis_make_layer($layer['layer_name'], $layer['view_layer'], null, $layer['id_tmap_layer']); - // calling agents_get_group_agents with none to obtain the names in the same case as they are in the DB. + // calling agents_get_group_agents with none to obtain the names in the same case as they are in the DB. $agentNamesByGroup = agents_get_group_agents($layer['tgrupo_id_grupo'],false,'none', true, true, false); $agentNamesByLayer = gis_get_agents_layer($layer['id_tmap_layer'], array('nombre')); @@ -205,17 +204,4 @@ if ($config["pure"] != 0) { - - diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php index 6f05a01c77..19508a5ba7 100644 --- a/pandora_console/operation/menu.php +++ b/pandora_console/operation/menu.php @@ -401,6 +401,8 @@ if (check_acl ($config['id_user'], 0, "AR")) { // Save operation menu array to use in operation/extensions.php view $operation_menu_array = $menu_operation; + + if(!$config['pure']) { menu_print_menu ($menu_operation, true); }