Commit ead4d937ff1cacd65ad9cb64c91f009599166427
1 parent
f43e8974
Exists in
master
Correção no mapa de referência. Parâmetros não estavam chegando à função de gera…
…ção da imagem do mapa
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
classesphp/funcoes_gerais.php
@@ -753,9 +753,9 @@ Retorno: | @@ -753,9 +753,9 @@ Retorno: | ||
753 | 753 | ||
754 | String contendo variáveis no formato javascript | 754 | String contendo variáveis no formato javascript |
755 | */ | 755 | */ |
756 | -function retornaReferenciaDinamica($ext="",$w="",$h="") | 756 | +function retornaReferenciaDinamica($ext="",$w="",$h="",$zoom=-3,$tipo="mapa") |
757 | { | 757 | { |
758 | - global $nomeImagem,$map_file,$utilizacgi,$locmapserv,$locaplic,$zoom,$tipo,$interface,$postgis_mapa; | 758 | + global $nomeImagem,$map_file,$utilizacgi,$locmapserv,$locaplic,$interface,$postgis_mapa; |
759 | // | 759 | // |
760 | //adiciona o tema com o web service com o mapa mundi | 760 | //adiciona o tema com o web service com o mapa mundi |
761 | // | 761 | // |
classesphp/mapa_controle.php
@@ -838,7 +838,7 @@ switch (strtoupper($funcao)) | @@ -838,7 +838,7 @@ switch (strtoupper($funcao)) | ||
838 | { | 838 | { |
839 | $ext = ""; | 839 | $ext = ""; |
840 | } | 840 | } |
841 | - $retorno = retornaReferenciaDinamica($ext,$_pg["w"],$_pg["h"]); | 841 | + $retorno = retornaReferenciaDinamica($ext,$_pg["w"],$_pg["h"],$_pg["zoom"],$_pg["tipo"]); |
842 | break; | 842 | break; |
843 | /* | 843 | /* |
844 | Valor: MUDAOUTPUTFORMAT | 844 | Valor: MUDAOUTPUTFORMAT |