From 5df61b95b9836c37c8fb642b26a5886db5fa0aa2 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 7 Aug 2017 11:30:49 +0200 Subject: [PATCH] Fixed issue in public console --- pandora_console/operation/gis_maps/public_console.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/gis_maps/public_console.php b/pandora_console/operation/gis_maps/public_console.php index 01a3af722a..68c94f9c60 100755 --- a/pandora_console/operation/gis_maps/public_console.php +++ b/pandora_console/operation/gis_maps/public_console.php @@ -58,7 +58,7 @@ $confMap = gis_get_map_conf($idMap); // Default open map (used to overwrite unlicensed google map view) $confMapDefault = get_good_con(); -$confMapUrlDefault = json_decode($confMapDefault['conection_data'], true)['url']; +$confMapUrlDefault = json_decode($confMapDefault['conection_data'], true); $num_baselayer=0; // Initialy there is no Gmap base layer. @@ -77,7 +77,7 @@ if ($confMap !== false) { case 'Gmap': if (!isset($decodeJSON['gmap_key']) || empty($decodeJSON['gmap_key'])) { // If there is not gmap_key, show the default view - $baselayers[$num_baselayer]['url'] = $confMapUrlDefault; + $baselayers[$num_baselayer]['url'] = $confMapUrlDefault['url']; $baselayers[$num_baselayer]['typeBaseLayer'] = 'OSM'; } else { $baselayers[$num_baselayer]['gmap_type'] = $decodeJSON['gmap_type']; @@ -207,6 +207,7 @@ if ($layers != false) { var new_height = $(document).height(); $("#map").css("height", new_height - 60); + $("svg[id*=OpenLayers]").css("height", new_height - 60); }); \ No newline at end of file