Commit 6b5527bd196416bfd14699b7061636d246914af3
1 parent
3a30c261
Exists in
master
and in
7 other branches
Separação dos textos para tradução. Correção no gráfico de perfis
Showing
10 changed files
with
157 additions
and
173 deletions
Show diff stats
ferramentas/googlemaps1/index.js
... | ... | @@ -482,7 +482,10 @@ function adicionaMarcasMapa(coordenadas){ |
482 | 482 | for(i=0;i<n;i++){ |
483 | 483 | pt = coordenadas[i].split(" "); |
484 | 484 | point = new google.maps.LatLng(pt[1],pt[0]); |
485 | - marker = new GMarker(point); | |
486 | - map.addOverlay(marker); | |
485 | + var marker = new google.maps.Marker({ | |
486 | + position : point | |
487 | + }); | |
488 | + //marker = new GMarker(point); | |
489 | + marker.setMap(map); | |
487 | 490 | } |
488 | 491 | } |
489 | 492 | \ No newline at end of file | ... | ... |
ferramentas/graficointerativo/index.js
... | ... | @@ -231,7 +231,9 @@ i3GEOF.graficointerativo = { |
231 | 231 | i3GEOF.graficointerativo.montaTabelaDados(i3GEOF.graficointerativo.dados); |
232 | 232 | $i("i3GEOgraficointerativoguia4").onclick.call(); |
233 | 233 | } |
234 | - i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficointerativoguia1","i3GEOgraficointerativoguia"); | |
234 | + else{ | |
235 | + i3GEO.guias.mostraGuiaFerramenta("i3GEOgraficointerativoguia1","i3GEOgraficointerativoguia"); | |
236 | + } | |
235 | 237 | //} |
236 | 238 | //catch(erro){i3GEO.janela.tempoMsg(erro);} |
237 | 239 | }, |
... | ... | @@ -359,6 +361,9 @@ i3GEOF.graficointerativo = { |
359 | 361 | cabecalho, |
360 | 362 | minimiza |
361 | 363 | ); |
364 | + if(!janela){ | |
365 | + return; | |
366 | + } | |
362 | 367 | divid = janela[2].id; |
363 | 368 | i3GEOF.graficointerativo.aguarde = $i("i3GEOF.graficointerativo_imagemCabecalho").style; |
364 | 369 | $i("i3GEOF.graficointerativo_corpo").style.backgroundColor = "white"; | ... | ... |
ferramentas/opcoes_legenda/dicionario.js
1 | 1 | //+$trad(1,i3GEOF.opcoesLegenda.dicionario)+ |
2 | 2 | i3GEOF.opcoesLegenda.dicionario = { |
3 | 3 | 1: [{ |
4 | -pt:"", | |
4 | +pt:"Essa operacao afeta apenas a legenda utilizada na ferramenta de impressao do mapa", | |
5 | 5 | en:"", |
6 | 6 | es:"", |
7 | 7 | it:"" |
8 | 8 | }], |
9 | 9 | 2: [{ |
10 | -pt:"", | |
10 | +pt:"Inclui no corpo do mapa?", | |
11 | 11 | en:"", |
12 | 12 | es:"", |
13 | 13 | it:"" |
14 | 14 | }], |
15 | 15 | 3: [{ |
16 | -pt:"", | |
16 | +pt:"Cor do fundo", | |
17 | 17 | en:"", |
18 | 18 | es:"", |
19 | 19 | it:"" |
20 | 20 | }], |
21 | 21 | 4: [{ |
22 | -pt:"", | |
22 | +pt:"Contorno dos símbolos", | |
23 | 23 | en:"", |
24 | 24 | es:"", |
25 | 25 | it:"" |
26 | 26 | }], |
27 | 27 | 5: [{ |
28 | -pt:"", | |
28 | +pt:"Posição", | |
29 | 29 | en:"", |
30 | 30 | es:"", |
31 | 31 | it:"" |
32 | 32 | }], |
33 | 33 | 6: [{ |
34 | -pt:"", | |
34 | +pt:"sup. esquerdo", | |
35 | 35 | en:"", |
36 | 36 | es:"", |
37 | 37 | it:"" |
38 | 38 | }], |
39 | 39 | 7: [{ |
40 | -pt:"", | |
40 | +pt:"sup. centro", | |
41 | 41 | en:"", |
42 | 42 | es:"", |
43 | 43 | it:"" |
44 | 44 | }], |
45 | 45 | 8: [{ |
46 | -pt:"", | |
46 | +pt:"sup. direito", | |
47 | 47 | en:"", |
48 | 48 | es:"", |
49 | 49 | it:"" |
50 | 50 | }], |
51 | 51 | 9: [{ |
52 | -pt:"", | |
52 | +pt:"inf. esquerdo", | |
53 | 53 | en:"", |
54 | 54 | es:"", |
55 | 55 | it:"" |
56 | 56 | }], |
57 | 57 | 10: [{ |
58 | -pt:"", | |
58 | +pt:"inf. centro", | |
59 | +en:"", | |
60 | +es:"", | |
61 | +it:"" | |
62 | +}], | |
63 | +11: [{ | |
64 | +pt:"inf. direito", | |
65 | +en:"", | |
66 | +es:"", | |
67 | +it:"" | |
68 | +}], | |
69 | +12: [{ | |
70 | +pt:"Espaçamento em Y", | |
71 | +en:"", | |
72 | +es:"", | |
73 | +it:"" | |
74 | +}], | |
75 | +13: [{ | |
76 | +pt:"Espaçamento em X", | |
77 | +en:"", | |
78 | +es:"", | |
79 | +it:"" | |
80 | +}], | |
81 | +14: [{ | |
82 | +pt:"Tamanho do símb. Y", | |
83 | +en:"", | |
84 | +es:"", | |
85 | +it:"" | |
86 | +}], | |
87 | +15: [{ | |
88 | +pt:"Tamanho do símb. X", | |
89 | +en:"", | |
90 | +es:"", | |
91 | +it:"" | |
92 | +}], | |
93 | +16: [{ | |
94 | +pt:"Tamanho do texto", | |
95 | +en:"", | |
96 | +es:"", | |
97 | +it:"" | |
98 | +}], | |
99 | +17: [{ | |
100 | +pt:"Fonte: (teste a fonte mais adequada para apresentação correta da acentuação)", | |
101 | +en:"", | |
102 | +es:"", | |
103 | +it:"" | |
104 | +}], | |
105 | +18: [{ | |
106 | +pt:"Aplicar", | |
107 | +en:"", | |
108 | +es:"", | |
109 | +it:"" | |
110 | +}], | |
111 | +19: [{ | |
112 | +pt:"Testar", | |
59 | 113 | en:"", |
60 | 114 | es:"", |
61 | 115 | it:"" | ... | ... |
ferramentas/opcoes_legenda/index.js
... | ... | @@ -100,7 +100,7 @@ i3GEOF.opcoesLegenda = { |
100 | 100 | } |
101 | 101 | catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}} |
102 | 102 | if(i3GEO.Interface.ATUAL !== "padrao") |
103 | - {i3GEO.janela.tempoMsg("Essa operacao afeta apenas a legenda utilizada na ferramenta de impressao do mapa");} | |
103 | + {i3GEO.janela.tempoMsg($trad(1,i3GEOF.opcoesLegenda.dicionario));} | |
104 | 104 | }, |
105 | 105 | /* |
106 | 106 | Function: html |
... | ... | @@ -113,61 +113,61 @@ i3GEOF.opcoesLegenda = { |
113 | 113 | */ |
114 | 114 | html:function(){ |
115 | 115 | var ins = '<table summary="" class=lista >' + |
116 | - '<tr><td>Inclui no corpo do mapa?:</td><td>' + | |
116 | + '<tr><td>'+$trad(2,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
117 | 117 | ' <select id=i3GEOopcoesLegendastatus >' + |
118 | - ' <option value=3 >sim</option>' + | |
119 | - ' <option value=1 >nao</option>' + | |
118 | + ' <option value=3 >'+$trad("x14")+'</option>' + | |
119 | + ' <option value=1 >'+$trad("x15")+'</option>' + | |
120 | 120 | ' <option value=0 >---</option>' + |
121 | 121 | ' </select>' + |
122 | 122 | '<td></tr>' + |
123 | 123 | '<tr><td> </td><td></td></tr>' + |
124 | - '<tr><td>Cor do fundo:</td><td>' + | |
124 | + '<tr><td>'+$trad(3,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
125 | 125 | $inputText("","","i3GEOopcoesLegendaimagecolor","",12,"") + |
126 | 126 | '<img alt="aquarela.gif" style=cursor:pointer src="'+i3GEO.configura.locaplic+'/imagens/aquarela.gif" onclick="i3GEOF.opcoesLegenda.corj(\'i3GEOopcoesLegendaimagecolor\')" />' + |
127 | 127 | '</td></tr>' + |
128 | 128 | '<tr><td> </td><td></td></tr>' + |
129 | - '<tr><td>Contorno dos símbolos:</td><td>' + | |
129 | + '<tr><td>'+$trad(4,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
130 | 130 | $inputText("","","i3GEOopcoesLegendaoutlinecolor","",12,"") + |
131 | 131 | '<img alt="aquarela.gif" style=cursor:pointer src="'+i3GEO.configura.locaplic+'/imagens/aquarela.gif" onclick="i3GEOF.opcoesLegenda.corj(\'i3GEOopcoesLegendaoutlinecolor\')" />' + |
132 | 132 | '</td></tr>' + |
133 | 133 | '<tr><td> </td><td></td></tr>' + |
134 | - '<tr><td>Posição:</td><td>' + | |
134 | + '<tr><td>'+$trad(5,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
135 | 135 | ' <select id=i3GEOopcoesLegendaposition >' + |
136 | - ' <option value=101 >sup. esquerdo</option>' + | |
137 | - ' <option value=107 >sup. centro</option>' + | |
138 | - ' <option value=103 selected >sup. direito</option>' + | |
139 | - ' <option value=104 >inf. esquerdo</option>' + | |
140 | - ' <option value=108 >inf. centro</option>' + | |
141 | - ' <option value=102 >inf. direito</option>' + | |
136 | + ' <option value=101 >'+$trad(6,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
137 | + ' <option value=107 >'+$trad(7,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
138 | + ' <option value=103 selected >'+$trad(8,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
139 | + ' <option value=104 >'+$trad(9,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
140 | + ' <option value=108 >'+$trad(10,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
141 | + ' <option value=102 >'+$trad(11,i3GEOF.opcoesLegenda.dicionario)+'</option>' + | |
142 | 142 | ' </select>' + |
143 | 143 | '<td></tr>' + |
144 | 144 | '<tr><td> </td><td></td></tr>' + |
145 | - '<tr><td>Espaçamento em Y:</td><td>' + | |
145 | + '<tr><td>'+$trad(12,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
146 | 146 | $inputText("","","i3GEOopcoesLegendakeyspacingy","",4,"") + |
147 | 147 | '<td></tr>' + |
148 | 148 | '<tr><td> </td><td></td></tr>' + |
149 | - '<tr><td>Espaçamento em X:</td><td>' + | |
149 | + '<tr><td>'+$trad(13,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
150 | 150 | $inputText("","","i3GEOopcoesLegendakeyspacingx","",4,"") + |
151 | 151 | '</td></tr>' + |
152 | 152 | '<tr><td> </td><td></td></tr>' + |
153 | - '<tr><td>Tamanho do símb. Y:</td><td>' + | |
153 | + '<tr><td>'+$trad(14,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
154 | 154 | $inputText("","","i3GEOopcoesLegendakeysizey","",4,"") + |
155 | 155 | '<td></tr>' + |
156 | 156 | '<tr><td> </td><td></td></tr>' + |
157 | - '<tr><td>Tamanho do símb. X:</td><td>' + | |
157 | + '<tr><td>'+$trad(15,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
158 | 158 | $inputText("","","i3GEOopcoesLegendakeysizex","",4,"") + |
159 | 159 | '<td></tr>' + |
160 | 160 | '<tr><td> </td><td></td></tr>' + |
161 | - '<tr><td>Tamanho do texto:</td><td>' + | |
161 | + '<tr><td>'+$trad(16,i3GEOF.opcoesLegenda.dicionario)+':</td><td>' + | |
162 | 162 | $inputText("","","i3GEOopcoesLegendalabelsize","",4,"") + |
163 | 163 | '<td></tr>' + |
164 | 164 | '<tr><td> </td><td></td></tr>' + |
165 | - '<tr><td>Fonte: (teste a fonte mais adequada para apresentação correta da acentuação)</td>' + | |
165 | + '<tr><td>'+$trad(17,i3GEOF.opcoesLegenda.dicionario)+'</td>' + | |
166 | 166 | ' <td id=i3GEOopcoesLegendafontef >aguarde...</td>' + |
167 | 167 | '</tr></table><br>'+ |
168 | 168 | '<p class=paragrafo >' + |
169 | - '<input id=i3GEOopcoesLegendabotao1 size=20 type=button value="Aplicar" />' + | |
170 | - '<input id=i3GEOopcoesLegendabotao2 size=20 type=button value="Testar" />' + | |
169 | + '<input id=i3GEOopcoesLegendabotao1 size=20 type=button value="'+$trad(18,i3GEOF.opcoesLegenda.dicionario)+'" />' + | |
170 | + '<input id=i3GEOopcoesLegendabotao2 size=20 type=button value="'+$trad(19,i3GEOF.opcoesLegenda.dicionario)+'" />' + | |
171 | 171 | '</p><br><img alt="teste" src="" id=i3GEOopcoesLegendatesteLegenda style="display:none"/>'; |
172 | 172 | return ins; |
173 | 173 | }, |
... | ... | @@ -323,4 +323,4 @@ i3GEOF.opcoesLegenda = { |
323 | 323 | cp.set_response_type("JSON"); |
324 | 324 | cp.call(p,"testaLegenda",temp); |
325 | 325 | } |
326 | 326 | -}; |
327 | +}; | |
327 | 328 | \ No newline at end of file | ... | ... |
ferramentas/opcoes_querymap/dicionario.js
1 | 1 | //+$trad(1,i3GEOF.opcoesQuery.dicionario)+ |
2 | 2 | i3GEOF.opcoesQuery.dicionario = { |
3 | -1: [{ | |
4 | -pt:"", | |
5 | -en:"", | |
6 | -es:"", | |
7 | -it:"" | |
8 | -}], | |
9 | -2: [{ | |
10 | -pt:"", | |
11 | -en:"", | |
12 | -es:"", | |
13 | -it:"" | |
14 | -}], | |
15 | -3: [{ | |
16 | -pt:"", | |
17 | -en:"", | |
18 | -es:"", | |
19 | -it:"" | |
20 | -}], | |
21 | -4: [{ | |
22 | -pt:"", | |
23 | -en:"", | |
24 | -es:"", | |
25 | -it:"" | |
26 | -}], | |
27 | -5: [{ | |
28 | -pt:"", | |
29 | -en:"", | |
30 | -es:"", | |
31 | -it:"" | |
32 | -}], | |
33 | -6: [{ | |
34 | -pt:"", | |
35 | -en:"", | |
36 | -es:"", | |
37 | -it:"" | |
38 | -}], | |
39 | -7: [{ | |
40 | -pt:"", | |
41 | -en:"", | |
42 | -es:"", | |
43 | -it:"" | |
44 | -}], | |
45 | -8: [{ | |
46 | -pt:"", | |
47 | -en:"", | |
48 | -es:"", | |
49 | -it:"" | |
50 | -}], | |
51 | -9: [{ | |
52 | -pt:"", | |
53 | -en:"", | |
54 | -es:"", | |
55 | -it:"" | |
56 | -}], | |
57 | -10: [{ | |
58 | -pt:"", | |
59 | -en:"", | |
60 | -es:"", | |
61 | -it:"" | |
62 | -}] | |
3 | + 1: [{ | |
4 | + pt:"Aplica", | |
5 | + en:"", | |
6 | + es:"", | |
7 | + it:"" | |
8 | + }] | |
63 | 9 | }; |
64 | 10 | \ No newline at end of file | ... | ... |
ferramentas/opcoes_querymap/index.js
... | ... | @@ -65,7 +65,7 @@ i3GEOF.opcoesQuery = { |
65 | 65 | iniciaDicionario: function(){ |
66 | 66 | if(typeof(i3GEOF.opcoesQuery.dicionario) === 'undefined'){ |
67 | 67 | i3GEO.util.scriptTag( |
68 | - i3GEO.configura.locaplic+"/ferramentas/opcoes_query/dicionario.js", | |
68 | + i3GEO.configura.locaplic+"/ferramentas/opcoes_querymap/dicionario.js", | |
69 | 69 | "i3GEOF.opcoesQuery.iniciaJanelaFlutuante()", |
70 | 70 | "i3GEOF.opcoesQuery.dicionario_script" |
71 | 71 | ); |
... | ... | @@ -95,7 +95,7 @@ i3GEOF.opcoesQuery = { |
95 | 95 | cp = new cpaint(), |
96 | 96 | retorno = function(retorno){ |
97 | 97 | i3GEOF.opcoesQuery.aguarde.visibility = "hidden"; |
98 | - if(retorno.data.erro){i3GEO.janela.tempoMsg("Ocorreu um erro");return;} | |
98 | + if(retorno.data.erro){i3GEO.janela.tempoMsg("Erro");return;} | |
99 | 99 | $i("i3GEOopcoesQuerycor").value = retorno.data; |
100 | 100 | }; |
101 | 101 | cp.set_response_type("JSON"); |
... | ... | @@ -116,7 +116,7 @@ i3GEOF.opcoesQuery = { |
116 | 116 | var ins = $inputText("","","i3GEOopcoesQuerycor","",12,"") + |
117 | 117 | '<img alt="aquarela.gif" style=cursor:pointer '+ |
118 | 118 | 'src="'+i3GEO.configura.locaplic+'/imagens/aquarela.gif" onclick="i3GEOF.opcoesQuery.corj(\'i3GEOopcoesQuerycor\')" /> ' + |
119 | - '<br><br><p class=paragrafo ><input size=20 id=i3GEOopcoesQuerybotao1 type=button value="Aplica" />'; | |
119 | + '<br><br><p class=paragrafo ><input size=20 id=i3GEOopcoesQuerybotao1 type=button value="'+$trad(1,i3GEOF.opcoesQuery.dicionario)+'" />'; | |
120 | 120 | return ins; |
121 | 121 | }, |
122 | 122 | /* | ... | ... |
ferramentas/opcoes_tamanho/dicionario.js
1 | 1 | //+$trad(1,i3GEOF.opcoesTamanho.dicionario)+ |
2 | 2 | i3GEOF.opcoesTamanho.dicionario = { |
3 | -1: [{ | |
4 | -pt:"", | |
5 | -en:"", | |
6 | -es:"", | |
7 | -it:"" | |
8 | -}], | |
9 | -2: [{ | |
10 | -pt:"", | |
11 | -en:"", | |
12 | -es:"", | |
13 | -it:"" | |
14 | -}], | |
15 | -3: [{ | |
16 | -pt:"", | |
17 | -en:"", | |
18 | -es:"", | |
19 | -it:"" | |
20 | -}], | |
21 | -4: [{ | |
22 | -pt:"", | |
23 | -en:"", | |
24 | -es:"", | |
25 | -it:"" | |
26 | -}], | |
27 | -5: [{ | |
28 | -pt:"", | |
29 | -en:"", | |
30 | -es:"", | |
31 | -it:"" | |
32 | -}], | |
33 | -6: [{ | |
34 | -pt:"", | |
35 | -en:"", | |
36 | -es:"", | |
37 | -it:"" | |
38 | -}], | |
39 | -7: [{ | |
40 | -pt:"", | |
41 | -en:"", | |
42 | -es:"", | |
43 | -it:"" | |
44 | -}], | |
45 | -8: [{ | |
46 | -pt:"", | |
47 | -en:"", | |
48 | -es:"", | |
49 | -it:"" | |
50 | -}], | |
51 | -9: [{ | |
52 | -pt:"", | |
53 | -en:"", | |
54 | -es:"", | |
55 | -it:"" | |
56 | -}], | |
57 | -10: [{ | |
58 | -pt:"", | |
59 | -en:"", | |
60 | -es:"", | |
61 | -it:"" | |
62 | -}] | |
3 | + 1: [{ | |
4 | + pt:"Largura", | |
5 | + en:"", | |
6 | + es:"", | |
7 | + it:"" | |
8 | + }], | |
9 | + 2: [{ | |
10 | + pt:"Altura", | |
11 | + en:"", | |
12 | + es:"", | |
13 | + it:"" | |
14 | + }], | |
15 | + 3: [{ | |
16 | + pt:"Valores em pixels", | |
17 | + en:"", | |
18 | + es:"", | |
19 | + it:"" | |
20 | + }], | |
21 | + 4: [{ | |
22 | + pt:"Testa", | |
23 | + en:"", | |
24 | + es:"", | |
25 | + it:"" | |
26 | + }], | |
27 | + 5: [{ | |
28 | + pt:"Aplicar", | |
29 | + en:"", | |
30 | + es:"", | |
31 | + it:"" | |
32 | + }] | |
63 | 33 | }; |
64 | 34 | \ No newline at end of file | ... | ... |
ferramentas/opcoes_tamanho/index.js
... | ... | @@ -117,16 +117,16 @@ i3GEOF.opcoesTamanho = { |
117 | 117 | html:function(){ |
118 | 118 | var ins = '<table summary="" class=lista width="100%">' + |
119 | 119 | '<table summary="" class=lista > '+ |
120 | - ' <tr><td>Largura:</td><td>' + | |
120 | + ' <tr><td>'+$trad(1,i3GEOF.opcoesTamanho.dicionario)+':</td><td>' + | |
121 | 121 | $inputText("","","i3GEOopcoesTamanhol","",4,i3GEO.parametros.w) + |
122 | 122 | ' </td></tr><tr><td> </td><td></td></tr>'+ |
123 | - ' <tr><td>Altura:</td><td>' + | |
123 | + ' <tr><td>'+$trad(2,i3GEOF.opcoesTamanho.dicionario)+':</td><td>' + | |
124 | 124 | $inputText("","","i3GEOopcoesTamanhoa","",4,i3GEO.parametros.h) + |
125 | 125 | ' </td></tr><tr><td> </td><td></td></tr>'+ |
126 | 126 | '</table>' + |
127 | - '<p class=paragrafo >Valores em pixels.</p>' + | |
128 | - '<p class=paragrafo ><input id=i3GEOopcoesTamanhobotao2 size=16 type=button value="Testa"/>' + | |
129 | - '<input id=i3GEOopcoesTamanhobotao1 size=16 type=button value="Aplicar"/>'; | |
127 | + '<p class=paragrafo >'+$trad(3,i3GEOF.opcoesTamanho.dicionario)+'</p>' + | |
128 | + '<p class=paragrafo ><input id=i3GEOopcoesTamanhobotao2 size=16 type=button value="'+$trad(4,i3GEOF.opcoesTamanho.dicionario)+'"/>' + | |
129 | + '<input id=i3GEOopcoesTamanhobotao1 size=16 type=button value="'+$trad(5,i3GEOF.opcoesTamanho.dicionario)+'"/>'; | |
130 | 130 | return ins; |
131 | 131 | }, |
132 | 132 | /* |
... | ... | @@ -232,4 +232,4 @@ i3GEOF.opcoesTamanho = { |
232 | 232 | box.style.height = a+"px"; |
233 | 233 | } |
234 | 234 | |
235 | -}; | |
235 | +}; | |
236 | 236 | \ No newline at end of file | ... | ... |
ferramentas/perfil/index.js
... | ... | @@ -64,7 +64,8 @@ i3GEOF.perfil = { |
64 | 64 | /* |
65 | 65 | Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário |
66 | 66 | */ |
67 | - criaJanelaFlutuante: function(){ | |
67 | + criaJanelaFlutuante: function(pontos){ | |
68 | + i3GEOF.perfil.pontos = pontos; | |
68 | 69 | i3GEOF.perfil.iniciaDicionario(); |
69 | 70 | }, |
70 | 71 | /* |
... | ... | @@ -74,7 +75,7 @@ i3GEOF.perfil = { |
74 | 75 | |
75 | 76 | O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script |
76 | 77 | */ |
77 | - iniciaDicionario: function(){ | |
78 | + iniciaDicionario: function(pontos){ | |
78 | 79 | if(typeof(i3GEOF.perfil.dicionario) === 'undefined'){ |
79 | 80 | i3GEO.util.scriptTag( |
80 | 81 | i3GEO.configura.locaplic+"/ferramentas/perfil/dicionario.js", |
... | ... | @@ -139,7 +140,9 @@ i3GEOF.perfil = { |
139 | 140 | */ |
140 | 141 | iniciaJanelaFlutuante: function(pontos){ |
141 | 142 | var minimiza,cabecalho,janela,divid,titulo; |
142 | - i3GEOF.perfil.pontos = pontos; | |
143 | + if(pontos){ | |
144 | + i3GEOF.perfil.pontos = pontos; | |
145 | + } | |
143 | 146 | //cria a janela flutuante |
144 | 147 | titulo = $trad("x54")+" <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=3&idajuda=96' > </a>"; |
145 | 148 | cabecalho = function(){}; |
... | ... | @@ -185,13 +188,17 @@ i3GEOF.perfil = { |
185 | 188 | {$i("i3GEOperfilfim").innerHTML = "Erro ao acessar o serviço de fornecimento dos dados";return;} |
186 | 189 | i3GEOF.perfil.converteDados(retorno.data.results); |
187 | 190 | if(!$i("i3GEOF.graficointerativo_script")){ |
188 | - var js = i3GEO.configura.locaplic+"/ferramentas/graficointerativo/index.js.php"; | |
191 | + var js = i3GEO.configura.locaplic+"/ferramentas/graficointerativo/index.js"; | |
189 | 192 | i3GEO.util.scriptTag(js,"i3GEOF.perfil.iniciaGrafico()","i3GEOF.graficointerativo_script"); |
190 | 193 | } |
194 | + else{ | |
195 | + i3GEOF.perfil.iniciaGrafico(); | |
196 | + } | |
191 | 197 | //é obrigado mostrar o mapa do google quando o perfil usa o google |
192 | 198 | if($i("i3GEOFperfilFonteGoogle").checked === true && i3GEO.Interface.ATUAL !== "googlemaps"){ |
193 | 199 | i3GEO.navega.dialogo.google(i3GEOF.perfil.listaPontos(true).split(",")); |
194 | 200 | } |
201 | + | |
195 | 202 | } |
196 | 203 | }; |
197 | 204 | if($i("i3GEOFperfilFonteGoogle").checked === true){ |
... | ... | @@ -247,7 +254,7 @@ i3GEOF.perfil = { |
247 | 254 | for(i=0;i<n;i++){ |
248 | 255 | lista.push(ys[i]+" "+xs[i]); |
249 | 256 | } |
250 | - return lista.toString(","); | |
257 | + return lista.join(","); | |
251 | 258 | }, |
252 | 259 | /* |
253 | 260 | Function: converteDados |
... | ... | @@ -265,11 +272,10 @@ i3GEOF.perfil = { |
265 | 272 | var n = google.length, |
266 | 273 | i = 0, |
267 | 274 | dados = ["n;x"]; |
268 | - for (i=0; i<n;i++){ | |
269 | - dados.push(i+";"+google[i].elevation); | |
275 | + for (i=0;i<n;i++){ | |
276 | + dados.push(i + ";" + google[i].elevation); | |
270 | 277 | } |
271 | 278 | i3GEOF.perfil.dadosGrafico = dados; |
272 | - return dados; | |
273 | 279 | }, |
274 | 280 | /* |
275 | 281 | Function: comboTemas | ... | ... |
interface/openlayersdebug.htm
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | <div id=visual ></div> |
52 | 52 | --> |
53 | 53 | <!-- botão de compartilhamento em redes sociais--> |
54 | - <div id=i3GEOcompartilhar style="width:170px;margin:auto;text-align:left;border-top:1px solid rgb(250,250,250);padding-top:1px" ></div> | |
54 | + <!-- <div id=i3GEOcompartilhar style="width:170px;margin:auto;text-align:left;border-top:1px solid rgb(250,250,250);padding-top:1px" ></div>--> | |
55 | 55 | <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo --> |
56 | 56 | <div id=tempoRedesenho style=z-index:100;position:absolute;top:0px;color:green;background-color:black;width:50px;display:none ></div> |
57 | 57 | </td> | ... | ... |