Commit be216199b8eb1d613f6a5c63446c92b0166c426e
1 parent
303386b0
Exists in
master
and in
7 other branches
Alteração na ferramenta de cálculo de área para utilizar a API do OpenLayers nessa interface
Showing
2 changed files
with
39 additions
and
11 deletions
Show diff stats
classesjs/classe_analise.js
| ... | ... | @@ -527,8 +527,8 @@ i3GEO.analise = { |
| 527 | 527 | var mostra = $i("mostradistancia_calculo"), |
| 528 | 528 | texto; |
| 529 | 529 | if (mostra){ |
| 530 | - texto = "<b>atual:</b> "+total.toFixed(3)+" km"+ | |
| 531 | - "<br><b>atual:</b> "+(total*1000).toFixed(2)+" m"+ | |
| 530 | + texto = "<b>"+$trad("x96")+":</b> "+total.toFixed(3)+" km"+ | |
| 531 | + "<br><b>"+$trad("x96")+":</b> "+(total*1000).toFixed(2)+" m"+ | |
| 532 | 532 | "<br>"+$trad("x25")+": "+i3GEO.calculo.metododistancia; |
| 533 | 533 | mostra.innerHTML = texto; |
| 534 | 534 | } |
| ... | ... | @@ -540,8 +540,8 @@ i3GEO.analise = { |
| 540 | 540 | var mostra = $i("mostradistancia_calculo_movel"), |
| 541 | 541 | texto; |
| 542 | 542 | if (mostra){ |
| 543 | - texto = "<b>trecho:</b> "+trecho.toFixed(3)+" km"+ | |
| 544 | - "<br><b>total:</b> "+(parcial + trecho).toFixed(3)+" km" + | |
| 543 | + texto = "<b>"+$trad("x95")+":</b> "+trecho.toFixed(3)+" km"+ | |
| 544 | + "<br><b>"+$trad("x97")+":</b> "+(parcial + trecho).toFixed(3)+" km" + | |
| 545 | 545 | "<br><b>"+$trad("x23")+" (DMS):</b> "+direcao.toFixed(4); |
| 546 | 546 | mostra.innerHTML = texto; |
| 547 | 547 | } |
| ... | ... | @@ -1019,9 +1019,9 @@ i3GEO.analise = { |
| 1019 | 1019 | var mostra = $i("mostraarea_calculo"), |
| 1020 | 1020 | texto; |
| 1021 | 1021 | if (mostra){ |
| 1022 | - texto = "<b>Área:</b> "+(area/1000000).toFixed(3)+" km2"+ | |
| 1023 | - "<br><b>Área:</b> "+(area/10000).toFixed(2)+" ha"+ | |
| 1024 | - "<br><b>perímetro:</b> "+(per).toFixed(2)+" km"+ | |
| 1022 | + texto = "<b>"+$trad("d21at")+":</b> "+(area/1000000).toFixed(3)+" km2"+ | |
| 1023 | + "<br><b>"+$trad("d21at")+":</b> "+(area/10000).toFixed(2)+" ha"+ | |
| 1024 | + "<br><b>"+$trad("x98")+":</b> "+(per).toFixed(2)+" km"+ | |
| 1025 | 1025 | "<br>"+$trad("x25")+": "+i3GEO.calculo.metododistancia; |
| 1026 | 1026 | mostra.innerHTML = texto; |
| 1027 | 1027 | } |
| ... | ... | @@ -1033,10 +1033,10 @@ i3GEO.analise = { |
| 1033 | 1033 | var mostra = $i("mostraarea_calculo_parcial"), |
| 1034 | 1034 | texto; |
| 1035 | 1035 | if (mostra){ |
| 1036 | - texto = "<b>Área:</b> "+(area/1000000).toFixed(3)+" km2"+ | |
| 1037 | - "<br><b>Área:</b> "+(area/10000).toFixed(2)+" ha"+ | |
| 1038 | - "<br><b>trecho:</b> "+trecho.toFixed(3)+" km"+ | |
| 1039 | - "<br><b>perímetro:</b> "+(per).toFixed(3)+" km" + | |
| 1036 | + texto = "<b>"+$trad("d21at")+":</b> "+(area/1000000).toFixed(3)+" km2"+ | |
| 1037 | + "<br><b>"+$trad("d21at")+":</b> "+(area/10000).toFixed(2)+" ha"+ | |
| 1038 | + "<br><b>"+$trad("x95")+":</b> "+trecho.toFixed(3)+" km"+ | |
| 1039 | + "<br><b>"+$trad("x98")+":</b> "+(per).toFixed(3)+" km" + | |
| 1040 | 1040 | "<br><b>"+$trad("x23")+" (DMS):</b> "+direcao.toFixed(4); |
| 1041 | 1041 | mostra.innerHTML = texto; |
| 1042 | 1042 | } | ... | ... |
classesjs/dicionario.js
| ... | ... | @@ -2200,6 +2200,34 @@ pt:"Remove as figuras", |
| 2200 | 2200 | en:"", |
| 2201 | 2201 | es:"", |
| 2202 | 2202 | it:"" |
| 2203 | +}], | |
| 2204 | +"x95":[ | |
| 2205 | +{ | |
| 2206 | +pt:"trecho", | |
| 2207 | +en:"", | |
| 2208 | +es:"", | |
| 2209 | +it:"" | |
| 2210 | +}], | |
| 2211 | +"x96":[ | |
| 2212 | +{ | |
| 2213 | +pt:"atual", | |
| 2214 | +en:"", | |
| 2215 | +es:"", | |
| 2216 | +it:"" | |
| 2217 | +}], | |
| 2218 | +"x97":[ | |
| 2219 | +{ | |
| 2220 | +pt:"total", | |
| 2221 | +en:"", | |
| 2222 | +es:"", | |
| 2223 | +it:"" | |
| 2224 | +}], | |
| 2225 | +"x98":[ | |
| 2226 | +{ | |
| 2227 | +pt:"perímetro", | |
| 2228 | +en:"", | |
| 2229 | +es:"", | |
| 2230 | +it:"" | |
| 2203 | 2231 | }] |
| 2204 | 2232 | }; |
| 2205 | 2233 | //YAHOO.log("carregou dicionario", "Classes i3geo"); | ... | ... |