Commit b620011b0fdb390a0e3ebc6bb79cbd5daa8c8011
1 parent
a2f08508
Exists in
master
and in
7 other branches
--no commit message
Showing
43 changed files
with
356 additions
and
238 deletions
Show diff stats
aplicmap/geral.htm
@@ -28,8 +28,8 @@ | @@ -28,8 +28,8 @@ | ||
28 | </style> | 28 | </style> |
29 | </head> | 29 | </head> |
30 | <body id="i3geo" > | 30 | <body id="i3geo" > |
31 | -<center> | ||
32 | -<table id='mst' summary="" style='display:none' width=100% cellspacing='0'> | 31 | + |
32 | +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'> | ||
33 | <!-- | 33 | <!-- |
34 | Inclui a barra superior. Se vc não quiser o menu, é só comentar o TR | 34 | Inclui a barra superior. Se vc não quiser o menu, é só comentar o TR |
35 | --> | 35 | --> |
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | <div id=guia1 class=guia >Temas</div> | 49 | <div id=guia1 class=guia >Temas</div> |
50 | <div id=guia2 class=guia >Adiciona</div> | 50 | <div id=guia2 class=guia >Adiciona</div> |
51 | <div id=guia4 class=guia >Legenda</div> | 51 | <div id=guia4 class=guia >Legenda</div> |
52 | - <div id=guia5 class=guia >Mapas</div> | 52 | + <div id=guia5 class=guia >Links</div> |
53 | </div> | 53 | </div> |
54 | </td> | 54 | </td> |
55 | </tr> | 55 | </tr> |
@@ -155,7 +155,7 @@ vc pode optar por colocar mensagens de ajuda em algum lugar | @@ -155,7 +155,7 @@ vc pode optar por colocar mensagens de ajuda em algum lugar | ||
155 | Para adicionar um botão, é só criar uma linha e especificar a função que será executada quando o usuário clicar no botão | 155 | Para adicionar um botão, é só criar uma linha e especificar a função que será executada quando o usuário clicar no botão |
156 | --> | 156 | --> |
157 | <div id=barraDeBotoes1 style='display:none'> | 157 | <div id=barraDeBotoes1 style='display:none'> |
158 | - <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr></table> | 158 | + <table style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table> |
159 | <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> | 159 | <table title="zoom" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> |
160 | <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> | 160 | <table title="desloca" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> |
161 | <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> | 161 | <table title="info" style="width:100%"><caption style="text-align:center"> </caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> |
@@ -252,28 +252,7 @@ http://<host>/i3geo/ms_criamapa.php | @@ -252,28 +252,7 @@ http://<host>/i3geo/ms_criamapa.php | ||
252 | É utilizada para identificar o local correto onde estão os programas em php que são utilizados. | 252 | É utilizada para identificar o local correto onde estão os programas em php que são utilizados. |
253 | */ | 253 | */ |
254 | i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | 254 | i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
255 | -/* | ||
256 | - Variable: g_localimg | ||
257 | - | ||
258 | - Indica a localização correta das imagens. | ||
259 | - | ||
260 | - É utilizada para identificar o local correto onde estão as imagens que são utilizados. | ||
261 | - | ||
262 | -*/ | ||
263 | var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; | 255 | var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; |
264 | -/* | ||
265 | -Variable: g_templateLegenda | ||
266 | - | ||
267 | -Template HTML que será utilizado na geração da legenda HTML | ||
268 | - | ||
269 | -A sintaxe do template é definido pelo Mapserver. | ||
270 | - | ||
271 | -O HTML pode ser armazenado em i3geo/aplicmap ou em um outro endereço no servidor. | ||
272 | - | ||
273 | -Exemplo: | ||
274 | -g_templateLegenda = "legendaseminput.htm"; | ||
275 | -*/ | ||
276 | -var g_templateLegenda = ""; | ||
277 | var g_3dmap = "3dmap.map"; | 256 | var g_3dmap = "3dmap.map"; |
278 | i3GEO.cria() | 257 | i3GEO.cria() |
279 | //Log | 258 | //Log |
classesjs/classe_ajuda.js
@@ -267,4 +267,5 @@ if(i3GEO.ajuda.MENSAGEMPADRAO == ""){ | @@ -267,4 +267,5 @@ if(i3GEO.ajuda.MENSAGEMPADRAO == ""){ | ||
267 | catch(e){i3GEO.ajuda.MENSAGEMPADRAO = $trad("p1");} | 267 | catch(e){i3GEO.ajuda.MENSAGEMPADRAO = $trad("p1");} |
268 | } | 268 | } |
269 | if(document.getElementById("bannerMensagem")) | 269 | if(document.getElementById("bannerMensagem")) |
270 | -{i3GEO.ajuda.DIVLETREIRO = "bannerMensagem";} | ||
271 | \ No newline at end of file | 270 | \ No newline at end of file |
271 | +{i3GEO.ajuda.DIVLETREIRO = "bannerMensagem";} | ||
272 | +YAHOO.log("carregou classe ajuda", "Classes i3geo"); | ||
272 | \ No newline at end of file | 273 | \ No newline at end of file |
classesjs/classe_analise.js
@@ -140,7 +140,7 @@ i3GEO.analise = { | @@ -140,7 +140,7 @@ i3GEO.analise = { | ||
140 | Abre a janela que gera um tema poligonal agrupando elementos de um tema. | 140 | Abre a janela que gera um tema poligonal agrupando elementos de um tema. |
141 | */ | 141 | */ |
142 | agrupaElementos: function() | 142 | agrupaElementos: function() |
143 | - {i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa");}, | 143 | + {i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa");} |
144 | }, | 144 | }, |
145 | /* | 145 | /* |
146 | Class: i3GEO.analise.medeDistancia | 146 | Class: i3GEO.analise.medeDistancia |
@@ -439,4 +439,5 @@ i3GEO.analise = { | @@ -439,4 +439,5 @@ i3GEO.analise = { | ||
439 | } | 439 | } |
440 | } | 440 | } |
441 | } | 441 | } |
442 | -}; | ||
443 | \ No newline at end of file | 442 | \ No newline at end of file |
443 | +}; | ||
444 | +YAHOO.log("carregou classe analise", "Classes i3geo"); | ||
444 | \ No newline at end of file | 445 | \ No newline at end of file |
classesjs/classe_arvoredecamadas.js
@@ -771,4 +771,5 @@ i3GEO.arvoreDeCamadas = { | @@ -771,4 +771,5 @@ i3GEO.arvoreDeCamadas = { | ||
771 | }; | 771 | }; |
772 | // | 772 | // |
773 | //para efeitos de compatibilidade | 773 | //para efeitos de compatibilidade |
774 | -i3GEO.arvoreDeCamadas.IDHTML = "listaTemas"; | ||
775 | \ No newline at end of file | 774 | \ No newline at end of file |
775 | +i3GEO.arvoreDeCamadas.IDHTML = "listaTemas"; | ||
776 | +YAHOO.log("carregou classe arvoredecamadas", "Classes i3geo"); | ||
776 | \ No newline at end of file | 777 | \ No newline at end of file |
classesjs/classe_arvoredetemas.js
@@ -1158,6 +1158,7 @@ i3GEO.arvoreDeTemas = { | @@ -1158,6 +1158,7 @@ i3GEO.arvoreDeTemas = { | ||
1158 | Abre o aplicativo datadownload | 1158 | Abre o aplicativo datadownload |
1159 | */ | 1159 | */ |
1160 | downloadbase: function() | 1160 | downloadbase: function() |
1161 | - {window.open(i3GEO.configura.locaplic+"/datadownload.htm");}, | 1161 | + {window.open(i3GEO.configura.locaplic+"/datadownload.htm");} |
1162 | } | 1162 | } |
1163 | -}; | ||
1164 | \ No newline at end of file | 1163 | \ No newline at end of file |
1164 | +}; | ||
1165 | +YAHOO.log("carregou classe arvoredetemas", "Classes i3geo"); | ||
1165 | \ No newline at end of file | 1166 | \ No newline at end of file |
classesjs/classe_barradebotoes.js
@@ -83,17 +83,20 @@ i3GEO.barraDeBotoes = { | @@ -83,17 +83,20 @@ i3GEO.barraDeBotoes = { | ||
83 | if (i3GEO.barraDeBotoes.LISTABOTOES[ko].tipo=="dinamico" && temp) | 83 | if (i3GEO.barraDeBotoes.LISTABOTOES[ko].tipo=="dinamico" && temp) |
84 | { | 84 | { |
85 | var ist = temp.style; | 85 | var ist = temp.style; |
86 | - ist.borderWidth=0; | ||
87 | - ist.borderBottomWidth=1; | ||
88 | - ist.borderLeftWidth=1; | ||
89 | - ist.borderColor='rgb(50,50,50)'; | 86 | + ist.borderWidth="1px"; |
87 | + ist.borderColor='white'; | ||
88 | + ist.borderLeftColor='rgb(50,50,50)'; | ||
89 | + ist.borderBottomColor='rgb(50,50,50)'; | ||
90 | } | 90 | } |
91 | } | 91 | } |
92 | while(ko--) | 92 | while(ko--) |
93 | } | 93 | } |
94 | //ativa o icone | 94 | //ativa o icone |
95 | if($i(icone)) | 95 | if($i(icone)) |
96 | - {with ($i(icone).style){borderLeftWidth='0px';borderBottomWidth='0px';borderColor='black';}} | 96 | + {with ($i(icone).style){ |
97 | + borderColor='white'; | ||
98 | + borderWidth="1px"; | ||
99 | + }} | ||
97 | }, | 100 | }, |
98 | /* | 101 | /* |
99 | Function: ativaBotoes | 102 | Function: ativaBotoes |
@@ -390,4 +393,5 @@ i3GEO.barraDeBotoes = { | @@ -390,4 +393,5 @@ i3GEO.barraDeBotoes = { | ||
390 | } | 393 | } |
391 | } | 394 | } |
392 | } | 395 | } |
393 | -} | ||
394 | \ No newline at end of file | 396 | \ No newline at end of file |
397 | +}; | ||
398 | +YAHOO.log("carregou classe barradebotoes", "Classes i3geo"); | ||
395 | \ No newline at end of file | 399 | \ No newline at end of file |
classesjs/classe_calculo.js
classesjs/classe_configura.js
@@ -123,7 +123,7 @@ i3GEO.configura = { | @@ -123,7 +123,7 @@ i3GEO.configura = { | ||
123 | Diminui a largura do mapa em pixels no caso do navegador ser o FF. | 123 | Diminui a largura do mapa em pixels no caso do navegador ser o FF. |
124 | Valores definidos em pixel. | 124 | Valores definidos em pixel. |
125 | */ | 125 | */ |
126 | - diminuixN: 25, | 126 | + diminuixN: 11, |
127 | /* | 127 | /* |
128 | Variable: diminuiyM | 128 | Variable: diminuiyM |
129 | 129 | ||
@@ -394,6 +394,8 @@ i3GEO.configura = { | @@ -394,6 +394,8 @@ i3GEO.configura = { | ||
394 | marcadorZoom = ""; | 394 | marcadorZoom = ""; |
395 | if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()") < 0) | 395 | if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()") < 0) |
396 | {i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()");} | 396 | {i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()");} |
397 | + if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()") < 0) | ||
398 | + {i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()");} | ||
397 | } | 399 | } |
398 | }, | 400 | }, |
399 | { | 401 | { |
@@ -566,11 +568,12 @@ i3GEO.configura = { | @@ -566,11 +568,12 @@ i3GEO.configura = { | ||
566 | $i(n).innerHTML += res; | 568 | $i(n).innerHTML += res; |
567 | } | 569 | } |
568 | else{ | 570 | else{ |
569 | - var n = i3GEO.janela.tip("<img src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); | 571 | + var nn = i3GEO.janela.tip("<img id='teste' src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); |
570 | balloon = new Balloon; | 572 | balloon = new Balloon; |
571 | balloon.delayTime = 0; | 573 | balloon.delayTime = 0; |
572 | var res = "<div style=text-align:left >"+res+"</div>"; | 574 | var res = "<div style=text-align:left >"+res+"</div>"; |
573 | - $i(n+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; | 575 | + //$i(nn+"cabecatip").onmouseover = function(evt){balloon.showTooltip(evt,res);}; |
576 | + balloon.showTooltip($i("teste"),res); | ||
574 | } | 577 | } |
575 | } | 578 | } |
576 | } | 579 | } |
@@ -614,6 +617,8 @@ i3GEO.configura = { | @@ -614,6 +617,8 @@ i3GEO.configura = { | ||
614 | g_operacao = "navega"; | 617 | g_operacao = "navega"; |
615 | i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); | 618 | i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki"); |
616 | atualizawiki = function(){ | 619 | atualizawiki = function(){ |
620 | + if(!$i("wdocai")) | ||
621 | + {i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");return;} | ||
617 | var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | 622 | var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; |
618 | if (docel.getElementById("resultadowiki")) | 623 | if (docel.getElementById("resultadowiki")) |
619 | {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm";} | 624 | {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm";} |
@@ -685,7 +690,7 @@ i3GEO.configura = { | @@ -685,7 +690,7 @@ i3GEO.configura = { | ||
685 | else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} | 690 | else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} |
686 | 691 | ||
687 | } | 692 | } |
688 | - catch(e){} | 693 | + catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()");} |
689 | }; | 694 | }; |
690 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()") < 0) | 695 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()") < 0) |
691 | {i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()");} | 696 | {i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()");} |
@@ -707,7 +712,7 @@ i3GEO.configura = { | @@ -707,7 +712,7 @@ i3GEO.configura = { | ||
707 | else | 712 | else |
708 | {i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} | 713 | {i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} |
709 | } | 714 | } |
710 | - catch(e){} | 715 | + catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()");} |
711 | }; | 716 | }; |
712 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()") < 0) | 717 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()") < 0) |
713 | {i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()");} | 718 | {i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()");} |
@@ -723,6 +728,8 @@ i3GEO.configura = { | @@ -723,6 +728,8 @@ i3GEO.configura = { | ||
723 | i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence"); | 728 | i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","confluence"); |
724 | i3GEO.util.criaBox(); | 729 | i3GEO.util.criaBox(); |
725 | atualizaconfluence = function(){ | 730 | atualizaconfluence = function(){ |
731 | + if(!$i("wdocai")) | ||
732 | + {i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()");return;} | ||
726 | var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; | 733 | var docel = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument; |
727 | if (docel.getElementById("resultadoconfluence")) | 734 | if (docel.getElementById("resultadoconfluence")) |
728 | {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm";} | 735 | {$i("wdocai").src = i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm";} |
@@ -854,4 +861,5 @@ i3GEO.configura = { | @@ -854,4 +861,5 @@ i3GEO.configura = { | ||
854 | } | 861 | } |
855 | } | 862 | } |
856 | ]} | 863 | ]} |
857 | -}; | ||
858 | \ No newline at end of file | 864 | \ No newline at end of file |
865 | +}; | ||
866 | +YAHOO.log("carregou classe configura", "Classes i3geo"); | ||
859 | \ No newline at end of file | 867 | \ No newline at end of file |
classesjs/classe_desenho.js
@@ -212,4 +212,5 @@ i3GEO.desenho = { | @@ -212,4 +212,5 @@ i3GEO.desenho = { | ||
212 | } | 212 | } |
213 | } | 213 | } |
214 | } | 214 | } |
215 | -}; | ||
216 | \ No newline at end of file | 215 | \ No newline at end of file |
216 | +}; | ||
217 | +YAHOO.log("carregou classe desenho", "Classes i3geo"); | ||
217 | \ No newline at end of file | 218 | \ No newline at end of file |
classesjs/classe_eventos.js
@@ -69,7 +69,6 @@ i3GEO.eventos = { | @@ -69,7 +69,6 @@ i3GEO.eventos = { | ||
69 | {Array} | 69 | {Array} |
70 | */ | 70 | */ |
71 | MOUSEPARADO: new Array( | 71 | MOUSEPARADO: new Array( |
72 | - "i3GEO.gadgets.mostraCoordenadasUTM()", | ||
73 | "i3GEO.navega.mostraRosaDosVentos()" | 72 | "i3GEO.navega.mostraRosaDosVentos()" |
74 | ), | 73 | ), |
75 | /* | 74 | /* |
@@ -290,7 +289,7 @@ i3GEO.eventos = { | @@ -290,7 +289,7 @@ i3GEO.eventos = { | ||
290 | //se não for feito assim, o deslocamento do mapa não é capturado | 289 | //se não for feito assim, o deslocamento do mapa não é capturado |
291 | // | 290 | // |
292 | try{ | 291 | try{ |
293 | - if (g_panM == "sim") | 292 | + if(g_panM != 'undefined' && g_panM == "sim") |
294 | {var pos = i3GEO.util.pegaPosicaoObjeto(targ.parentNode);} | 293 | {var pos = i3GEO.util.pegaPosicaoObjeto(targ.parentNode);} |
295 | else | 294 | else |
296 | {var pos = i3GEO.util.pegaPosicaoObjeto(targ);} | 295 | {var pos = i3GEO.util.pegaPosicaoObjeto(targ);} |
@@ -439,4 +438,5 @@ i3GEO.eventos = { | @@ -439,4 +438,5 @@ i3GEO.eventos = { | ||
439 | {doc.getElementById("iys").value = y[2];} | 438 | {doc.getElementById("iys").value = y[2];} |
440 | } | 439 | } |
441 | } | 440 | } |
442 | -}; | ||
443 | \ No newline at end of file | 441 | \ No newline at end of file |
442 | +}; | ||
443 | +YAHOO.log("carregou classe eventos", "Classes i3geo"); | ||
444 | \ No newline at end of file | 444 | \ No newline at end of file |
classesjs/classe_gadgets.js
@@ -85,23 +85,30 @@ i3GEO.gadgets = { | @@ -85,23 +85,30 @@ i3GEO.gadgets = { | ||
85 | {JSON} - objeto com x e y | 85 | {JSON} - objeto com x e y |
86 | */ | 86 | */ |
87 | mostraCoordenadasUTM: function(id){ | 87 | mostraCoordenadasUTM: function(id){ |
88 | - if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10) | ||
89 | - {return;} | ||
90 | if(arguments.length == 0 || id == "") | 88 | if(arguments.length == 0 || id == "") |
91 | {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml;} | 89 | {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml;} |
90 | + else | ||
91 | + {i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml = id;} | ||
92 | var temp = $i(id); | 92 | var temp = $i(id); |
93 | if (!temp){return;} | 93 | if (!temp){return;} |
94 | - if(temp.style.display == "block"){return;} | ||
95 | - var mostra = function(retorno) | 94 | + atualizaCoordenadasUTM = function() |
96 | { | 95 | { |
97 | - if(retorno.data){ | ||
98 | - temp.style.display="block"; | ||
99 | - temp.innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum; | ||
100 | - tempoUTM = setTimeout("$i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';clearTimeout(tempoUTM)",3400); | ||
101 | - return (retorno.data); | ||
102 | - } | 96 | + //if($i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display == "block"){return;} |
97 | + if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10) | ||
98 | + {return;} | ||
99 | + var tempUtm = function(retorno){ | ||
100 | + setTimeout("$i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';",3400); | ||
101 | + var temp = $i(i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml); | ||
102 | + if(retorno.data){ | ||
103 | + temp.style.display="block"; | ||
104 | + temp.innerHTML = "UTM: x="+retorno.data.x+" y="+retorno.data.y+" zona="+retorno.data.zona+" datum="+retorno.data.datum; | ||
105 | + //return (retorno.data); | ||
106 | + } | ||
107 | + }; | ||
108 | + i3GEO.php.geo2utm(tempUtm,objposicaocursor.ddx,objposicaocursor.ddy); | ||
103 | }; | 109 | }; |
104 | - i3GEO.php.geo2utm(mostra,objposicaocursor.ddx,objposicaocursor.ddy); | 110 | + if(i3GEO.eventos.MOUSEPARADO.toString().search("atualizaCoordenadasUTM()") < 0) |
111 | + {i3GEO.eventos.MOUSEPARADO.push("atualizaCoordenadasUTM()");} | ||
105 | }, | 112 | }, |
106 | /* | 113 | /* |
107 | Function: mostraCoordenadasGEO | 114 | Function: mostraCoordenadasGEO |
@@ -123,6 +130,8 @@ i3GEO.gadgets = { | @@ -123,6 +130,8 @@ i3GEO.gadgets = { | ||
123 | // | 130 | // |
124 | if(arguments.length == 0) | 131 | if(arguments.length == 0) |
125 | {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml;} | 132 | {var id = i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml;} |
133 | + else | ||
134 | + {i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml = id;} | ||
126 | if($i(id)){ | 135 | if($i(id)){ |
127 | if(!$i("xm")){ | 136 | if(!$i("xm")){ |
128 | var ins = "<table style='text-align:center'><tr>"; | 137 | var ins = "<table style='text-align:center'><tr>"; |
@@ -505,8 +514,6 @@ i3GEO.gadgets = { | @@ -505,8 +514,6 @@ i3GEO.gadgets = { | ||
505 | i3GEO.gadgets.quadros.quadroatual = 0; | 514 | i3GEO.gadgets.quadros.quadroatual = 0; |
506 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.avanca()") < 0) | 515 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.avanca()") < 0) |
507 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.avanca()");} | 516 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.avanca()");} |
508 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.mapexten)") < 0) | ||
509 | - {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.extent)");} | ||
510 | }, | 517 | }, |
511 | /* | 518 | /* |
512 | Function: grava | 519 | Function: grava |
@@ -694,10 +701,13 @@ i3GEO.gadgets = { | @@ -694,10 +701,13 @@ i3GEO.gadgets = { | ||
694 | var objid = $i(id); | 701 | var objid = $i(id); |
695 | if(objid){ | 702 | if(objid){ |
696 | objid.className="yuimenubar"; | 703 | objid.className="yuimenubar"; |
704 | + if($i("contemMenu")){ | ||
705 | + $i("contemMenu").className="yui-navset"; | ||
706 | + } | ||
697 | if(i3GEO.configura.oMenuData.ajudas){ | 707 | if(i3GEO.configura.oMenuData.ajudas){ |
698 | var ins = ""; | 708 | var ins = ""; |
699 | - ins += '<div class="bd" style="align:right;border: 0px solid white;z-index:6000;line-height:1.4" >'; | ||
700 | - ins += '<ul class="first-of-type" style="border:0px solid white;top:10px;">'; | 709 | + ins += '<div class="bd" style="display:block;align:right;border: 0px solid white;z-index:6000;line-height:1.4" >'; |
710 | + ins += '<ul class="first-of-type" style="display:block;border:0px solid white;top:10px;">'; | ||
701 | var sobe = ""; | 711 | var sobe = ""; |
702 | if(navn){var sobe = "line-height:0px;";} | 712 | if(navn){var sobe = "line-height:0px;";} |
703 | ins += '<li class="yuimenubaritem" style="padding-bottom:5px" ><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menuajuda" > '+$trad("s1")+'</a></li>'; | 713 | ins += '<li class="yuimenubaritem" style="padding-bottom:5px" ><a style="border: 0px solid white;" href="#" class="yuimenubaritemlabel" id="menuajuda" > '+$trad("s1")+'</a></li>'; |
@@ -718,7 +728,7 @@ i3GEO.gadgets = { | @@ -718,7 +728,7 @@ i3GEO.gadgets = { | ||
718 | var conta=conta+1; | 728 | var conta=conta+1; |
719 | } | 729 | } |
720 | } | 730 | } |
721 | - i3GEOoMenuBar=new YAHOO.widget.MenuBar(id,{autosubmenudisplay: true, showdelay: 150, hidedelay: 250, lazyload: false}); | 731 | + i3GEOoMenuBar=new YAHOO.widget.MenuBar(id,{autosubmenudisplay: true, showdelay: 100, hidedelay: 250, lazyload: false}); |
722 | i3GEOoMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender); | 732 | i3GEOoMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender); |
723 | i3GEOoMenuBar.render(); | 733 | i3GEOoMenuBar.render(); |
724 | // | 734 | // |
@@ -726,10 +736,8 @@ i3GEO.gadgets = { | @@ -726,10 +736,8 @@ i3GEO.gadgets = { | ||
726 | // | 736 | // |
727 | var temp = objid.style; | 737 | var temp = objid.style; |
728 | temp.backgroundPosition = "0px -5px"; | 738 | temp.backgroundPosition = "0px -5px"; |
729 | - temp.border = "0px solid white"; | ||
730 | - if($i("contemMenu")){ | ||
731 | - $i("contemMenu").className="yui-navset"; | ||
732 | - } | 739 | + temp.border = "1px solid white"; |
733 | } | 740 | } |
734 | } | 741 | } |
735 | -}; | ||
736 | \ No newline at end of file | 742 | \ No newline at end of file |
743 | +}; | ||
744 | +YAHOO.log("carregou classe gadgets", "Classes i3geo"); | ||
737 | \ No newline at end of file | 745 | \ No newline at end of file |
classesjs/classe_guias.js
@@ -44,13 +44,13 @@ i3GEO.guias = { | @@ -44,13 +44,13 @@ i3GEO.guias = { | ||
44 | */ | 44 | */ |
45 | CONFIGURA: { | 45 | CONFIGURA: { |
46 | "temas":{ | 46 | "temas":{ |
47 | - titulo:$trad("g1"), | 47 | + titulo:$trad("g4a"), |
48 | id:"guia1", | 48 | id:"guia1", |
49 | idconteudo:"guia1obj", | 49 | idconteudo:"guia1obj", |
50 | click:"" | 50 | click:"" |
51 | }, | 51 | }, |
52 | "adiciona":{ | 52 | "adiciona":{ |
53 | - titulo:$trad("g2"), | 53 | + titulo:"+"+$trad("g1"), |
54 | id:"guia2", | 54 | id:"guia2", |
55 | idconteudo:"guia2obj", | 55 | idconteudo:"guia2obj", |
56 | click: function(){ | 56 | click: function(){ |
@@ -83,7 +83,7 @@ i3GEO.guias = { | @@ -83,7 +83,7 @@ i3GEO.guias = { | ||
83 | } | 83 | } |
84 | }, | 84 | }, |
85 | "mapas":{ | 85 | "mapas":{ |
86 | - titulo:$trad("g4"), | 86 | + titulo:"Links", |
87 | id:"guia5", | 87 | id:"guia5", |
88 | idconteudo:"guia5obj", | 88 | idconteudo:"guia5obj", |
89 | click: function(){ | 89 | click: function(){ |
@@ -119,7 +119,7 @@ i3GEO.guias = { | @@ -119,7 +119,7 @@ i3GEO.guias = { | ||
119 | i3GEO.guias.mostra("mapas"); | 119 | i3GEO.guias.mostra("mapas"); |
120 | i3GEO.php.pegaMapas(pegaMapas); | 120 | i3GEO.php.pegaMapas(pegaMapas); |
121 | } | 121 | } |
122 | - }, | 122 | + } |
123 | }, | 123 | }, |
124 | /* | 124 | /* |
125 | Variable: atual | 125 | Variable: atual |
@@ -237,6 +237,23 @@ i3GEO.guias = { | @@ -237,6 +237,23 @@ i3GEO.guias = { | ||
237 | i3GEO.guias.ativa(i3GEO.guias.ATUAL); | 237 | i3GEO.guias.ativa(i3GEO.guias.ATUAL); |
238 | }, | 238 | }, |
239 | /* | 239 | /* |
240 | + Function: ajustaAltura | ||
241 | + | ||
242 | + Ajusta a altura das guias conforme a altura da imagem do mapa | ||
243 | + */ | ||
244 | + ajustaAltura: function(){ | ||
245 | + var guias = i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA); | ||
246 | + var nguias = guias.length; | ||
247 | + for(g=0;g<nguias;g++){ | ||
248 | + var guia = i3GEO.guias.CONFIGURA[guias[g]]; | ||
249 | + if($i(guia.idconteudo)){ | ||
250 | + $i(guia.idconteudo).style.overflow="auto"; | ||
251 | + $i(guia.idconteudo).style.height = i3GEO.parametros.h; | ||
252 | + } | ||
253 | + } | ||
254 | + }, | ||
255 | + | ||
256 | + /* | ||
240 | Function: mostra | 257 | Function: mostra |
241 | 258 | ||
242 | Mostra no mapa uma determinada guia | 259 | Mostra no mapa uma determinada guia |
@@ -392,4 +409,5 @@ i3GEO.guias = { | @@ -392,4 +409,5 @@ i3GEO.guias = { | ||
392 | } | 409 | } |
393 | 410 | ||
394 | } | 411 | } |
395 | -}; | ||
396 | \ No newline at end of file | 412 | \ No newline at end of file |
413 | +}; | ||
414 | +YAHOO.log("carregou classe guias", "Classes i3geo"); | ||
397 | \ No newline at end of file | 415 | \ No newline at end of file |
classesjs/classe_i3geo.js
@@ -149,7 +149,7 @@ i3GEO = { | @@ -149,7 +149,7 @@ i3GEO = { | ||
149 | } | 149 | } |
150 | } | 150 | } |
151 | catch(e){var e = "";} | 151 | catch(e){var e = "";} |
152 | - document.body.style.width = novow; | 152 | + document.body.style.width = novow - diminuix; |
153 | document.body.style.height = novoh; | 153 | document.body.style.height = novoh; |
154 | var w = novow - menos - diminuix; | 154 | var w = novow - menos - diminuix; |
155 | var h = novoh - diminuiy; | 155 | var h = novoh - diminuiy; |
@@ -192,7 +192,7 @@ i3GEO = { | @@ -192,7 +192,7 @@ i3GEO = { | ||
192 | r:"", | 192 | r:"", |
193 | locmapas:"", | 193 | locmapas:"", |
194 | extentref:"" | 194 | extentref:"" |
195 | - }; | 195 | + }; |
196 | }, | 196 | }, |
197 | inicia:function(){ | 197 | inicia:function(){ |
198 | i3GEOmantemCompatibilidade(); | 198 | i3GEOmantemCompatibilidade(); |
@@ -206,6 +206,7 @@ i3GEO = { | @@ -206,6 +206,7 @@ i3GEO = { | ||
206 | } | 206 | } |
207 | else{ | 207 | else{ |
208 | if(retorno.data.variaveis){ | 208 | if(retorno.data.variaveis){ |
209 | + | ||
209 | // | 210 | // |
210 | //executa com eval a string que é retornada pelo servidor (função inicia do mapa_controle.php | 211 | //executa com eval a string que é retornada pelo servidor (função inicia do mapa_controle.php |
211 | // | 212 | // |
@@ -245,7 +246,6 @@ i3GEO = { | @@ -245,7 +246,6 @@ i3GEO = { | ||
245 | i3GEO.guias.cria(); | 246 | i3GEO.guias.cria(); |
246 | if($i("arvoreAdicionaTema")) | 247 | if($i("arvoreAdicionaTema")) |
247 | i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema"); | 248 | i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema"); |
248 | - | ||
249 | if($i("mst")){$i("mst").style.display="block";} | 249 | if($i("mst")){$i("mst").style.display="block";} |
250 | i3GEO.atualiza(retorno); | 250 | i3GEO.atualiza(retorno); |
251 | // | 251 | // |
@@ -333,11 +333,21 @@ i3GEO = { | @@ -333,11 +333,21 @@ i3GEO = { | ||
333 | atualiza: function(retorno){ | 333 | atualiza: function(retorno){ |
334 | //verifica se o parâmetro retorno existe, caso contrário, | 334 | //verifica se o parâmetro retorno existe, caso contrário, |
335 | //faz a chamada ao programa PHP para obter os parâmetros | 335 | //faz a chamada ao programa PHP para obter os parâmetros |
336 | - if(arguments.length == 0 || retorno == ""){ | 336 | + try{ |
337 | + if (retorno.data == "erro"){ | ||
338 | + alert("Erro no mapa. Sera feita uma tentativa de recuperacao."); | ||
339 | + i3GEO.mapa.recupera.inicia();return; | ||
340 | + } | ||
341 | + } | ||
342 | + catch(e){} | ||
343 | + var erro = function(){ | ||
337 | var legimagem = ""; | 344 | var legimagem = ""; |
338 | - i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")); | ||
339 | - i3GEO.php.corpo(i3GEO.atualiza,i3GEO.configura.tipoimagem); | 345 | + i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")+" atualizando"); |
346 | + i3GEO.php.corpo(i3GEO.atualiza,i3GEO.configura.tipoimagem); | ||
340 | } | 347 | } |
348 | + try{var teste = eval(retorno.data.variaveis);} | ||
349 | + catch(e){erro.call();} | ||
350 | + if(arguments.length == 0 || retorno == "" || retorno.data.variaveis == undefined){erro.call();return;} | ||
341 | else{ | 351 | else{ |
342 | if(arguments.length == 0){return;} | 352 | if(arguments.length == 0){return;} |
343 | i3GEO.mapa.corpo.verifica(retorno); | 353 | i3GEO.mapa.corpo.verifica(retorno); |
@@ -348,7 +358,7 @@ i3GEO = { | @@ -348,7 +358,7 @@ i3GEO = { | ||
348 | mapexten = ""; | 358 | mapexten = ""; |
349 | //transforma o retorno em variáveis | 359 | //transforma o retorno em variáveis |
350 | eval(retorno.data.variaveis); | 360 | eval(retorno.data.variaveis); |
351 | - | 361 | + |
352 | i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas); | 362 | i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas); |
353 | if (i3GEO.parametros.mapscale != mapscale) | 363 | if (i3GEO.parametros.mapscale != mapscale) |
354 | i3GEO.arvoreDeCamadas.atualizaFarol(mapscale); | 364 | i3GEO.arvoreDeCamadas.atualizaFarol(mapscale); |
@@ -360,6 +370,7 @@ i3GEO = { | @@ -360,6 +370,7 @@ i3GEO = { | ||
360 | i3GEO.parametros.mapimagem = mapimagem; | 370 | i3GEO.parametros.mapimagem = mapimagem; |
361 | 371 | ||
362 | i3GEO.interface.redesenha(); | 372 | i3GEO.interface.redesenha(); |
373 | + | ||
363 | g_operacao = ""; | 374 | g_operacao = ""; |
364 | i3GEO.parametros.mapexten = mapexten; | 375 | i3GEO.parametros.mapexten = mapexten; |
365 | if ($i("mensagemt")) | 376 | if ($i("mensagemt")) |
@@ -374,4 +385,5 @@ i3GEO = { | @@ -374,4 +385,5 @@ i3GEO = { | ||
374 | i3GEO.ajuda.mostraJanela("Tempo de redesenho em segundos: "+tempo,""); | 385 | i3GEO.ajuda.mostraJanela("Tempo de redesenho em segundos: "+tempo,""); |
375 | } | 386 | } |
376 | } | 387 | } |
377 | -}; | ||
378 | \ No newline at end of file | 388 | \ No newline at end of file |
389 | +}; | ||
390 | +YAHOO.log("carregou classe i3geo", "Classes i3geo"); | ||
379 | \ No newline at end of file | 391 | \ No newline at end of file |
classesjs/classe_idioma.js
@@ -269,14 +269,19 @@ i3GEO.idioma = { | @@ -269,14 +269,19 @@ i3GEO.idioma = { | ||
269 | if(i3GEO.idioma.IDSELETOR != "" && $i(i3GEO.idioma.IDSELETOR)) | 269 | if(i3GEO.idioma.IDSELETOR != "" && $i(i3GEO.idioma.IDSELETOR)) |
270 | {$i(i3GEO.idioma.IDSELETOR).innerHTML = ins;} | 270 | {$i(i3GEO.idioma.IDSELETOR).innerHTML = ins;} |
271 | else{ | 271 | else{ |
272 | - var pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO)) | ||
273 | - var novoel = document.createElement("div"); | ||
274 | - novoel.innerHTML = ins; | 272 | + var pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDMAPA)) |
273 | + if(!$i("i3geoseletoridiomas")){ | ||
274 | + var novoel = document.createElement("div"); | ||
275 | + novoel.innerHTML = ins; | ||
276 | + novoel.id = "i3geoseletoridiomas"; | ||
277 | + document.body.appendChild(novoel); | ||
278 | + } | ||
279 | + else | ||
280 | + {var novoel = $i("i3geoseletoridiomas");} | ||
275 | novoel.style.position = "absolute"; | 281 | novoel.style.position = "absolute"; |
276 | novoel.style.top = pos[1] - 17 +"px"; | 282 | novoel.style.top = pos[1] - 17 +"px"; |
277 | novoel.style.left = pos[0]+"px"; | 283 | novoel.style.left = pos[0]+"px"; |
278 | novoel.style.zIndex = 5000; | 284 | novoel.style.zIndex = 5000; |
279 | - document.body.appendChild(novoel); | ||
280 | } | 285 | } |
281 | } | 286 | } |
282 | }; | 287 | }; |
@@ -292,7 +297,6 @@ Returns: | @@ -292,7 +297,6 @@ Returns: | ||
292 | {String} Texto traduzido. | 297 | {String} Texto traduzido. |
293 | */ | 298 | */ |
294 | var $trad = function(id){return (i3GEO.idioma.traduzir(id))}; | 299 | var $trad = function(id){return (i3GEO.idioma.traduzir(id))}; |
295 | - | ||
296 | // | 300 | // |
297 | try { | 301 | try { |
298 | var c = i3GEO.util.pegaCookie("i3geolingua"); | 302 | var c = i3GEO.util.pegaCookie("i3geolingua"); |
@@ -312,3 +316,4 @@ var $trad = function(id){return (i3GEO.idioma.traduzir(id))}; | @@ -312,3 +316,4 @@ var $trad = function(id){return (i3GEO.idioma.traduzir(id))}; | ||
312 | {i3GEO.idioma.defineDicionario(g_traducao);} | 316 | {i3GEO.idioma.defineDicionario(g_traducao);} |
313 | } | 317 | } |
314 | catch(e){alert("Problemas com idiomas "+e);}; | 318 | catch(e){alert("Problemas com idiomas "+e);}; |
319 | +YAHOO.log("carregou classe idioma", "Classes i3geo"); | ||
315 | \ No newline at end of file | 320 | \ No newline at end of file |
classesjs/classe_interface.js
@@ -110,6 +110,7 @@ i3GEO.interface = { | @@ -110,6 +110,7 @@ i3GEO.interface = { | ||
110 | $i("img").onload = ""; | 110 | $i("img").onload = ""; |
111 | //atualiza quadro | 111 | //atualiza quadro |
112 | i3GEO.gadgets.quadros.grava("imagem",i3GEO.parametros.mapimagem); | 112 | i3GEO.gadgets.quadros.grava("imagem",i3GEO.parametros.mapimagem); |
113 | + i3GEO.gadgets.quadros.grava("extensao",i3GEO.parametros.mapexten); | ||
113 | var temp = function(retorno){ | 114 | var temp = function(retorno){ |
114 | eval(retorno.data); | 115 | eval(retorno.data); |
115 | i3GEO.gadgets.quadros.grava("legenda",legimagem); | 116 | i3GEO.gadgets.quadros.grava("legenda",legimagem); |
@@ -123,7 +124,6 @@ i3GEO.interface = { | @@ -123,7 +124,6 @@ i3GEO.interface = { | ||
123 | $i("img").style.display = "block"; | 124 | $i("img").style.display = "block"; |
124 | i3GEO.janela.fechaAguarde("ajaxCorpoMapa"); | 125 | i3GEO.janela.fechaAguarde("ajaxCorpoMapa"); |
125 | }; | 126 | }; |
126 | - | ||
127 | if (!$i("imgtemp")) | 127 | if (!$i("imgtemp")) |
128 | { | 128 | { |
129 | var ndiv = document.createElement("div"); | 129 | var ndiv = document.createElement("div"); |
@@ -168,16 +168,16 @@ i3GEO.interface = { | @@ -168,16 +168,16 @@ i3GEO.interface = { | ||
168 | estilo.height=i3GEO.parametros.h +"px"; | 168 | estilo.height=i3GEO.parametros.h +"px"; |
169 | estilo.clip = 'rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')'; | 169 | estilo.clip = 'rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')'; |
170 | objmapaparado = "nao"; //utilizado para verificar se o mouse esta parado | 170 | objmapaparado = "nao"; //utilizado para verificar se o mouse esta parado |
171 | + i3GEO.gadgets.mostraMenuSuspenso(); | ||
171 | i3GEO.eventos.ativa(i); | 172 | i3GEO.eventos.ativa(i); |
172 | i3GEO.gadgets.mostraCoordenadasGEO(); | 173 | i3GEO.gadgets.mostraCoordenadasGEO(); |
174 | + i3GEO.gadgets.mostraCoordenadasUTM(); | ||
173 | i3GEO.gadgets.mostraEscalaNumerica(); | 175 | i3GEO.gadgets.mostraEscalaNumerica(); |
174 | i3GEO.gadgets.mostraEscalaGrafica(); | 176 | i3GEO.gadgets.mostraEscalaGrafica(); |
175 | - i3GEO.gadgets.mostraMenuSuspenso(); | ||
176 | i3GEO.gadgets.visual.inicia(); | 177 | i3GEO.gadgets.visual.inicia(); |
177 | i3GEO.idioma.mostraSeletor(); | 178 | i3GEO.idioma.mostraSeletor(); |
178 | i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); | 179 | i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); |
179 | i3GEO.interface.padrao.ativaBotoes(); | 180 | i3GEO.interface.padrao.ativaBotoes(); |
180 | - i3GEO.maparef.atualiza(); | ||
181 | if (i3GEO.configura.mapaRefDisplay != "none") | 181 | if (i3GEO.configura.mapaRefDisplay != "none") |
182 | { | 182 | { |
183 | if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | 183 | if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} |
@@ -504,4 +504,5 @@ i3GEO.interface = { | @@ -504,4 +504,5 @@ i3GEO.interface = { | ||
504 | ativaBotoes: function(){ | 504 | ativaBotoes: function(){ |
505 | } | 505 | } |
506 | } | 506 | } |
507 | -} | 507 | +}; |
508 | +YAHOO.log("carregou classe interface", "Classes i3geo"); | ||
508 | \ No newline at end of file | 509 | \ No newline at end of file |
classesjs/classe_janela.js
@@ -152,7 +152,7 @@ i3GEO.janela = { | @@ -152,7 +152,7 @@ i3GEO.janela = { | ||
152 | with (wdocaiframe.style){width = "100%";height=waltura;}; | 152 | with (wdocaiframe.style){width = "100%";height=waltura;}; |
153 | wdocaiframe.style.display = "block"; | 153 | wdocaiframe.style.display = "block"; |
154 | wdocaiframe.src = wsrc; | 154 | wdocaiframe.src = wsrc; |
155 | - i3GEO.janela.ANTESFECHA.push("$i('"+id+"i').src = ''"); | 155 | + //i3GEO.janela.ANTESFECHA.push("$i('"+id+"i').src = ''"); |
156 | } | 156 | } |
157 | var fix = false; | 157 | var fix = false; |
158 | if(nx == "" || nx == "center"){var fix = true;} | 158 | if(nx == "" || nx == "center"){var fix = true;} |
@@ -165,8 +165,7 @@ i3GEO.janela = { | @@ -165,8 +165,7 @@ i3GEO.janela = { | ||
165 | YAHOO.janelaDoca.xp.panel.moveTo(pos[0],pos[1]+50); | 165 | YAHOO.janelaDoca.xp.panel.moveTo(pos[0],pos[1]+50); |
166 | } | 166 | } |
167 | YAHOO.janelaDoca.xp.panel.render(); | 167 | YAHOO.janelaDoca.xp.panel.render(); |
168 | - if(modal == false) | ||
169 | - YAHOO.util.Event.addListener(YAHOO.janelaDoca.xp.panel.close, "click", i3GEO.janela.fecha); | 168 | + YAHOO.util.Event.addListener(YAHOO.janelaDoca.xp.panel.close, "click", i3GEO.janela.fecha,id); |
170 | //YAHOO.log("Fim cria janela", "janela"); | 169 | //YAHOO.log("Fim cria janela", "janela"); |
171 | return(new Array(YAHOO.janelaDoca.xp.panel,$i(id+"_cabecalho"),$i(id+"_corpo"))); | 170 | return(new Array(YAHOO.janelaDoca.xp.panel,$i(id+"_cabecalho"),$i(id+"_corpo"))); |
172 | }, | 171 | }, |
@@ -175,10 +174,12 @@ i3GEO.janela = { | @@ -175,10 +174,12 @@ i3GEO.janela = { | ||
175 | 174 | ||
176 | Aplica a opção definida em ANTESFECHA e elimina alguns objetos que são comumente adicionados por algumas operações do i3geo | 175 | Aplica a opção definida em ANTESFECHA e elimina alguns objetos que são comumente adicionados por algumas operações do i3geo |
177 | como richdraw, box, pin | 176 | como richdraw, box, pin |
177 | + | ||
178 | + Parameters: | ||
179 | + | ||
180 | + id {String} - id da janela que será fechada | ||
178 | */ | 181 | */ |
179 | - fecha: function(){ | ||
180 | - //if ((g_tipoacao == "selecaobox") || (g_tipoacao == "inseregrafico") || (g_tipoacao == "selecao") || (g_tipoacao == "inserexy") || (g_tipoacao == "textofid")) | ||
181 | - //{i3GEO.barraDeBotoes.ativaIcone("pan");} | 182 | + fecha: function(r,id){ |
182 | //esconde o box do google | 183 | //esconde o box do google |
183 | i3GEO.util.escondePin(); | 184 | i3GEO.util.escondePin(); |
184 | i3GEO.util.escondeBox(); | 185 | i3GEO.util.escondeBox(); |
@@ -191,6 +192,8 @@ i3GEO.janela = { | @@ -191,6 +192,8 @@ i3GEO.janela = { | ||
191 | for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++) | 192 | for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++) |
192 | {eval(i3GEO.janela.ANTESFECHA[i]);} | 193 | {eval(i3GEO.janela.ANTESFECHA[i]);} |
193 | } | 194 | } |
195 | + document.body.removeChild($i(id+"_c")); | ||
196 | + //YAHOO.janelaDoca.xp.panel.destroy(); | ||
194 | }, | 197 | }, |
195 | /* | 198 | /* |
196 | Function: alteraTamanho | 199 | Function: alteraTamanho |
@@ -468,3 +471,4 @@ try{ | @@ -468,3 +471,4 @@ try{ | ||
468 | ); | 471 | ); |
469 | } | 472 | } |
470 | catch(e){}; | 473 | catch(e){}; |
474 | +YAHOO.log("carregou classe janela", "Classes i3geo"); |
classesjs/classe_mapa.js
@@ -47,6 +47,7 @@ i3GEO.mapa = { | @@ -47,6 +47,7 @@ i3GEO.mapa = { | ||
47 | elemento {String} - id do elemento HTML que deverá ser ajustado e que contém o mapa | 47 | elemento {String} - id do elemento HTML que deverá ser ajustado e que contém o mapa |
48 | */ | 48 | */ |
49 | ajustaPosicao: function(elemento){ | 49 | ajustaPosicao: function(elemento){ |
50 | + if(arguments.length == 0){return;} | ||
50 | try{ | 51 | try{ |
51 | imagemxi = 0; | 52 | imagemxi = 0; |
52 | imagemyi = 0; | 53 | imagemyi = 0; |
@@ -580,4 +581,5 @@ i3GEO.mapa = { | @@ -580,4 +581,5 @@ i3GEO.mapa = { | ||
580 | } | 581 | } |
581 | } | 582 | } |
582 | } | 583 | } |
583 | -}; | ||
584 | \ No newline at end of file | 584 | \ No newline at end of file |
585 | +}; | ||
586 | +YAHOO.log("carregou classe mapa", "Classes i3geo"); | ||
585 | \ No newline at end of file | 587 | \ No newline at end of file |
classesjs/classe_maparef.js
@@ -178,4 +178,5 @@ i3GEO.maparef = { | @@ -178,4 +178,5 @@ i3GEO.maparef = { | ||
178 | catch(e) | 178 | catch(e) |
179 | {var e = "";i3GEO.janela.fechaAguarde("i3GEO.atualiza");} | 179 | {var e = "";i3GEO.janela.fechaAguarde("i3GEO.atualiza");} |
180 | } | 180 | } |
181 | -}; | ||
182 | \ No newline at end of file | 181 | \ No newline at end of file |
182 | +}; | ||
183 | +YAHOO.log("carregou classe maparef", "Classes i3geo"); | ||
183 | \ No newline at end of file | 184 | \ No newline at end of file |
classesjs/classe_navega.js
@@ -578,7 +578,11 @@ i3GEO.navega = { | @@ -578,7 +578,11 @@ i3GEO.navega = { | ||
578 | Para o desenho do box, captura seu tamanho e faz o zoom no mapa | 578 | Para o desenho do box, captura seu tamanho e faz o zoom no mapa |
579 | */ | 579 | */ |
580 | termina: function(){ | 580 | termina: function(){ |
581 | - if(g_tipoacao!='zoomli'){return;} | 581 | + if(g_tipoacao!='zoomli'){ |
582 | + i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()"); | ||
583 | + i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()"); | ||
584 | + return; | ||
585 | + } | ||
582 | try{ | 586 | try{ |
583 | var valor = i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize); | 587 | var valor = i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize); |
584 | var v = valor[0]; | 588 | var v = valor[0]; |
@@ -600,7 +604,6 @@ i3GEO.navega = { | @@ -600,7 +604,6 @@ i3GEO.navega = { | ||
600 | limpa.call(); | 604 | limpa.call(); |
601 | i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()"); | 605 | i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()"); |
602 | i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()"); | 606 | i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()"); |
603 | - //i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()"); | ||
604 | i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,v); | 607 | i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,v); |
605 | } | 608 | } |
606 | catch(e){limpa.call();return;} | 609 | catch(e){limpa.call();return;} |
@@ -789,7 +792,7 @@ i3GEO.navega = { | @@ -789,7 +792,7 @@ i3GEO.navega = { | ||
789 | }; | 792 | }; |
790 | if(i3GEO.navega.lente.ESTAATIVA == "sim"){ | 793 | if(i3GEO.navega.lente.ESTAATIVA == "sim"){ |
791 | i3GEO.janela.abreAguarde("ajaxabrelente",$trad("o1")); | 794 | i3GEO.janela.abreAguarde("ajaxabrelente",$trad("o1")); |
792 | - i3GEO.php.aplicaResolucao(temp,resolucao); | 795 | + i3GEO.php.aplicaResolucao(temp,1.5); |
793 | } | 796 | } |
794 | else{ | 797 | else{ |
795 | i3GEO.navega.lente.desativa(); | 798 | i3GEO.navega.lente.desativa(); |
@@ -954,4 +957,5 @@ i3GEO.navega = { | @@ -954,4 +957,5 @@ i3GEO.navega = { | ||
954 | $i("div_d").style.clip = 'rect('+(objposicaocursor.imgy - i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx - 10)+" "+(objposicaocursor.imgy - 10)+" "+(objposicaocursor.imgx - i3GEO.navega.destacaTema.TAMANHO)+')'; | 957 | $i("div_d").style.clip = 'rect('+(objposicaocursor.imgy - i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx - 10)+" "+(objposicaocursor.imgy - 10)+" "+(objposicaocursor.imgx - i3GEO.navega.destacaTema.TAMANHO)+')'; |
955 | } | 958 | } |
956 | } | 959 | } |
957 | -}; | ||
958 | \ No newline at end of file | 960 | \ No newline at end of file |
961 | +}; | ||
962 | +YAHOO.log("carregou classe navega", "Classes i3geo"); | ||
959 | \ No newline at end of file | 963 | \ No newline at end of file |
classesjs/classe_php.js
@@ -458,6 +458,7 @@ i3GEO.php = { | @@ -458,6 +458,7 @@ i3GEO.php = { | ||
458 | <Navegacao->mudaExtensao> | 458 | <Navegacao->mudaExtensao> |
459 | */ | 459 | */ |
460 | mudaext: function(funcao,tipoimagem,ext){ | 460 | mudaext: function(funcao,tipoimagem,ext){ |
461 | + if(ext == 'undefined'){alert("extensao nao definida");return;} | ||
461 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+tipoimagem+"&ext="+ext+"&g_sid="+i3GEO.configura.sid; | 462 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+tipoimagem+"&ext="+ext+"&g_sid="+i3GEO.configura.sid; |
462 | cpJSON.call(p,"mudaext",funcao); | 463 | cpJSON.call(p,"mudaext",funcao); |
463 | }, | 464 | }, |
@@ -747,4 +748,5 @@ i3GEO.php = { | @@ -747,4 +748,5 @@ i3GEO.php = { | ||
747 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=chavegoogle&g_sid="+i3GEO.configura.sid; | 748 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=chavegoogle&g_sid="+i3GEO.configura.sid; |
748 | cpJSON.call(p,"chavegoogle",funcao); | 749 | cpJSON.call(p,"chavegoogle",funcao); |
749 | } | 750 | } |
750 | -}; | ||
751 | \ No newline at end of file | 751 | \ No newline at end of file |
752 | +}; | ||
753 | +YAHOO.log("carregou classe php", "Classes i3geo"); | ||
752 | \ No newline at end of file | 754 | \ No newline at end of file |
classesjs/classe_selecao.js
classesjs/classe_tema.js
@@ -202,7 +202,7 @@ i3GEO.tema = { | @@ -202,7 +202,7 @@ i3GEO.tema = { | ||
202 | idtema - código do tema | 202 | idtema - código do tema |
203 | */ | 203 | */ |
204 | toponimia: function(idtema) | 204 | toponimia: function(idtema) |
205 | - {return(i3GEO.janela.cria("350px","340px",i3GEO.configura.locaplic+"/ferramentas/toponimia/index.htm?tema="+idtema,"","","Toponímia"));}, | 205 | + {i3GEO.janela.cria("350px","340px",i3GEO.configura.locaplic+"/ferramentas/toponimia/index.htm?tema="+idtema,"","","Toponímia");}, |
206 | /* | 206 | /* |
207 | Function: filtro | 207 | Function: filtro |
208 | 208 | ||
@@ -213,7 +213,7 @@ i3GEO.tema = { | @@ -213,7 +213,7 @@ i3GEO.tema = { | ||
213 | idtema - código do tema | 213 | idtema - código do tema |
214 | */ | 214 | */ |
215 | filtro: function(idtema) | 215 | filtro: function(idtema) |
216 | - {return(i3GEO.janela.cria("480px","250px",i3GEO.configura.locaplic+"/ferramentas/filtro/index.htm?tema="+idtema,"","","Filtro"));}, | 216 | + {i3GEO.janela.cria("480px","250px",i3GEO.configura.locaplic+"/ferramentas/filtro/index.htm?tema="+idtema,"","","Filtro");}, |
217 | /* | 217 | /* |
218 | Function: procuraratrib | 218 | Function: procuraratrib |
219 | 219 | ||
@@ -224,7 +224,7 @@ i3GEO.tema = { | @@ -224,7 +224,7 @@ i3GEO.tema = { | ||
224 | idtema - id que identifica o tema conforme definido no map file | 224 | idtema - id que identifica o tema conforme definido no map file |
225 | */ | 225 | */ |
226 | procuraratrib: function(idtema) | 226 | procuraratrib: function(idtema) |
227 | - {return(i3GEO.janela.cria("550px","340px",i3GEO.configura.locaplic+"/ferramentas/busca/index.htm?tema="+idtema,"","","Procurar"));}, | 227 | + {i3GEO.janela.cria("550px","340px",i3GEO.configura.locaplic+"/ferramentas/busca/index.htm?tema="+idtema,"","","Procurar");}, |
228 | /* | 228 | /* |
229 | Function: tabela | 229 | Function: tabela |
230 | 230 | ||
@@ -235,7 +235,7 @@ i3GEO.tema = { | @@ -235,7 +235,7 @@ i3GEO.tema = { | ||
235 | idtema - id que identifica o tema conforme definido no map file | 235 | idtema - id que identifica o tema conforme definido no map file |
236 | */ | 236 | */ |
237 | tabela: function(idtema) | 237 | tabela: function(idtema) |
238 | - {return(i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+"/ferramentas/tabela/index.htm?tema="+idtema,"","","Tabela"));}, | 238 | + {i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+"/ferramentas/tabela/index.htm?tema="+idtema,"","","Tabela");}, |
239 | /* | 239 | /* |
240 | Function: etiquetas | 240 | Function: etiquetas |
241 | 241 | ||
@@ -246,7 +246,7 @@ i3GEO.tema = { | @@ -246,7 +246,7 @@ i3GEO.tema = { | ||
246 | idtema - id que identifica o tema conforme definido no map file | 246 | idtema - id que identifica o tema conforme definido no map file |
247 | */ | 247 | */ |
248 | etiquetas: function(idtema) | 248 | etiquetas: function(idtema) |
249 | - {return(i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/etiqueta/index.htm?tema="+idtema,"","","Etiquetas"));}, | 249 | + {i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/etiqueta/index.htm?tema="+idtema,"","","Etiquetas");}, |
250 | /* | 250 | /* |
251 | Function: editaLegenda | 251 | Function: editaLegenda |
252 | 252 | ||
@@ -257,7 +257,7 @@ i3GEO.tema = { | @@ -257,7 +257,7 @@ i3GEO.tema = { | ||
257 | idtema - id que identifica o tema conforme definido no map file | 257 | idtema - id que identifica o tema conforme definido no map file |
258 | */ | 258 | */ |
259 | editaLegenda: function(idtema) | 259 | editaLegenda: function(idtema) |
260 | - {return(i3GEO.janela.cria("490px","340px",i3GEO.configura.locaplic+"/ferramentas/legenda/index.htm?tema="+idtema,"","","Legenda"));}, | 260 | + {i3GEO.janela.cria("490px","340px",i3GEO.configura.locaplic+"/ferramentas/legenda/index.htm?tema="+idtema,"","","Legenda");}, |
261 | /* | 261 | /* |
262 | Function: download | 262 | Function: download |
263 | 263 | ||
@@ -268,7 +268,7 @@ i3GEO.tema = { | @@ -268,7 +268,7 @@ i3GEO.tema = { | ||
268 | idtema - id ue identifica o tema no map file. | 268 | idtema - id ue identifica o tema no map file. |
269 | */ | 269 | */ |
270 | download: function(idtema) | 270 | download: function(idtema) |
271 | - {return(i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/download/index.htm?tema="+idtema,"","","Download"));} | 271 | + {i3GEO.janela.cria("300px","150px",i3GEO.configura.locaplic+"/ferramentas/download/index.htm?tema="+idtema,"","","Download");} |
272 | } | 272 | } |
273 | - | ||
274 | -}; | ||
275 | \ No newline at end of file | 273 | \ No newline at end of file |
274 | +}; | ||
275 | +YAHOO.log("carregou classe tema", "Classes i3geo"); | ||
276 | \ No newline at end of file | 276 | \ No newline at end of file |
classesjs/classe_util.js
@@ -91,8 +91,10 @@ Extende os métodos de um objeto Array, permitindo remover um elemento. | @@ -91,8 +91,10 @@ Extende os métodos de um objeto Array, permitindo remover um elemento. | ||
91 | 91 | ||
92 | */ | 92 | */ |
93 | Array.prototype.remove=function(s){ | 93 | Array.prototype.remove=function(s){ |
94 | - var i = this.indexOf(s); | ||
95 | - if(i != -1) this.splice(i, 1); | 94 | + try{ |
95 | + var i = this.indexOf(s); | ||
96 | + if(i != -1) this.splice(i, 1); | ||
97 | + }catch(e){} | ||
96 | }; | 98 | }; |
97 | 99 | ||
98 | /* | 100 | /* |
@@ -787,4 +789,5 @@ $top = function(id,valor){ | @@ -787,4 +789,5 @@ $top = function(id,valor){ | ||
787 | }; | 789 | }; |
788 | $left = function(id,valor){ | 790 | $left = function(id,valor){ |
789 | i3GEO.util.$left(id,valor); | 791 | i3GEO.util.$left(id,valor); |
790 | -}; | ||
791 | \ No newline at end of file | 792 | \ No newline at end of file |
793 | +}; | ||
794 | +YAHOO.log("carregou classe util", "Classes i3geo"); | ||
792 | \ No newline at end of file | 795 | \ No newline at end of file |
classesjs/depreciados.js
@@ -1505,4 +1505,5 @@ Function montaMenuSuspenso (depreciado) | @@ -1505,4 +1505,5 @@ Function montaMenuSuspenso (depreciado) | ||
1505 | function montaMenuSuspenso(iddiv){ | 1505 | function montaMenuSuspenso(iddiv){ |
1506 | i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml = iddiv; | 1506 | i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml = iddiv; |
1507 | i3GEO.gadgets.mostraMenuSuspenso(); | 1507 | i3GEO.gadgets.mostraMenuSuspenso(); |
1508 | -} | ||
1509 | \ No newline at end of file | 1508 | \ No newline at end of file |
1509 | +} | ||
1510 | +YAHOO.log("carregou depreciados", "Classes i3geo"); | ||
1510 | \ No newline at end of file | 1511 | \ No newline at end of file |
classesjs/dicionario.js
@@ -87,10 +87,10 @@ it:"Temporizzazione" | @@ -87,10 +87,10 @@ it:"Temporizzazione" | ||
87 | }], | 87 | }], |
88 | "p13": [ | 88 | "p13": [ |
89 | { | 89 | { |
90 | -pt: "Propriedades do mapa", | ||
91 | -en:"Map properties", | ||
92 | -es:"Propiedades del mapa", | ||
93 | -it:"Proprietà della mappa" | 90 | +pt: "Propriedades", |
91 | +en:"Properties", | ||
92 | +es:"Propiedades", | ||
93 | +it:"Proprietà" | ||
94 | }], | 94 | }], |
95 | "p14": [ | 95 | "p14": [ |
96 | { | 96 | { |
@@ -518,8 +518,8 @@ it:"Cambia il nome del tema corrente. Utilizzare per migliorare la legenda della | @@ -518,8 +518,8 @@ it:"Cambia il nome del tema corrente. Utilizzare per migliorare la legenda della | ||
518 | }], | 518 | }], |
519 | "t21":[ | 519 | "t21":[ |
520 | { | 520 | { |
521 | -pt:"novo nome:", | ||
522 | -en:"new name", | 521 | +pt:"Novo nome:", |
522 | +en:"New name", | ||
523 | es:"Nuevo nombre", | 523 | es:"Nuevo nombre", |
524 | it:"Nuovo nome" | 524 | it:"Nuovo nome" |
525 | }], | 525 | }], |
@@ -532,7 +532,7 @@ it:"Trova gli elementi nel tema secondo i suoi attributi descrittivi." | @@ -532,7 +532,7 @@ it:"Trova gli elementi nel tema secondo i suoi attributi descrittivi." | ||
532 | }], | 532 | }], |
533 | "t23":[ | 533 | "t23":[ |
534 | { | 534 | { |
535 | -pt:"procurar...", | 535 | +pt:"Procurar...", |
536 | en:"Search...", | 536 | en:"Search...", |
537 | es:"Buscar...", | 537 | es:"Buscar...", |
538 | it:"Cerca..." | 538 | it:"Cerca..." |
@@ -546,9 +546,9 @@ it:"Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul te | @@ -546,9 +546,9 @@ it:"Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul te | ||
546 | }], | 546 | }], |
547 | "t25":[ | 547 | "t25":[ |
548 | { | 548 | { |
549 | -pt:"texto...", | ||
550 | -en:"label...", | ||
551 | -es:"texto...", | 549 | +pt:"Texto...", |
550 | +en:"Label...", | ||
551 | +es:"Texto...", | ||
552 | it:"Testo..." | 552 | it:"Testo..." |
553 | }], | 553 | }], |
554 | "t26":[ | 554 | "t26":[ |
@@ -560,8 +560,8 @@ it:"Definire le etichette da visualizzare quando il mouse si ferma su un element | @@ -560,8 +560,8 @@ it:"Definire le etichette da visualizzare quando il mouse si ferma su un element | ||
560 | }], | 560 | }], |
561 | "t27":[ | 561 | "t27":[ |
562 | { | 562 | { |
563 | -pt:"etiquetas...", | ||
564 | -en:"tooltip...", | 563 | +pt:"Etiquetas...", |
564 | +en:"Tooltip...", | ||
565 | es:"Etiquetas...", | 565 | es:"Etiquetas...", |
566 | it:"Descrizioni..." | 566 | it:"Descrizioni..." |
567 | }], | 567 | }], |
@@ -588,8 +588,8 @@ it:"Vedi la tabella degli attributi di questo tema." | @@ -588,8 +588,8 @@ it:"Vedi la tabella degli attributi di questo tema." | ||
588 | }], | 588 | }], |
589 | "t31":[ | 589 | "t31":[ |
590 | { | 590 | { |
591 | -pt:"tabela...", | ||
592 | -en:"table...", | 591 | +pt:"Tabela...", |
592 | +en:"Table...", | ||
593 | es:"Tabla...", | 593 | es:"Tabla...", |
594 | it:"Tabella..." | 594 | it:"Tabella..." |
595 | }], | 595 | }], |
@@ -602,8 +602,8 @@ it:"Aprire l'editor di legenda, che consente la modifica della forma di rapprese | @@ -602,8 +602,8 @@ it:"Aprire l'editor di legenda, che consente la modifica della forma di rapprese | ||
602 | }], | 602 | }], |
603 | "t33":[ | 603 | "t33":[ |
604 | { | 604 | { |
605 | -pt:"editar legenda...", | ||
606 | -en:"legend edit...", | 605 | +pt:"Editar legenda...", |
606 | +en:"Legend edit...", | ||
607 | es:"Editar subtítulo...", | 607 | es:"Editar subtítulo...", |
608 | it:"Modifica la legenda" | 608 | it:"Modifica la legenda" |
609 | }], | 609 | }], |
@@ -630,9 +630,9 @@ it:"Tema visibile solo a determinate scale" | @@ -630,9 +630,9 @@ it:"Tema visibile solo a determinate scale" | ||
630 | }], | 630 | }], |
631 | "t37":[ | 631 | "t37":[ |
632 | { | 632 | { |
633 | -pt:"gráfico", | ||
634 | -en:"graphic", | ||
635 | -es:"gráfico", | 633 | +pt:"Gráfico", |
634 | +en:"Graphic", | ||
635 | +es:"Gráfico", | ||
636 | it:"Grafico" | 636 | it:"Grafico" |
637 | }], | 637 | }], |
638 | //guia adiciona | 638 | //guia adiciona |
@@ -761,6 +761,13 @@ it:"Legenda" | @@ -761,6 +761,13 @@ it:"Legenda" | ||
761 | pt:"Mapas", | 761 | pt:"Mapas", |
762 | en:"Maps", | 762 | en:"Maps", |
763 | es:"Mapas", | 763 | es:"Mapas", |
764 | +it:"Mappa" | ||
765 | +}], | ||
766 | +"g4a":[ | ||
767 | +{ | ||
768 | +pt:"Mapa", | ||
769 | +en:"Map", | ||
770 | +es:"Mapa", | ||
764 | it:"Mappe" | 771 | it:"Mappe" |
765 | }], | 772 | }], |
766 | //outros | 773 | //outros |
@@ -773,8 +780,8 @@ it:"Attendere..." | @@ -773,8 +780,8 @@ it:"Attendere..." | ||
773 | }], | 780 | }], |
774 | "o2":[ | 781 | "o2":[ |
775 | { | 782 | { |
776 | -pt:"busca rápida...", | ||
777 | -en:"quick search...", | 783 | +pt:"Busca rápida...", |
784 | +en:"Quick search...", | ||
778 | es:"Búsqueda rápida...", | 785 | es:"Búsqueda rápida...", |
779 | it:"Ricerca rapida ..." | 786 | it:"Ricerca rapida ..." |
780 | }], | 787 | }], |
@@ -861,7 +868,7 @@ it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, ferma | @@ -861,7 +868,7 @@ it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, ferma | ||
861 | pt:"Mostra a extensão geográfica atual em coordenadas geográficas", | 868 | pt:"Mostra a extensão geográfica atual em coordenadas geográficas", |
862 | en:"It shows the extent of current geographic coordinates", | 869 | en:"It shows the extent of current geographic coordinates", |
863 | es:"Muestra la extensión geográfica actual en coordenadas geográficas", | 870 | es:"Muestra la extensión geográfica actual en coordenadas geográficas", |
864 | -it:"Mostra l’estensione geografica corrente in coordinate geografiche" | 871 | +it:"Mostra la estensione geografica corrente in coordinate geografiche" |
865 | }], | 872 | }], |
866 | "d9":[ | 873 | "d9":[ |
867 | { | 874 | { |
@@ -997,3 +1004,4 @@ es:"Elija la vista para los botones y otras caracter&iacute;sticas visuales del | @@ -997,3 +1004,4 @@ es:"Elija la vista para los botones y otras caracter&iacute;sticas visuales del | ||
997 | it:"Scegli il visuale (??) per i pulsanti e le altre caratteristiche visive della mappa." | 1004 | it:"Scegli il visuale (??) per i pulsanti e le altre caratteristiche visive della mappa." |
998 | }] | 1005 | }] |
999 | }; | 1006 | }; |
1007 | +YAHOO.log("carregou dicionario", "Classes i3geo"); | ||
1000 | \ No newline at end of file | 1008 | \ No newline at end of file |
classesphp/funcoes_gerais.php
@@ -664,6 +664,7 @@ function substituiCon($map_file,$postgis_mapa) | @@ -664,6 +664,7 @@ function substituiCon($map_file,$postgis_mapa) | ||
664 | { | 664 | { |
665 | if (($postgis_mapa != "") || ($postgis_mapa != " ")) | 665 | if (($postgis_mapa != "") || ($postgis_mapa != " ")) |
666 | { | 666 | { |
667 | + if(!@ms_newMapObj($map_file)){return false;} | ||
667 | $objMap = ms_newMapObj($map_file); | 668 | $objMap = ms_newMapObj($map_file); |
668 | $numlayers = $objMap->numlayers; | 669 | $numlayers = $objMap->numlayers; |
669 | for ($i=0;$i < $numlayers;++$i) | 670 | for ($i=0;$i < $numlayers;++$i) |
@@ -693,6 +694,7 @@ function substituiCon($map_file,$postgis_mapa) | @@ -693,6 +694,7 @@ function substituiCon($map_file,$postgis_mapa) | ||
693 | $objMap->save($map_file); | 694 | $objMap->save($map_file); |
694 | } | 695 | } |
695 | } | 696 | } |
697 | + return true; | ||
696 | } | 698 | } |
697 | /* | 699 | /* |
698 | function: restauraCon | 700 | function: restauraCon |
classesphp/mapa_controle.php
@@ -169,8 +169,10 @@ $urli3geo = str_replace("/classesphp/mapa_controle.php","",$protocolo.$_SERVER[" | @@ -169,8 +169,10 @@ $urli3geo = str_replace("/classesphp/mapa_controle.php","",$protocolo.$_SERVER[" | ||
169 | //substitui a string de conexão | 169 | //substitui a string de conexão |
170 | // | 170 | // |
171 | if($funcao != "recuperamapa") | 171 | if($funcao != "recuperamapa") |
172 | -{substituiCon($map_file,$postgis_mapa);} | ||
173 | - | 172 | +{ |
173 | + if(!substituiCon($map_file,$postgis_mapa)) | ||
174 | + {$cp->set_data("erro");$cp->return_data();return;} | ||
175 | +} | ||
174 | //set_time_limit(240); | 176 | //set_time_limit(240); |
175 | 177 | ||
176 | // | 178 | // |
css/botoes.css
1 | -#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d | 1 | +#historicozoom,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d |
2 | {cursor:pointer;border: 0px solid rgb(50,50,50);border-bottom:1px solid rgb(50,50,50);border-left:1px solid rgb(50,50,50);width:22;height:22;z-index:1000;position:relative;} | 2 | {cursor:pointer;border: 0px solid rgb(50,50,50);border-bottom:1px solid rgb(50,50,50);border-left:1px solid rgb(50,50,50);width:22;height:22;z-index:1000;position:relative;} |
3 | #box1 | 3 | #box1 |
4 | {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid #ff0000;} | 4 | {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid #ff0000;} |
ferramentas/carregamapa/upload.php
@@ -100,7 +100,7 @@ if (isset($_FILES['filemap']['name'])) | @@ -100,7 +100,7 @@ if (isset($_FILES['filemap']['name'])) | ||
100 | } | 100 | } |
101 | $map->save($map_file); | 101 | $map->save($map_file); |
102 | echo "Ok. redesenhando."; | 102 | echo "Ok. redesenhando."; |
103 | - echo "<script>window.parent.remapaf()</script>"; | 103 | + echo "<script>window.parent.i3GEO.atualiza()</script>"; |
104 | } | 104 | } |
105 | else | 105 | else |
106 | { | 106 | { |
ferramentas/funcoes.js
@@ -774,7 +774,7 @@ function randomRGB() | @@ -774,7 +774,7 @@ function randomRGB() | ||
774 | function parametrosURL() | 774 | function parametrosURL() |
775 | { | 775 | { |
776 | g_locaplic = window.parent.g_locaplic; //localizacao da aplicacao | 776 | g_locaplic = window.parent.g_locaplic; //localizacao da aplicacao |
777 | - g_r = window.parent.g_r; | 777 | + g_r = window.parent.i3GEO.parametros.r; |
778 | var temp = (window.location.href).split("tema="); | 778 | var temp = (window.location.href).split("tema="); |
779 | if (temp[1]) | 779 | if (temp[1]) |
780 | {tema = (temp[1].split("&"))[0];} | 780 | {tema = (temp[1].split("&"))[0];} |
ferramentas/googlemaps/index.php
@@ -17,8 +17,8 @@ include_once("../../ms_configura.php"); | @@ -17,8 +17,8 @@ include_once("../../ms_configura.php"); | ||
17 | <script type="text/javascript" > | 17 | <script type="text/javascript" > |
18 | counterClick = 0 | 18 | counterClick = 0 |
19 | var m = document.getElementById("map") | 19 | var m = document.getElementById("map") |
20 | - m.style.width = window.parent.objmapa.w / 2 | ||
21 | - m.style.height = window.parent.objmapa.h / 2 | 20 | + m.style.width = window.parent.i3GEO.parametros.w / 2 |
21 | + m.style.height = window.parent.i3GEO.parametros.h / 2 | ||
22 | //chave na producao= ABQIAAAAg9kA9xQlYqK9iBDKaeTpgxSieGwtcPDeiUtRiq7Xa63cyLppcxTVYXnVlPwveOe-sXuXfpBeNpL6pA | 22 | //chave na producao= ABQIAAAAg9kA9xQlYqK9iBDKaeTpgxSieGwtcPDeiUtRiq7Xa63cyLppcxTVYXnVlPwveOe-sXuXfpBeNpL6pA |
23 | //chave no desenvolvimento = ABQIAAAAg9kA9xQlYqK9iBDKaeTpgxQ_qvn5wqSkbcx9uoqrWGnUcZ7lqhRVzkJwzeDN3nQJheG7FjoxyruBIQ | 23 | //chave no desenvolvimento = ABQIAAAAg9kA9xQlYqK9iBDKaeTpgxQ_qvn5wqSkbcx9uoqrWGnUcZ7lqhRVzkJwzeDN3nQJheG7FjoxyruBIQ |
24 | i3geoOverlay = false; | 24 | i3geoOverlay = false; |
@@ -29,10 +29,10 @@ include_once("../../ms_configura.php"); | @@ -29,10 +29,10 @@ include_once("../../ms_configura.php"); | ||
29 | var app = navigator.appName.substring(0,1); | 29 | var app = navigator.appName.substring(0,1); |
30 | if (app=='N') navn=true; else navm=true; | 30 | if (app=='N') navn=true; else navm=true; |
31 | 31 | ||
32 | - if(window.parent.objmapa) | 32 | + if(window.parent.i3GEO.parametros) |
33 | { | 33 | { |
34 | docmapa = window.parent.document | 34 | docmapa = window.parent.document |
35 | - pol = window.parent.objmapa.extent | 35 | + pol = window.parent.i3GEO.parametros.mapexten |
36 | ret = pol.split(" ") | 36 | ret = pol.split(" ") |
37 | pt1 = (( (ret[0] * -1) - (ret[2] * -1) ) / 2) + ret[0] *1 | 37 | pt1 = (( (ret[0] * -1) - (ret[2] * -1) ) / 2) + ret[0] *1 |
38 | pt2 = (((ret[1] - ret[3]) / 2)* -1) + ret[1] *1 | 38 | pt2 = (((ret[1] - ret[3]) / 2)* -1) + ret[1] *1 |
@@ -115,45 +115,42 @@ include_once("../../ms_configura.php"); | @@ -115,45 +115,42 @@ include_once("../../ms_configura.php"); | ||
115 | button.style.width = "3em"; | 115 | button.style.width = "3em"; |
116 | button.style.cursor = "pointer"; | 116 | button.style.cursor = "pointer"; |
117 | } | 117 | } |
118 | - if(window.parent.objmapa.mapfile) | 118 | + if(window.parent.i3GEO.parametros.mapfile) |
119 | map.addControl(new botaoI3geo()); | 119 | map.addControl(new botaoI3geo()); |
120 | 120 | ||
121 | function moveMapa(bd) | 121 | function moveMapa(bd) |
122 | { | 122 | { |
123 | nex = bd.minX+" "+bd.minY+" "+bd.maxX+" "+bd.maxY | 123 | nex = bd.minX+" "+bd.minY+" "+bd.maxX+" "+bd.maxY |
124 | - var p = window.parent.g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+nex | 124 | + var p = window.parent.i3GEO.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+nex |
125 | var cp = new cpaint(); | 125 | var cp = new cpaint(); |
126 | //cp.set_debug(2) | 126 | //cp.set_debug(2) |
127 | cp.set_response_type("JSON"); | 127 | cp.set_response_type("JSON"); |
128 | - cp.call(p,"mudaExtensao",window.parent.ajaxredesenha); | 128 | + cp.call(p,"mudaExtensao",window.parent.i3GEO.atualiza); |
129 | //ondegoogle(bd); | 129 | //ondegoogle(bd); |
130 | } | 130 | } |
131 | function ondegoogle() | 131 | function ondegoogle() |
132 | { | 132 | { |
133 | - if(window.parent.objmapa) | ||
134 | - { | ||
135 | - var bd = map.getBounds(); | ||
136 | - var so = bd.getSouthWest(); | ||
137 | - var ne = bd.getNorthEast(); | ||
138 | - var xyMin = window.parent.i3GEO.calculo.dd2tela(so.lng(),so.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize); | ||
139 | - var xyMax = window.parent.i3GEO.calculo.dd2tela(ne.lng(),ne.lat(),window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize); | ||
140 | - var box = window.parent.$i("boxg") | ||
141 | - var w = xyMax[0]-xyMin[0] | ||
142 | - var h = xyMin[1]-xyMax[1] | ||
143 | - box.style.display = "block" | ||
144 | - box.style.width = w | ||
145 | - box.style.height = h | ||
146 | - box.style.top = xyMax[1]+"px" | ||
147 | - box.style.left = xyMin[0]+"px" | ||
148 | - box.style.display="block" | ||
149 | - } | 133 | + var bd = map.getBounds(); |
134 | + var so = bd.getSouthWest(); | ||
135 | + var ne = bd.getNorthEast(); | ||
136 | + var xyMin = window.parent.i3GEO.calculo.dd2tela(so.lng(),so.lat(),window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize); | ||
137 | + var xyMax = window.parent.i3GEO.calculo.dd2tela(ne.lng(),ne.lat(),window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize); | ||
138 | + var box = window.parent.$i("boxg") | ||
139 | + var w = xyMax[0]-xyMin[0] | ||
140 | + var h = xyMin[1]-xyMax[1] | ||
141 | + box.style.display = "block" | ||
142 | + box.style.width = w | ||
143 | + box.style.height = h | ||
144 | + box.style.top = xyMax[1]+"px" | ||
145 | + box.style.left = xyMin[0]+"px" | ||
146 | + box.style.display="block" | ||
150 | } | 147 | } |
151 | 148 | ||
152 | function panTogoogle() | 149 | function panTogoogle() |
153 | { | 150 | { |
154 | var b = window.parent.document.getElementById("boxg"); | 151 | var b = window.parent.document.getElementById("boxg"); |
155 | b.style.display="block"; | 152 | b.style.display="block"; |
156 | - pol = window.parent.objmapa.extent; | 153 | + pol = window.parent.i3GEO.parametros.mapexten; |
157 | ret = pol.split(" "); | 154 | ret = pol.split(" "); |
158 | pt1 = (( (ret[0] * -1) - (ret[2] * -1) ) / 2) + ret[0] *1; | 155 | pt1 = (( (ret[0] * -1) - (ret[2] * -1) ) / 2) + ret[0] *1; |
159 | pt2 = (((ret[1] - ret[3]) / 2)* -1) + ret[1] *1; | 156 | pt2 = (((ret[1] - ret[3]) / 2)* -1) + ret[1] *1; |
@@ -171,7 +168,7 @@ include_once("../../ms_configura.php"); | @@ -171,7 +168,7 @@ include_once("../../ms_configura.php"); | ||
171 | } | 168 | } |
172 | function criaWMS() | 169 | function criaWMS() |
173 | { | 170 | { |
174 | - var cgi = window.parent.g_locaplic+"/classesphp/parse_cgi.php?g_sid="+window.parent.g_sid | 171 | + var cgi = window.parent.i3GEO.configura.locaplic+"/classesphp/parse_cgi.php?g_sid="+window.parent.i3GEO.configura.sid |
175 | var parametros = "&map_size="+parseInt(document.getElementById("map").style.width) | 172 | var parametros = "&map_size="+parseInt(document.getElementById("map").style.width) |
176 | parametros += ","+parseInt(document.getElementById("map").style.height) | 173 | parametros += ","+parseInt(document.getElementById("map").style.height) |
177 | parametros += "&mapext="+bbox() | 174 | parametros += "&mapext="+bbox() |
@@ -314,10 +311,10 @@ include_once("../../ms_configura.php"); | @@ -314,10 +311,10 @@ include_once("../../ms_configura.php"); | ||
314 | var cp = new cpaint(); | 311 | var cp = new cpaint(); |
315 | cp.set_response_type("JSON"); | 312 | cp.set_response_type("JSON"); |
316 | //cp.set_debug(2) | 313 | //cp.set_debug(2) |
317 | - var p = window.parent.g_locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.g_sid+"&funcao=sphPT2shp¶=linha&tema="+temaNovo; | ||
318 | - cp.call(p,"sphPT2shp",window.parent.ajaxredesenha); | 314 | + var p = window.parent.i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.i3GEO.configura.sid+"&funcao=sphPT2shp¶=linha&tema="+temaNovo; |
315 | + cp.call(p,"sphPT2shp",window.parent.i3GEO.atualiza); | ||
319 | } | 316 | } |
320 | - var p = window.parent.g_locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.g_sid+"&funcao=insereSHP&tema="+retorno.data+"&xy="+pontos.join(" "); | 317 | + var p = window.parent.i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.i3GEO.configura.sid+"&funcao=insereSHP&tema="+retorno.data+"&xy="+pontos.join(" "); |
321 | var cp = new cpaint(); | 318 | var cp = new cpaint(); |
322 | //cp.set_debug(2) | 319 | //cp.set_debug(2) |
323 | cp.set_response_type("JSON"); | 320 | cp.set_response_type("JSON"); |
@@ -326,7 +323,7 @@ include_once("../../ms_configura.php"); | @@ -326,7 +323,7 @@ include_once("../../ms_configura.php"); | ||
326 | var cp = new cpaint(); | 323 | var cp = new cpaint(); |
327 | cp.set_response_type("JSON"); | 324 | cp.set_response_type("JSON"); |
328 | cp.set_transfer_mode("POST"); | 325 | cp.set_transfer_mode("POST"); |
329 | - var p = window.parent.g_locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.g_sid; | 326 | + var p = window.parent.i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+window.parent.i3GEO.configura.sid; |
330 | cp.call(p,"criaSHPvazio",ativanovotema,"&funcao=criashpvazio"); | 327 | cp.call(p,"criaSHPvazio",ativanovotema,"&funcao=criashpvazio"); |
331 | 328 | ||
332 | }); | 329 | }); |
ferramentas/inserexy/index.js
@@ -127,8 +127,8 @@ function inserir() | @@ -127,8 +127,8 @@ function inserir() | ||
127 | var ygv = $i("yg").value; | 127 | var ygv = $i("yg").value; |
128 | var ymv = $i("ym").value; | 128 | var ymv = $i("ym").value; |
129 | var ysv = $i("ys").value; | 129 | var ysv = $i("ys").value; |
130 | - var xxx = window.parent.convdmsddf(xgv,xmv,xsv); | ||
131 | - var yyy = window.parent.convdmsddf(ygv,ymv,ysv); | 130 | + var xxx = window.parent.i3GEO.calculo.dms2dd(xgv,xmv,xsv); |
131 | + var yyy = window.parent.i3GEO.calculo.dms2dd(ygv,ymv,ysv); | ||
132 | var ins = $i("resultado").innerHTML | 132 | var ins = $i("resultado").innerHTML |
133 | ins = ins + "<div style='cursor:pointer; display:block;position:relative;top:5px;left:0px;' title='clique para remover' onclick='remove(this)'>" + xxx +" " + yyy + "</div><br>" | 133 | ins = ins + "<div style='cursor:pointer; display:block;position:relative;top:5px;left:0px;' title='clique para remover' onclick='remove(this)'>" + xxx +" " + yyy + "</div><br>" |
134 | $i("resultado").innerHTML = ins | 134 | $i("resultado").innerHTML = ins |
ferramentas/inserexy2/index.js
@@ -255,8 +255,8 @@ function inserir() | @@ -255,8 +255,8 @@ function inserir() | ||
255 | var ysv = $i("ys").value; | 255 | var ysv = $i("ys").value; |
256 | var ysv = ysv.replace(regv,"."); | 256 | var ysv = ysv.replace(regv,"."); |
257 | } | 257 | } |
258 | - var xxx = window.parent.convdmsddf(xgv,xmv,xsv); | ||
259 | - var yyy = window.parent.convdmsddf(ygv,ymv,ysv); | 258 | + var xxx = window.parent.i3GEO.calculo.dms2dd(xgv,xmv,xsv); |
259 | + var yyy = window.parent.i3GEO.calculo.dms2dd(ygv,ymv,ysv); | ||
260 | var ins = $i("resultado").innerHTML | 260 | var ins = $i("resultado").innerHTML |
261 | ins = ins + "<div style='display:block;position:relative;top:5px;left:0px;font-size:12px' >" + xxx +" " + yyy + "</div><br>" | 261 | ins = ins + "<div style='display:block;position:relative;top:5px;left:0px;font-size:12px' >" + xxx +" " + yyy + "</div><br>" |
262 | $i("resultado").innerHTML = ins | 262 | $i("resultado").innerHTML = ins |
@@ -271,7 +271,7 @@ function inserir() | @@ -271,7 +271,7 @@ function inserir() | ||
271 | {var projecao = inputs[i].value} | 271 | {var projecao = inputs[i].value} |
272 | } | 272 | } |
273 | var projecao = pegaProj() | 273 | var projecao = pegaProj() |
274 | - var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&"+window.parent.objmapa.sid+"&funcao=insereSHP&tema="+window.parent.g_nomepin+"&xy="+xxx+" "+yyy+"&projecao="+projecao; | 274 | + var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&"+g_sid+"&funcao=insereSHP&tema="+window.parent.g_nomepin+"&xy="+xxx+" "+yyy+"&projecao="+projecao; |
275 | var cp = new cpaint(); | 275 | var cp = new cpaint(); |
276 | //cp.set_debug(2) | 276 | //cp.set_debug(2) |
277 | cp.set_response_type("JSON"); | 277 | cp.set_response_type("JSON"); |
ferramentas/mostraexten/index.htm
@@ -18,33 +18,33 @@ | @@ -18,33 +18,33 @@ | ||
18 | <tr> | 18 | <tr> |
19 | <td>Menor longitude (oeste):</td> | 19 | <td>Menor longitude (oeste):</td> |
20 | <td> | 20 | <td> |
21 | - <input onchange="mudabox()" class=digitar id='xg' title='grau' type=text size=3 value='-00'/> | ||
22 | - <input onchange="mudabox()" class=digitar id='xm' title='minuto' type=text size=3 value='00'/> | ||
23 | - <input onchange="mudabox()" class=digitar id='xs' title='segundo' type=text size=3 value='0.0'/> | 21 | + <input class=digitar id='xg' title='grau' type=text size=3 value='-00'/> |
22 | + <input class=digitar id='xm' title='minuto' type=text size=3 value='00'/> | ||
23 | + <input class=digitar id='xs' title='segundo' type=text size=3 value='0.0'/> | ||
24 | </td> | 24 | </td> |
25 | </tr> | 25 | </tr> |
26 | <tr> | 26 | <tr> |
27 | <td>Menor latitude (sul):</td> | 27 | <td>Menor latitude (sul):</td> |
28 | <td> | 28 | <td> |
29 | - <input onchange="mudabox()" class=digitar id='yg' title='grau' type=text size=3 value='-00'/> | ||
30 | - <input onchange="mudabox()" class=digitar id='ym' title='minuto' type=text size=3 value='00'/> | ||
31 | - <input onchange="mudabox()" class=digitar id='ys' title='segundo' type=text size=3 value='0.0'/> | 29 | + <input class=digitar id='yg' title='grau' type=text size=3 value='-00'/> |
30 | + <input class=digitar id='ym' title='minuto' type=text size=3 value='00'/> | ||
31 | + <input class=digitar id='ys' title='segundo' type=text size=3 value='0.0'/> | ||
32 | </td> | 32 | </td> |
33 | </tr> | 33 | </tr> |
34 | <tr> | 34 | <tr> |
35 | <td>Maior longitude (leste):</td> | 35 | <td>Maior longitude (leste):</td> |
36 | <td> | 36 | <td> |
37 | - <input onchange="mudabox()" class=digitar id='xxg' title='grau' type=text size=3 value='-00'/> | ||
38 | - <input onchange="mudabox()" class=digitar id='xxm' title='minuto' type=text size=3 value='00'/> | ||
39 | - <input onchange="mudabox()" class=digitar id='xxs' title='segundo' type=text size=3 value='0.0'/> | 37 | + <input class=digitar id='xxg' title='grau' type=text size=3 value='-00'/> |
38 | + <input class=digitar id='xxm' title='minuto' type=text size=3 value='00'/> | ||
39 | + <input class=digitar id='xxs' title='segundo' type=text size=3 value='0.0'/> | ||
40 | </td> | 40 | </td> |
41 | </tr> | 41 | </tr> |
42 | <tr> | 42 | <tr> |
43 | <td>Maior latitude (norte):</td> | 43 | <td>Maior latitude (norte):</td> |
44 | <td> | 44 | <td> |
45 | - <input onchange="mudabox()" class=digitar id='yyg' title='grau' type=text size=3 value='-00'/> | ||
46 | - <input onchange="mudabox()" class=digitar id='yym' title='minuto' type=text size=3 value='00'/> | ||
47 | - <input onchange="mudabox()" class=digitar id='yys' title='segundo' type=text size=3 value='0.0'/> | 45 | + <input class=digitar id='yyg' title='grau' type=text size=3 value='-00'/> |
46 | + <input class=digitar id='yym' title='minuto' type=text size=3 value='00'/> | ||
47 | + <input class=digitar id='yys' title='segundo' type=text size=3 value='0.0'/> | ||
48 | </td> | 48 | </td> |
49 | </tr> | 49 | </tr> |
50 | </table> | 50 | </table> |
ferramentas/mostraexten/index.js
@@ -20,6 +20,7 @@ Free Software Foundation, Inc., no endereço | @@ -20,6 +20,7 @@ Free Software Foundation, Inc., no endereço | ||
20 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | 20 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
21 | */ | 21 | */ |
22 | //pega o elemento boxref para desenhar um retângulo no mapa de referência | 22 | //pega o elemento boxref para desenhar um retângulo no mapa de referência |
23 | +/* | ||
23 | boxref = false | 24 | boxref = false |
24 | if (window.parent.document.getElementById("boxRef")) | 25 | if (window.parent.document.getElementById("boxRef")) |
25 | {boxref = window.parent.document.getElementById("boxRef")} | 26 | {boxref = window.parent.document.getElementById("boxRef")} |
@@ -31,6 +32,7 @@ if((boxref) && !window.parent.document.getElementById("refDinamico").checked) | @@ -31,6 +32,7 @@ if((boxref) && !window.parent.document.getElementById("refDinamico").checked) | ||
31 | boxref.style.width=0; | 32 | boxref.style.width=0; |
32 | boxref.style.height=0; | 33 | boxref.style.height=0; |
33 | } | 34 | } |
35 | +*/ | ||
34 | //inicializa alguns parâmetros. | 36 | //inicializa alguns parâmetros. |
35 | parametrosURL() | 37 | parametrosURL() |
36 | YAHOO.example.init = function () | 38 | YAHOO.example.init = function () |
@@ -46,16 +48,18 @@ function aplicar() | @@ -46,16 +48,18 @@ function aplicar() | ||
46 | { | 48 | { |
47 | try | 49 | try |
48 | { | 50 | { |
51 | + aguarde("block") | ||
49 | var temp = function (retorno) | 52 | var temp = function (retorno) |
50 | { | 53 | { |
51 | - eval(retorno.data) | 54 | + eval(retorno.data.variaveis) |
52 | $i("extatual").innerHTML = mapexten | 55 | $i("extatual").innerHTML = mapexten |
53 | window.parent.i3GEO.atualiza("") | 56 | window.parent.i3GEO.atualiza("") |
57 | + aguarde("none") | ||
54 | } | 58 | } |
55 | - var x = window.parent.convdmsddf($i("xg").value,$i("xm").value,$i("xs").value); | ||
56 | - var xx = window.parent.convdmsddf($i("xxg").value,$i("xxm").value,$i("xxs").value); | ||
57 | - var y = window.parent.convdmsddf($i("yg").value,$i("ym").value,$i("ys").value); | ||
58 | - var yy = window.parent.convdmsddf($i("yyg").value,$i("yym").value,$i("yys").value); | 59 | + var x = window.parent.i3GEO.calculo.dms2dd($i("xg").value,$i("xm").value,$i("xs").value); |
60 | + var xx = window.parent.i3GEO.calculo.dms2dd($i("xxg").value,$i("xxm").value,$i("xxs").value); | ||
61 | + var y = window.parent.i3GEO.calculo.dms2dd($i("yg").value,$i("ym").value,$i("ys").value); | ||
62 | + var yy = window.parent.i3GEO.calculo.dms2dd($i("yyg").value,$i("yym").value,$i("yys").value); | ||
59 | if ((x == xx) || (y == yy)) | 63 | if ((x == xx) || (y == yy)) |
60 | {alert("Digite coordenadas válidas");return;} | 64 | {alert("Digite coordenadas válidas");return;} |
61 | if ((x > xx) || (y > yy)) | 65 | if ((x > xx) || (y > yy)) |
@@ -63,7 +67,7 @@ function aplicar() | @@ -63,7 +67,7 @@ function aplicar() | ||
63 | var cp = new cpaint(); | 67 | var cp = new cpaint(); |
64 | cp.set_response_type("JSON"); | 68 | cp.set_response_type("JSON"); |
65 | //cp.set_debug(2) | 69 | //cp.set_debug(2) |
66 | - var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+window.parent.g_tipoimagem+"&ext="+x+" "+y+" "+xx+" "+yy+"&g_sid="+window.parent.g_sid; | 70 | + var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&tipoimagem="+window.parent.i3GEO.parametros.tipoimagem+"&ext="+x+" "+y+" "+xx+" "+yy+"&g_sid="+g_sid; |
67 | cp.call(p,"sphPT2shp",temp); | 71 | cp.call(p,"sphPT2shp",temp); |
68 | } | 72 | } |
69 | catch(e){alert("Digite coordenadas válidas");} | 73 | catch(e){alert("Digite coordenadas válidas");} |
@@ -73,10 +77,10 @@ function mudabox() | @@ -73,10 +77,10 @@ function mudabox() | ||
73 | { | 77 | { |
74 | if((boxref) && !window.parent.document.getElementById("refDinamico").checked) | 78 | if((boxref) && !window.parent.document.getElementById("refDinamico").checked) |
75 | { | 79 | { |
76 | - var x = window.parent.convdmsddf($i("xg").value,$i("xm").value,$i("xs").value); | ||
77 | - var xx = window.parent.convdmsddf($i("xxg").value,$i("xxm").value,$i("xxs").value); | ||
78 | - var y = window.parent.convdmsddf($i("yg").value,$i("ym").value,$i("ys").value); | ||
79 | - var yy = window.parent.convdmsddf($i("yyg").value,$i("yym").value,$i("yys").value); | 80 | + var x = window.parent.i3GEO.calculo.dms2dd($i("xg").value,$i("xm").value,$i("xs").value); |
81 | + var xx = window.parent.i3GEO.calculo.dms2dd($i("xxg").value,$i("xxm").value,$i("xxs").value); | ||
82 | + var y = window.parent.i3GEO.calculo.dms2dd($i("yg").value,$i("ym").value,$i("ys").value); | ||
83 | + var yy = window.parent.i3GEO.calculo.dms2dd($i("yyg").value,$i("yym").value,$i("yys").value); | ||
80 | if ((x == xx) || (y == yy)) | 84 | if ((x == xx) || (y == yy)) |
81 | {return;} | 85 | {return;} |
82 | if ((x > xx) || (y > yy)) | 86 | if ((x > xx) || (y > yy)) |
ferramentas/opcoes_tamanho/index.js
@@ -35,24 +35,28 @@ function executaf() | @@ -35,24 +35,28 @@ function executaf() | ||
35 | if ((l > 5) && (a > 5)) | 35 | if ((l > 5) && (a > 5)) |
36 | { | 36 | { |
37 | var doc = window.parent.document | 37 | var doc = window.parent.document |
38 | - window.parent.objmapa.w = l | ||
39 | - window.parent.objmapa.h = a | 38 | + window.parent.i3GEO.parametros.w = l |
39 | + window.parent.i3GEO.parametros.h = a | ||
40 | var pos = "px" | 40 | var pos = "px" |
41 | if (window.parent.navm){pos = ""} | 41 | if (window.parent.navm){pos = ""} |
42 | - doc.getElementById("img").style.width= l+pos | ||
43 | - doc.getElementById("img").style.height= a+pos | ||
44 | - doc.getElementById("corpoMapa").style.width= l+pos | ||
45 | - doc.getElementById("corpoMapa").style.height= a+pos | ||
46 | - doc.getElementById("corpoMapa").style.clip = 'rect('+0+" "+(l*1+2)+" "+(a*1+2)+" "+0+')' | 42 | + doc.getElementById(window.parent.i3GEO.interface.IDMAPA).style.width= l+pos |
43 | + doc.getElementById(window.parent.i3GEO.interface.IDMAPA).style.height= a+pos | ||
44 | + doc.getElementById(window.parent.i3GEO.interface.IDCORPO).style.width= l+pos | ||
45 | + doc.getElementById(window.parent.i3GEO.interface.IDCORPO).style.height= a+pos | ||
46 | + doc.getElementById(window.parent.i3GEO.interface.IDCORPO).style.clip = 'rect('+0+" "+(l*1+2)+" "+(a*1+2)+" "+0+')' | ||
47 | var calc = 5; | 47 | var calc = 5; |
48 | if (doc.getElementById("ferramentas")) | 48 | if (doc.getElementById("ferramentas")) |
49 | {calc += parseInt(doc.getElementById("ferramentas").style.width);} | 49 | {calc += parseInt(doc.getElementById("ferramentas").style.width);} |
50 | if (doc.getElementById("contemFerramentas")) | 50 | if (doc.getElementById("contemFerramentas")) |
51 | {calc += parseInt(doc.getElementById("contemFerramentas").style.width);} | 51 | {calc += parseInt(doc.getElementById("contemFerramentas").style.width);} |
52 | + if(doc.getElementById("mst")) | ||
52 | doc.getElementById("mst").style.width = (l * 1) + calc + pos; | 53 | doc.getElementById("mst").style.width = (l * 1) + calc + pos; |
53 | - doc.getElementById("contemImg").style.height= a+pos | ||
54 | - doc.getElementById("contemImg").style.width= l+pos | ||
55 | - | 54 | + if(doc.getElementById("contemImg")) |
55 | + { | ||
56 | + doc.getElementById("contemImg").style.height= a+pos | ||
57 | + doc.getElementById("contemImg").style.width= l+pos | ||
58 | + } | ||
59 | + /* | ||
56 | for(var g=0;g<12;g++) | 60 | for(var g=0;g<12;g++) |
57 | { | 61 | { |
58 | if (window.parent.document.getElementById("guia"+g)) | 62 | if (window.parent.document.getElementById("guia"+g)) |
@@ -60,16 +64,19 @@ function executaf() | @@ -60,16 +64,19 @@ function executaf() | ||
60 | window.parent.document.getElementById("guia"+g+"obj").style.height = window.parent.objmapa.h; | 64 | window.parent.document.getElementById("guia"+g+"obj").style.height = window.parent.objmapa.h; |
61 | } | 65 | } |
62 | } | 66 | } |
63 | - | ||
64 | - | ||
65 | - | ||
66 | - | ||
67 | - window.parent.calcposf() | ||
68 | - window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...") | 67 | + */ |
68 | + //window.parent.calcposf() | ||
69 | + //window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...") | ||
70 | + var temp = function(){ | ||
71 | + window.parent.i3GEO.atualiza(); | ||
72 | + window.parent.i3GEO.guias.ajustaAltura(); | ||
73 | + aguarde("none") | ||
74 | + } | ||
75 | + aguarde("block") | ||
69 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=mudatamanho&altura="+a+"&largura="+l | 76 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=mudatamanho&altura="+a+"&largura="+l |
70 | var cp = new cpaint(); | 77 | var cp = new cpaint(); |
71 | //cp.set_debug(2) | 78 | //cp.set_debug(2) |
72 | cp.set_response_type("JSON"); | 79 | cp.set_response_type("JSON"); |
73 | - cp.call(p,"mudaQS",window.parent.i3GEO.atualiza); | 80 | + cp.call(p,"mudaQS",temp); |
74 | } | 81 | } |
75 | } | 82 | } |
76 | \ No newline at end of file | 83 | \ No newline at end of file |
ferramentas/tabela/index.js
@@ -24,7 +24,7 @@ nomeArquivoGr = "" //nome do arquivo que conterá os dados apoós ser feito o gráf | @@ -24,7 +24,7 @@ nomeArquivoGr = "" //nome do arquivo que conterá os dados apoós ser feito o gráf | ||
24 | mensagemAjuda("men1",$i("men1").innerHTML) | 24 | mensagemAjuda("men1",$i("men1").innerHTML) |
25 | parametrosURL() | 25 | parametrosURL() |
26 | //se o R estiver instalado, mostra a guia de graficos | 26 | //se o R estiver instalado, mostra a guia de graficos |
27 | -if (g_r != "sim") | 27 | +if (window.parent.i3GEO.parametros.r != "sim") |
28 | {$i("guia4obj").innerHTML = "Opção não disponível"} | 28 | {$i("guia4obj").innerHTML = "Opção não disponível"} |
29 | ativaGuias("") | 29 | ativaGuias("") |
30 | mostraGuia("guia1") | 30 | mostraGuia("guia1") |
ferramentas/tipoimagem/index.htm
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | </head> | 7 | </head> |
8 | <body> | 8 | <body> |
9 | <div id=opcoes style=top:0px;left:0px;text-align:left;width:100%; > | 9 | <div id=opcoes style=top:0px;left:0px;text-align:left;width:100%; > |
10 | - Escolha o filtro que será aplicado. Filtros podem tornar o desenho do mapa mais lento.<br><br> | 10 | + Escolha o filtro de cores que será aplicado. Filtros podem tornar o desenho do mapa mais lento.<br><br> |
11 | <table summary="" class=lista3 > | 11 | <table summary="" class=lista3 > |
12 | <tr> | 12 | <tr> |
13 | <td><input style='cursor:pointer' type=radio name=tipo value=nenhum checked ></td> | 13 | <td><input style='cursor:pointer' type=radio name=tipo value=nenhum checked ></td> |
ferramentas/tipoimagem/index.js
@@ -37,7 +37,7 @@ function aplicar() | @@ -37,7 +37,7 @@ function aplicar() | ||
37 | if (ipt[i].checked) | 37 | if (ipt[i].checked) |
38 | {var valor = ipt[i].value} | 38 | {var valor = ipt[i].value} |
39 | } | 39 | } |
40 | - window.parent.g_tipoimagem = valor | 40 | + window.parent.i3GEO.configura.tipoimagem = valor |
41 | window.parent.g_operacao = "outras" | 41 | window.parent.g_operacao = "outras" |
42 | window.parent.i3GEO.atualiza("") | 42 | window.parent.i3GEO.atualiza("") |
43 | } | 43 | } |
44 | \ No newline at end of file | 44 | \ No newline at end of file |
ferramentas/wiki/funcoes.php
@@ -3,6 +3,7 @@ error_reporting(0); | @@ -3,6 +3,7 @@ error_reporting(0); | ||
3 | //set_time_limit(600); | 3 | //set_time_limit(600); |
4 | require_once("../../pacotes/cpaint/cpaint2.inc.php"); | 4 | require_once("../../pacotes/cpaint/cpaint2.inc.php"); |
5 | require_once("../../classesphp/pega_variaveis.php"); | 5 | require_once("../../classesphp/pega_variaveis.php"); |
6 | +require_once("../../classesphp/carrega_ext.php"); | ||
6 | $cp = new cpaint(); | 7 | $cp = new cpaint(); |
7 | $cp->register('listaartigos'); | 8 | $cp->register('listaartigos'); |
8 | $cp->start(); | 9 | $cp->start(); |
ferramentas/wiki/index.htm
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | <style type="text/css">.yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}</style> | 5 | <style type="text/css">.yuibutton button{padding-left:2em;background:url(../../imagens/tic.png) 5% 50% no-repeat;}</style> |
6 | <title></title> | 6 | <title></title> |
7 | </head> | 7 | </head> |
8 | - <body class="yui-skin-sam" > | ||
9 | - <div style="top:5px;left:5px;display:block;width:90%" id="resultadowiki" >Aguarde...</div> | 8 | + <body class="yui-skin-sam" style=overflow:auto > |
9 | + <div style="top:5px;left:5px;display:block;width:90%;overflow:auto" id="resultadowiki" >Aguarde...</div> | ||
10 | 10 | ||
11 | 11 | ||
12 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> | 12 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> |
guia_migracao_41.txt
@@ -95,4 +95,25 @@ Idiomas | @@ -95,4 +95,25 @@ Idiomas | ||
95 | Utilitários | 95 | Utilitários |
96 | 96 | ||
97 | Foi criada uma classe específica com funções de uso geral. Veja em: | 97 | Foi criada uma classe específica com funções de uso geral. Veja em: |
98 | - http://localhost/i3geo/documentacao/files/classesjs/classe_util-js.html | ||
99 | \ No newline at end of file | 98 | \ No newline at end of file |
99 | + http://localhost/i3geo/documentacao/files/classesjs/classe_util-js.html | ||
100 | + | ||
101 | +Cálculos | ||
102 | + | ||
103 | + Os cálculos agora estão na classe i3GEO.calculo, por exemplo, para converter coordenadas de dd para dms, utilize: | ||
104 | + i3GEO.calculo.dd2dms(dd) | ||
105 | + | ||
106 | +OBJMAPA | ||
107 | + | ||
108 | + A forma de inicialização do i3geo do lado do navegador (javascript) agora é controlado pela classe i3GEO. | ||
109 | + O "objmapa" não é mais utilizado. | ||
110 | + Os parâmetros do mapa, como extensão geográfica, tamanho do pixel, etc, são agora acessados por meio | ||
111 | + de i3GEO.parametros, por exemplo, para obter a extensão geográfica do mapa atual, utilize: | ||
112 | + alert(i3GEO.parametros.mapexten) | ||
113 | + A lista completa de i3GEO.parametros pode ser vista em i3geo/classesjs/classe_i3geo.js | ||
114 | + | ||
115 | +Variáveis de configuração | ||
116 | + | ||
117 | + Muitas das novas classes possuem seus próprios métodos de configuração. Porém os parâmetros principais | ||
118 | + de configuração do mapa ficam agora na classe i3GEO.configura | ||
119 | + Por exemplo, para obter o diretório onde o i3geo está instalado, antes utilizava-se g_locaplic, agora utiliza-se | ||
120 | + i3GEO.configura.locaplic | ||
100 | \ No newline at end of file | 121 | \ No newline at end of file |
pacotes/balloon-tooltips/htdocs/js/balloon.js
@@ -98,7 +98,10 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | @@ -98,7 +98,10 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | ||
98 | if (this.isKonqueror()) this.allowFade = false; | 98 | if (this.isKonqueror()) this.allowFade = false; |
99 | 99 | ||
100 | // Check for mouseover (vs. mousedown or click) | 100 | // Check for mouseover (vs. mousedown or click) |
101 | - var mouseOver = evt.type.match('mouseover','i'); | 101 | + var mouseOver = true; |
102 | + try{ | ||
103 | + var mouseOver = evt.type.match('mouseover','i'); | ||
104 | + }catch(e){} | ||
102 | 105 | ||
103 | // if the firing event is a click, fade-in and a non-sticky balloon make no sense | 106 | // if the firing event is a click, fade-in and a non-sticky balloon make no sense |
104 | if (!mouseOver) { | 107 | if (!mouseOver) { |
@@ -114,10 +117,12 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | @@ -114,10 +117,12 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | ||
114 | 117 | ||
115 | // Don't start a non-sticky balloon if a sticky one is visible | 118 | // Don't start a non-sticky balloon if a sticky one is visible |
116 | if (balloonIsVisible && balloonIsSticky && !sticky) return false; | 119 | if (balloonIsVisible && balloonIsSticky && !sticky) return false; |
117 | - | 120 | + |
118 | // Ignore repeated firing of mouseover->mouseout events on | 121 | // Ignore repeated firing of mouseover->mouseout events on |
119 | // the same element (Safari) | 122 | // the same element (Safari) |
120 | - var el = this.getEventTarget(evt); | 123 | + try{ |
124 | + var el = this.getEventTarget(evt); | ||
125 | + }catch(e){var el = evt;} | ||
121 | if (sticky && mouseOver && this.isSameElement(el,this.currentElement)) return false; | 126 | if (sticky && mouseOver && this.isSameElement(el,this.currentElement)) return false; |
122 | this.firingElement = el; | 127 | this.firingElement = el; |
123 | 128 | ||
@@ -212,13 +217,14 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | @@ -212,13 +217,14 @@ Balloon.prototype.showTooltip = function(evt,caption,sticky,width) { | ||
212 | 217 | ||
213 | // Capture coordinates for mousedown or click | 218 | // Capture coordinates for mousedown or click |
214 | if (!mouseOver) this.setActiveCoordinates(evt); | 219 | if (!mouseOver) this.setActiveCoordinates(evt); |
215 | - | 220 | +this.setActiveCoordinates(evt); |
216 | // Remember which event started this | 221 | // Remember which event started this |
217 | this.currentEvent = evt; | 222 | this.currentEvent = evt; |
223 | + this.doShowTooltip(); // | ||
218 | 224 | ||
219 | // Make delay time short for onmousedown | 225 | // Make delay time short for onmousedown |
220 | - var delay = mouseOver ? this.delayTime : 1; | ||
221 | - this.timeoutTooltip = window.setTimeout(this.doShowTooltip,delay); | 226 | + //var delay = mouseOver ? this.delayTime : 1; |
227 | + //this.timeoutTooltip = window.setTimeout(this.doShowTooltip,1); | ||
222 | } | 228 | } |
223 | 229 | ||
224 | 230 | ||
@@ -281,7 +287,6 @@ Balloon.prototype.doShowTooltip = function() { | @@ -281,7 +287,6 @@ Balloon.prototype.doShowTooltip = function() { | ||
281 | if (!(self.activeTop && self.activeRight)) { | 287 | if (!(self.activeTop && self.activeRight)) { |
282 | self.setActiveCoordinates(); | 288 | self.setActiveCoordinates(); |
283 | } | 289 | } |
284 | - | ||
285 | // balloon orientation | 290 | // balloon orientation |
286 | var vOrient = self.activeTop > pageMid ? 'up' : 'down'; | 291 | var vOrient = self.activeTop > pageMid ? 'up' : 'down'; |
287 | var hOrient = self.activeRight > pageCen ? 'left' : 'right'; | 292 | var hOrient = self.activeRight > pageCen ? 'left' : 'right'; |
@@ -290,7 +295,6 @@ Balloon.prototype.doShowTooltip = function() { | @@ -290,7 +295,6 @@ Balloon.prototype.doShowTooltip = function() { | ||
290 | var helpText = self.container.innerHTML; | 295 | var helpText = self.container.innerHTML; |
291 | 296 | ||
292 | self.contents.innerHTML = helpText; | 297 | self.contents.innerHTML = helpText; |
293 | - | ||
294 | // how and where to draw the balloon | 298 | // how and where to draw the balloon |
295 | self.setBalloonStyle(vOrient,hOrient,pageWidth,pageLeft); | 299 | self.setBalloonStyle(vOrient,hOrient,pageWidth,pageLeft); |
296 | 300 | ||
@@ -300,7 +304,7 @@ Balloon.prototype.doShowTooltip = function() { | @@ -300,7 +304,7 @@ Balloon.prototype.doShowTooltip = function() { | ||
300 | } | 304 | } |
301 | 305 | ||
302 | balloonIsVisible = true; | 306 | balloonIsVisible = true; |
303 | - | 307 | + |
304 | // in IE < 7, hide <select> elements | 308 | // in IE < 7, hide <select> elements |
305 | self.showHide(); | 309 | self.showHide(); |
306 | 310 | ||
@@ -441,7 +445,7 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | @@ -441,7 +445,7 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | ||
441 | } | 445 | } |
442 | 446 | ||
443 | } | 447 | } |
444 | - | 448 | +// |
445 | // flip left or right, as required | 449 | // flip left or right, as required |
446 | if (hOrient == 'left') { | 450 | if (hOrient == 'left') { |
447 | var activeRight = pageWidth - self.activeLeft; | 451 | var activeRight = pageWidth - self.activeLeft; |
@@ -461,7 +465,7 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | @@ -461,7 +465,7 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | ||
461 | else { | 465 | else { |
462 | self.setStyle(balloon,'width',self.width); | 466 | self.setStyle(balloon,'width',self.width); |
463 | } | 467 | } |
464 | - | 468 | +// |
465 | // Make sure the balloon is not offscreen | 469 | // Make sure the balloon is not offscreen |
466 | var balloonPad = self.padding + self.shadow; | 470 | var balloonPad = self.padding + self.shadow; |
467 | var balloonLeft = self.getLoc(balloon,'x1'); | 471 | var balloonLeft = self.getLoc(balloon,'x1'); |
@@ -484,12 +488,13 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | @@ -484,12 +488,13 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | ||
484 | self.setStyle('topRight','height',lineHeight); | 488 | self.setStyle('topRight','height',lineHeight); |
485 | self.setStyle('bottomLeft','width',lineWidth); | 489 | self.setStyle('bottomLeft','width',lineWidth); |
486 | 490 | ||
491 | +// | ||
492 | + | ||
487 | // IE7 quirk -- look for unwanted overlap cause by an off by 1px error | 493 | // IE7 quirk -- look for unwanted overlap cause by an off by 1px error |
488 | var vOverlap = self.isOverlap('topRight','bottomRight'); | 494 | var vOverlap = self.isOverlap('topRight','bottomRight'); |
489 | var hOverlap = self.isOverlap('bottomLeft','bottomRight'); | 495 | var hOverlap = self.isOverlap('bottomLeft','bottomRight'); |
490 | if (vOverlap) self.setStyle('topRight','height',lineHeight-vOverlap[1]); | 496 | if (vOverlap) self.setStyle('topRight','height',lineHeight-vOverlap[1]); |
491 | if (hOverlap) self.setStyle('bottomLeft','width',lineWidth-hOverlap[0]); | 497 | if (hOverlap) self.setStyle('bottomLeft','width',lineWidth-hOverlap[0]); |
492 | - | ||
493 | if (vOrient == 'up') { | 498 | if (vOrient == 'up') { |
494 | var activeTop = self.activeTop - self.vOffset - self.stemHeight - lineHeight; | 499 | var activeTop = self.activeTop - self.vOffset - self.stemHeight - lineHeight; |
495 | self.setStyle(balloon,'top',activeTop - self.yOffset); | 500 | self.setStyle(balloon,'top',activeTop - self.yOffset); |
@@ -499,7 +504,6 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | @@ -499,7 +504,6 @@ Balloon.prototype.setBalloonStyle = function(vOrient,hOrient,pageWidth,pageLeft) | ||
499 | var activeTop = self.activeTop + self.vOffset + self.stemHeight; | 504 | var activeTop = self.activeTop + self.vOffset + self.stemHeight; |
500 | self.setStyle(balloon,'top',activeTop - self.yOffset); | 505 | self.setStyle(balloon,'top',activeTop - self.yOffset); |
501 | } | 506 | } |
502 | - | ||
503 | self.setOpacity(1); | 507 | self.setOpacity(1); |
504 | } | 508 | } |
505 | 509 | ||
@@ -606,11 +610,24 @@ hideAllTooltips = function() { | @@ -606,11 +610,24 @@ hideAllTooltips = function() { | ||
606 | 610 | ||
607 | // Track the active mouseover coordinates | 611 | // Track the active mouseover coordinates |
608 | Balloon.prototype.setActiveCoordinates = function(event) { | 612 | Balloon.prototype.setActiveCoordinates = function(event) { |
609 | - | 613 | + |
610 | var self = currentBalloonClass; | 614 | var self = currentBalloonClass; |
611 | if (!self) return false; | 615 | if (!self) return false; |
612 | var b = self.activeBalloon; | 616 | var b = self.activeBalloon; |
613 | - | 617 | +// |
618 | +//modificado por edmar | ||
619 | +// | ||
620 | + try{ | ||
621 | + if(typeof(event.id) == "string") | ||
622 | + { | ||
623 | + var pos = i3GEO.util.pegaPosicaoObjeto(event); | ||
624 | + self.activeTop = pos[1] - 10; | ||
625 | + self.activeLeft = pos[0] - 10; | ||
626 | + self.activeRight = self.activeLeft + 20; | ||
627 | + self.activeBottom = self.activeTop + 20; | ||
628 | + return true; | ||
629 | + } | ||
630 | + }catch(e){} | ||
614 | var evt = event || window.event || self.currentEvent; | 631 | var evt = event || window.event || self.currentEvent; |
615 | if (!evt) { | 632 | if (!evt) { |
616 | return false; | 633 | return false; |