Commit ab2102a124a489f679eee4b7e77431396f9abf0a
1 parent
9db57b50
Exists in
master
and in
7 other branches
-
Showing
15 changed files
with
74 additions
and
70 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/graficointerativo1/index.js
... | ... | @@ -534,7 +534,7 @@ i3GEOF.graficointerativo1 = |
534 | 534 | * |
535 | 535 | */ |
536 | 536 | iniciaJanelaFlutuante : function(parametros) { |
537 | - var minimiza, cabecalho, janela, divid, temp, titulo, idjanela; | |
537 | + var duplica, minimiza, cabecalho, janela, divid, temp, titulo, idjanela; | |
538 | 538 | // |
539 | 539 | // verifica se parametros contem dados, caso contrario compatibiliza o objeto |
540 | 540 | // com a versao 6.0 do i3Geo | ... | ... |
ferramentas/tabela/index.js
... | ... | @@ -304,7 +304,7 @@ i3GEOF.tabela = |
304 | 304 | * Cria a janela flutuante para controle da ferramenta. |
305 | 305 | */ |
306 | 306 | iniciaJanelaFlutuante : function(parametros) { |
307 | - var minimiza, cabecalho, janela, divid, temp, titulo, id; | |
307 | + var duplica, minimiza, cabecalho, janela, divid, temp, titulo, id; | |
308 | 308 | if (!parametros) { |
309 | 309 | parametros = {}; |
310 | 310 | } | ... | ... |
js/arvoredetemas.js
... | ... | @@ -537,7 +537,7 @@ i3GEO.arvoreDeTemas = { |
537 | 537 | console.info("i3GEO.arvoreDeTemas.listaRegioes()"); |
538 | 538 | |
539 | 539 | var monta = function(retorno) { |
540 | - var node, nraiz, i, html; | |
540 | + var node, nraiz, i, html, tema; | |
541 | 541 | node = i3GEO.arvoreDeTemas.ARVORE.getNodeByProperty("idregioes", |
542 | 542 | "raiz"); |
543 | 543 | nraiz = retorno.length; |
... | ... | @@ -549,19 +549,20 @@ i3GEO.arvoreDeTemas = { |
549 | 549 | "nameInput" : "regioesmetaestat", |
550 | 550 | "tid" : "metaregiao_" + retorno[i].codigo_tipo_regiao, |
551 | 551 | "nome" : retorno[i].nome_tipo_regiao |
552 | - }, html = i3GEO.arvoreDeTemas.montaTextoTema("gray", tema), | |
553 | - new YAHOO.widget.HTMLNode({ | |
554 | - isleaf : true, | |
555 | - html : html, | |
556 | - expanded : false, | |
557 | - hasIcon : true, | |
558 | - className: "i3GeoFolder", | |
559 | - enableHighlight : false, | |
560 | - tipoa_tema : "METAREGIAO", | |
561 | - codigo_tipo_regiao : retorno[i].codigo_tipo_regiao, | |
562 | - idtema : "metaregiao_" | |
563 | - + retorno[i].codigo_tipo_regiao | |
564 | - }, node); | |
552 | + }; | |
553 | + html = i3GEO.arvoreDeTemas.montaTextoTema("gray", tema); | |
554 | + new YAHOO.widget.HTMLNode({ | |
555 | + isleaf : true, | |
556 | + html : html, | |
557 | + expanded : false, | |
558 | + hasIcon : true, | |
559 | + className: "i3GeoFolder", | |
560 | + enableHighlight : false, | |
561 | + tipoa_tema : "METAREGIAO", | |
562 | + codigo_tipo_regiao : retorno[i].codigo_tipo_regiao, | |
563 | + idtema : "metaregiao_" | |
564 | + + retorno[i].codigo_tipo_regiao | |
565 | + }, node); | |
565 | 566 | } |
566 | 567 | node.loadComplete(); |
567 | 568 | }; |
... | ... | @@ -1166,7 +1167,7 @@ i3GEO.arvoreDeTemas = { |
1166 | 1167 | if (typeof (console) !== 'undefined') |
1167 | 1168 | console.info("i3GEO.arvoreDeTemas.montaArvore()"); |
1168 | 1169 | |
1169 | - var mais = "", tempNode, tempNode1, retorno, root, insp, outrasOpcoes, dados, c, i, j, conteudo, editor; | |
1170 | + var ig, mais = "", tempNode, tempNode1, retorno, root, insp, outrasOpcoes, dados, c, i, j, conteudo, editor; | |
1170 | 1171 | (function() { |
1171 | 1172 | function changeIconMode() { |
1172 | 1173 | buildTree(); |
... | ... | @@ -1595,7 +1596,7 @@ i3GEO.arvoreDeTemas = { |
1595 | 1596 | console.info("i3GEO.arvoreDeTemas.montaGrupos()"); |
1596 | 1597 | |
1597 | 1598 | var temp = function() { |
1598 | - var grupos, c, raiz, nraiz, mostra, i, d, editor; | |
1599 | + var grupos, c, raiz, nraiz, mostra, i, d, editor, tempNode; | |
1599 | 1600 | grupos = i3GEO.arvoreDeTemas.GRUPOS.grupos; |
1600 | 1601 | c = grupos.length - 3; |
1601 | 1602 | raiz = grupos[c].temasraiz; |
... | ... | @@ -1693,7 +1694,7 @@ i3GEO.arvoreDeTemas = { |
1693 | 1694 | console.info("i3GEO.arvoreDeTemas.montaSubGrupos()"); |
1694 | 1695 | |
1695 | 1696 | var temp = function() { |
1696 | - var i, c, mostra, d, tempNode, nraiz, subgrupos, raiz; | |
1697 | + var i, c, mostra, d, tempNode, nraiz, subgrupos, raiz, editor; | |
1697 | 1698 | subgrupos = i3GEO.arvoreDeTemas.SUBGRUPOS.subgrupo; |
1698 | 1699 | c = subgrupos.length; |
1699 | 1700 | raiz = i3GEO.arvoreDeTemas.SUBGRUPOS.temasgrupo; |
... | ... | @@ -2020,7 +2021,7 @@ i3GEO.arvoreDeTemas = { |
2020 | 2021 | var html, lkmini, lkmini1, lkgrcode, lkgrcode1, n, ogc; |
2021 | 2022 | if (node.data.fonte && node.data.fonte !== "" |
2022 | 2023 | && node.data.fonte !== " ") { |
2023 | - tempNode = new YAHOO.widget.HTMLNode({ | |
2024 | + new YAHOO.widget.HTMLNode({ | |
2024 | 2025 | isLeaf : true, |
2025 | 2026 | enableHighlight : false, |
2026 | 2027 | expanded : false, | ... | ... |
js/coordenadas.js
... | ... | @@ -525,8 +525,8 @@ i3GEO.coordenadas = |
525 | 525 | * |
526 | 526 | */ |
527 | 527 | atualizaCodigo : function(onde, configProj, x, y) { |
528 | - var ondeValor = $i(onde + configProj + "Codigo"); | |
529 | - onde = $i(onde), temp = i3GEO.coordenadas.config[configProj], codigo = ""; | |
528 | + var ondeValor = $i(onde + configProj + "Codigo"), temp = i3GEO.coordenadas.config[configProj], codigo = ""; | |
529 | + onde = $i(onde); | |
530 | 530 | if (onde && onde.style.display === "none") { |
531 | 531 | return; |
532 | 532 | } |
... | ... | @@ -917,7 +917,7 @@ i3GEO.coordenadas = |
917 | 917 | * Converte coordeanadas lat long em geohash |
918 | 918 | */ |
919 | 919 | encodeGeoHash : function(latitude, longitude) { |
920 | - var is_even = 1, lat = [], lon = [], bit = 0, ch = 0, precision = 12, geohash = ""; | |
920 | + var mid, is_even = 1, lat = [], lon = [], bit = 0, ch = 0, precision = 12, geohash = ""; | |
921 | 921 | lat[0] = -90.0; |
922 | 922 | lat[1] = 90.0; |
923 | 923 | lon[0] = -180.0; | ... | ... |
js/dicionario.js
js/eventos.js
... | ... | @@ -58,7 +58,7 @@ if (typeof (i3GEO) === 'undefined') { |
58 | 58 | * |
59 | 59 | * (end) |
60 | 60 | */ |
61 | -objposicaocursor = { | |
61 | +var objposicaocursor = { | |
62 | 62 | ddx : "", |
63 | 63 | ddy : "", |
64 | 64 | dmsx : "", |
... | ... | @@ -546,9 +546,6 @@ i3GEO.eventos = |
546 | 546 | }; |
547 | 547 | docMapa.onmouseout = function() { |
548 | 548 | objposicaocursor.dentroDomapa = false; |
549 | - try { | |
550 | - objmapaparado = "parar"; | |
551 | - } catch (e) {} | |
552 | 549 | }; |
553 | 550 | docMapa.onmousedown = function(exy) { |
554 | 551 | if(objposicaocursor.dentroDomapa === false){ | ... | ... |
js/gadgets.js
... | ... | @@ -546,9 +546,11 @@ i3GEO.gadgets = |
546 | 546 | if (typeof (console) !== 'undefined') |
547 | 547 | console.info("i3GEO.gadgets.mostraMenuSuspenso()"); |
548 | 548 | |
549 | - var menuUnico, objid, i, estilo, t, onMenuBarBeforeRender, temp, i3GEOoMenuBarLocal, ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso, confm = | |
549 | + var i3GEOoMenuBar, n, menuUnico, objid, i, estilo, t, onMenuBarBeforeRender, temp, i3GEOoMenuBarLocal, ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso, confm = | |
550 | 550 | i3GEO.configura.oMenuData, ins = "", alinhamento = ""; |
551 | 551 | |
552 | + i3GEOoMenuBar = YAHOO.widget.MenuManager; | |
553 | + | |
552 | 554 | if (arguments.length === 0) { |
553 | 555 | id = ms.idhtml; |
554 | 556 | } else { |
... | ... | @@ -630,7 +632,6 @@ i3GEO.gadgets = |
630 | 632 | if(i3GEO.parametros.w < 700 || ms.menuUnico === true){ |
631 | 633 | menuUnico(); |
632 | 634 | } |
633 | - i3GEOoMenuBar = YAHOO.widget.MenuManager; | |
634 | 635 | if (objid) { |
635 | 636 | objid.className = "yuimenubar"; |
636 | 637 | temp = $i("contemMenu"); | ... | ... |
js/guias.js
js/idioma.js
... | ... | @@ -427,7 +427,7 @@ i3GEO.idioma = { |
427 | 427 | * |
428 | 428 | * {String} - Texto traduzido. |
429 | 429 | */ |
430 | -$trad = function(id, dic) { | |
430 | +var $trad = function(id, dic) { | |
431 | 431 | if (!dic) { |
432 | 432 | dic = i3GEO.idioma.DICIONARIO; |
433 | 433 | } |
... | ... | @@ -437,24 +437,13 @@ $trad = function(id, dic) { |
437 | 437 | }; |
438 | 438 | // |
439 | 439 | (function() { |
440 | - try { | |
441 | - var c = i3GEO.util.pegaCookie("i3geolingua"); | |
442 | - if (c) { | |
443 | - i3GEO.idioma.define(c); | |
444 | - g_linguagem = c; | |
445 | - } else { | |
446 | - if (typeof (g_linguagem) !== "undefined") { | |
447 | - i3GEO.idioma.define(g_linguagem); | |
448 | - } else { | |
449 | - g_linguagem = "pt"; | |
450 | - i3GEO.idioma.define("pt"); | |
451 | - } | |
452 | - } | |
453 | - if (typeof ('g_traducao') !== "undefined") { | |
454 | - i3GEO.idioma.defineDicionario(g_traducao); | |
455 | - } | |
456 | - } catch (e) { | |
457 | - i3GEO.janela.tempoMsg("Problemas com idiomas " | |
458 | - + e); | |
440 | + var c = i3GEO.util.pegaCookie("i3geolingua"); | |
441 | + if (c) { | |
442 | + i3GEO.idioma.define(c); | |
443 | + } else { | |
444 | + i3GEO.idioma.define("pt"); | |
445 | + } | |
446 | + if (typeof ('g_traducao') !== "undefined") { | |
447 | + i3GEO.idioma.defineDicionario(g_traducao); | |
459 | 448 | } |
460 | 449 | })(); |
461 | 450 | \ No newline at end of file | ... | ... |
js/ini_i3geo.js
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | * Cada javascript inserido na página adiciona novos objetos, como por |
70 | 70 | * exemplo i3GEOF.buffer. |
71 | 71 | */ |
72 | -i3GEOF = []; | |
72 | +var i3GEOF = []; | |
73 | 73 | /** |
74 | 74 | * Section: YAHOO.i3GEO |
75 | 75 | * |
... | ... | @@ -394,7 +394,7 @@ var i3GEO = { |
394 | 394 | // define o valor inicial da variavel que controla as etiquetas quando o |
395 | 395 | // usuario clica no mapa |
396 | 396 | i3GEO.eventos.cliquePerm.ativoinicial = i3GEO.eventos.cliquePerm.ativo; |
397 | - var montaMapa, mashup, tamanho; | |
397 | + var montaMapa, mashup, tamanho, temp; | |
398 | 398 | i3GEO.mapa.aplicaPreferencias(); |
399 | 399 | montaMapa = function(retorno) { |
400 | 400 | try { |
... | ... | @@ -752,7 +752,6 @@ var i3GEO = { |
752 | 752 | return; |
753 | 753 | } |
754 | 754 | i3GEO.mapa.verifica(retorno); |
755 | - tempo = ""; | |
756 | 755 | mapscale = i3GEO.parametros.mapscale; |
757 | 756 | i3GEO.atualizaParametros(retorno.data.variaveis); |
758 | 757 | ... | ... |
js/interface.js
... | ... | @@ -48,6 +48,13 @@ |
48 | 48 | if (typeof (i3GEO) === 'undefined') { |
49 | 49 | var i3GEO = {}; |
50 | 50 | } |
51 | +// essa variavel guarda a posicao do mapa na tela | |
52 | +// e usada em vercoes com dispositivo touche para melhorar a performance | |
53 | +var i3GEOtouchesPosMapa = ""; | |
54 | + | |
55 | +//variavel que armazena o objeto mapa criado com o OpenLayers | |
56 | +var i3geoOL; | |
57 | + | |
51 | 58 | i3GEO.Interface = |
52 | 59 | { |
53 | 60 | /** |
... | ... | @@ -1005,12 +1012,16 @@ i3GEO.Interface = |
1005 | 1012 | }); |
1006 | 1013 | } |
1007 | 1014 | i3GEO.util.arvore("<b>" + $trad("p16") + "</b>", "listaLayersBase", temp); |
1008 | - } else { | |
1015 | + } | |
1016 | + //TODO layerSwitcher talvez volte um dia https://twitter.com/RemiBovard/status/525028570780139520 | |
1017 | + /* | |
1018 | + else { | |
1009 | 1019 | if (openlayers.GADGETS.LayerSwitcher === true && i3GEO.arvoreDeCamadas.INCLUILFUNDO === false) { |
1010 | 1020 | // nao existe no OL3 |
1011 | 1021 | // i3geoOL.addControl(new OpenLayers.Control.LayerSwitcher()); |
1012 | 1022 | } |
1013 | 1023 | } |
1024 | + */ | |
1014 | 1025 | |
1015 | 1026 | if (i3GEO.configura.mapaRefDisplay !== "none") { |
1016 | 1027 | if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")) { | ... | ... |
js/php.js
... | ... | @@ -75,7 +75,7 @@ if (typeof (i3GEO) === 'undefined') { |
75 | 75 | * isso não afeta em nada) e temp é a função que tratará o retorno dos dados. |
76 | 76 | * |
77 | 77 | */ |
78 | -cpJSON = new cpaint(); | |
78 | +var cpJSON = new cpaint(); | |
79 | 79 | cpJSON.set_response_type("JSON"); |
80 | 80 | cpJSON.set_transfer_mode("POST"); |
81 | 81 | ... | ... |
js/util.js
... | ... | @@ -42,7 +42,7 @@ if (typeof (i3GEO) === 'undefined') { |
42 | 42 | * |
43 | 43 | * {boolean} |
44 | 44 | */ |
45 | -navm = false; | |
45 | +var navm = false; | |
46 | 46 | /** |
47 | 47 | * Constant: navn |
48 | 48 | * |
... | ... | @@ -52,7 +52,7 @@ navm = false; |
52 | 52 | * |
53 | 53 | * {boolean} |
54 | 54 | */ |
55 | -navn = false; | |
55 | +var navn = false; | |
56 | 56 | /** |
57 | 57 | * Constant: chro |
58 | 58 | * |
... | ... | @@ -62,7 +62,7 @@ navn = false; |
62 | 62 | * |
63 | 63 | * {boolean} |
64 | 64 | */ |
65 | -chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; | |
65 | +var chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; | |
66 | 66 | /** |
67 | 67 | * Constant: opera |
68 | 68 | * |
... | ... | @@ -72,7 +72,7 @@ chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; |
72 | 72 | * |
73 | 73 | * {boolean} |
74 | 74 | */ |
75 | -opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1; | |
75 | +var opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1; | |
76 | 76 | if (navigator.appName.substring(0, 1) === 'N') { |
77 | 77 | navn = true; |
78 | 78 | } |
... | ... | @@ -90,12 +90,12 @@ if (opera === true) { |
90 | 90 | * |
91 | 91 | * Essas operacoes sao controladas pela funcao ajaxiniciaparametros. |
92 | 92 | */ |
93 | -g_operacao = ""; | |
93 | +var g_operacao = ""; | |
94 | 94 | /** |
95 | 95 | * Depreciado - Tipo de acao que esta sendo executada. Quando o usuario clica no mapa, essa variavel e pesquisada para definir o tipo de |
96 | 96 | * operacao que deve ser executada. E definida quando o usuario seleciona uma determinada ferramenta do i3Geo. |
97 | 97 | */ |
98 | -g_tipoacao = "zoomli"; | |
98 | +var g_tipoacao = "zoomli"; | |
99 | 99 | |
100 | 100 | /** |
101 | 101 | * Function: $i |
... | ... | @@ -110,7 +110,10 @@ g_tipoacao = "zoomli"; |
110 | 110 | * |
111 | 111 | * {Object} |
112 | 112 | */ |
113 | -$i = function(id) { | |
113 | +var $i = function(id) { | |
114 | + if(!id || id === ""){ | |
115 | + return false; | |
116 | + } | |
114 | 117 | return document.getElementById(id); |
115 | 118 | }; |
116 | 119 | /** |
... | ... | @@ -1221,6 +1224,7 @@ i3GEO.util = |
1221 | 1224 | * {boolean} - mostra ou nao a janela de aguarde |
1222 | 1225 | */ |
1223 | 1226 | scriptTag : function(js, ini, id, aguarde) { |
1227 | + var head, script; | |
1224 | 1228 | /* |
1225 | 1229 | * if (!aguarde) { aguarde = false; } var head, script, tipojanela = ""; if (i3GEO.janela) { tipojanela = |
1226 | 1230 | * i3GEO.janela.ESTILOAGUARDE; } |
... | ... | @@ -1453,7 +1457,7 @@ i3GEO.util = |
1453 | 1457 | var monta, temp, temp1, temp2; |
1454 | 1458 | monta = |
1455 | 1459 | function(retorno) { |
1456 | - var i, comboTemas = '', n, nome = ""; | |
1460 | + var i, comboTemas = '', n, nome = "", tema; | |
1457 | 1461 | if (yui === true) { |
1458 | 1462 | comboTemas = |
1459 | 1463 | '<input type="button" name=' + id + '_button id="' + id + '" value="' + $trad("x33") + ' ">'; |
... | ... | @@ -2815,6 +2819,7 @@ i3GEO.util = |
2815 | 2819 | * {function} - função que irá processar o resultado |
2816 | 2820 | */ |
2817 | 2821 | ajaxGet : function(sUrl, funcaoRetorno) { |
2822 | + var re,falhou, callback; | |
2818 | 2823 | sUrl = escape(sUrl); |
2819 | 2824 | re = new RegExp("%3F", "g"); |
2820 | 2825 | sUrl = sUrl.replace(re, '?'); |
... | ... | @@ -2825,8 +2830,9 @@ i3GEO.util = |
2825 | 2830 | |
2826 | 2831 | re = new RegExp("%3A", "g"); |
2827 | 2832 | sUrl = sUrl.replace(re, ':'); |
2828 | - var falhou = function(e) { | |
2829 | - }, callback = { | |
2833 | + falhou = function(e) { | |
2834 | + }; | |
2835 | + callback = { | |
2830 | 2836 | success : function(o) { |
2831 | 2837 | try { |
2832 | 2838 | funcaoRetorno.call("", YAHOO.lang.JSON.parse(o.responseText)); |
... | ... | @@ -3536,12 +3542,12 @@ try { |
3536 | 3542 | // alias |
3537 | 3543 | |
3538 | 3544 | // depreciado na versao 6.0 |
3539 | -$im = function(g) { | |
3545 | +var $im = function(g) { | |
3540 | 3546 | return i3GEO.util.$im(g); |
3541 | 3547 | }; |
3542 | -$inputText = function(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch) { | |
3548 | +var $inputText = function(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch) { | |
3543 | 3549 | if (arguments.length === 6) { |
3544 | 3550 | nome = ""; |
3545 | 3551 | } |
3546 | 3552 | return i3GEO.util.$inputText(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch); |
3547 | -}; | |
3553 | +}; | |
3548 | 3554 | \ No newline at end of file | ... | ... |
pacotes/eudock/js/euDock.2.0.js
... | ... | @@ -882,7 +882,7 @@ function on_MouseUp(e) { |
882 | 882 | }; |
883 | 883 | |
884 | 884 | function on_MouseClick(e) { |
885 | - if (!e) var e = window.event; | |
885 | + if (!e) e = window.event; | |
886 | 886 | for (var i in euEnv.euDockArray) |
887 | 887 | if (euEnv.euDockArray[i].mouseClick) |
888 | 888 | euEnv.exeThread |= euEnv.euDockArray[i].mouseClick(euEnv.euScrOfX+e.clientX,euEnv.euScrOfY+e.clientY); | ... | ... |