Commit ead4d937ff1cacd65ad9cb64c91f009599166427

Authored by Edmar Moretti
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
classesphp/funcoes_gerais.php
... ... @@ -753,9 +753,9 @@ Retorno:
753 753  
754 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 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 838 {
839 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 842 break;
843 843 /*
844 844 Valor: MUDAOUTPUTFORMAT
... ...