From 1ffd0a869d2a148d26912f4119b626ec9e89a59c Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 21 Oct 2011 11:21:27 +0000 Subject: [PATCH] Largura e altura do mashup openlayers qd não definidos assume-se 100% --- mashups/openlayers.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/mashups/openlayers.php b/mashups/openlayers.php index ec51b3c..e7e9f03 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -8,10 +8,10 @@ error_reporting(0); // if(!isset($temas)) {ajuda();} -if(!isset($largura)) -{$largura = 400;} -if(!isset($altura)) -{$altura = 400;} +if(isset($largura) && !isset($altura)) +{$altura = $largura;} +if(isset($altura) && !isset($largura)) +{$largura = $altura;} // //define quais controles serão mostrados no mapa // @@ -265,7 +265,13 @@ Parâmetros: -
+';} +else +{echo '
';} + +?>