diff --git a/pandora_console/operation/gis_maps/render_view.php b/pandora_console/operation/gis_maps/render_view.php index 4050c71f7d..db70c2214e 100644 --- a/pandora_console/operation/gis_maps/render_view.php +++ b/pandora_console/operation/gis_maps/render_view.php @@ -161,12 +161,12 @@ $buttons[]['text'] = ' ' . __('Show agents by state: ') . ui_print_page_header(__('Map') . " » " . __('Map') . " " . $map['map_name'], "images/op_gis.png", false, "", false, $buttons); -if ($config["pure"] == 0) { - echo "
"; -} -else { - echo "
"; -} +$map_inline_style = "width: 100%; min-height:500px; height: calc(100vh - 80px);"; +$map_inline_style .= $config["pure"] + ? "position:absolute; top: 80px; left: 0px;" + : "border: 1px solid black;"; + +echo '
'; gis_print_map('map', $map['zoom_level'], $map['initial_latitude'], $map['initial_longitude'], $baselayers, $controls); @@ -239,17 +239,22 @@ if ($layers != false) { } // Resize GIS map on fullscreen -if ($config["pure"] != 0) { - ?> - - +// } ?> + +