Commit 910c8c9b5119dff800920608ab11999b6d132be8
1 parent
03988da4
Exists in
master
and in
7 other branches
Correção no mapa de referência. Parâmetros não estavam chegando à função de gera…
…ção da imagem do mapa
Showing
5 changed files
with
5 additions
and
5 deletions
Show diff stats
admin/admin.db
No preview for this file type
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 | ... | ... |
js/maparef.js
... | ... | @@ -311,7 +311,7 @@ i3GEO.maparef = |
311 | 311 | var temp = function() { |
312 | 312 | i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx, objposicaocursor.dmsy, "localizarxygeoProj"); |
313 | 313 | }; |
314 | - YAHOO.util.Event.addListener($i("imagemReferencia"), "mousemove", temp); | |
314 | + $("#imagemReferencia").mousemove(temp); | |
315 | 315 | } |
316 | 316 | } |
317 | 317 | i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]); |
... | ... | @@ -461,7 +461,7 @@ i3GEO.maparef = |
461 | 461 | // |
462 | 462 | // aplica os eventos de movimentação sobre o box azul |
463 | 463 | // |
464 | - boxrefdd = new YAHOO.util.DD("boxref"); | |
464 | + //boxrefdd = new YAHOO.util.DD("boxref"); | |
465 | 465 | // |
466 | 466 | // atualiza o mapa principal quando o box é modificado manualmente |
467 | 467 | // | ... | ... |