Commit 17db5cb3619c77efa84766808d0aff7b61e62573
1 parent
3198b432
Exists in
master
and in
7 other branches
Alteração na formatação da ferramenta de identificação no mashup
Showing
5 changed files
with
31 additions
and
15 deletions
Show diff stats
admin/js/editormapfile.js
| ... | ... | @@ -1320,7 +1320,7 @@ function montaEditorDispo(dados) |
| 1320 | 1320 | var param = { |
| 1321 | 1321 | "linhas":[ |
| 1322 | 1322 | {ajuda:"Indica se o usuário pode fazer download do tema. Se sim, o ícone de download será mostrado na árvore de camadas disponíveis no mapa.", |
| 1323 | - titulo:"Ícone de download (METADATA: DOWNLOAD)",id:"",value:dados.download,tipo:"text",div:"<div id=cDownload ></div>"}, | |
| 1323 | + titulo:"Permite download (METADATA: DOWNLOAD)",id:"",value:dados.download,tipo:"text",div:"<div id=cDownload ></div>"}, | |
| 1324 | 1324 | {ajuda:"Endereço de um arquivo pré-existente para download dos dados (caminho completo no servidor). Se definido, o sistema irá usar esse arquivo ao invés de gerar os dados, quando o usuário clicar nas opções de download. Se não for definido, o arquivo de download é gerado diretamente do original, convertendo do banco ou copiando o arquivo definido em DATA.", |
| 1325 | 1325 | titulo:"Arquivo download (ARQUIVODOWNLOAD)",id:"arquivodownload",value:dados.arquivodownload,tipo:"text"}, |
| 1326 | 1326 | {ajuda:"Endereço de um arquivo KMZ ou KML pré-existente para download dos dados (caminho completo no servidor). Se definido, o sistema irá usar esse arquivo ao invés de gerar os dados, quando o usuário clicar nas opções de visualização de KML ou KMZ. Se não for definido, o arquivo é gerado diretamente do original.", | ... | ... |
mashups/openlayers.js.php
| ... | ... | @@ -780,20 +780,25 @@ i3GEO.editorOL = { |
| 780 | 780 | f = [], |
| 781 | 781 | f1 = [], |
| 782 | 782 | textoN = texto.split(":"); |
| 783 | - if(textoN.length > 1){ | |
| 784 | - temp = textoN[2].replace(/\n\r/g, ""); | |
| 785 | - temp = temp.replace(/'/g, ""); | |
| 786 | - temp = temp.replace(/\n/g, "|"); | |
| 787 | - temp = temp.split("|"); | |
| 788 | - n = temp.length; | |
| 789 | - for(i=0;i<n;i++){ | |
| 790 | - temp1 = temp[i].replace(/^\s+/,""); | |
| 791 | - temp1 = temp1.replace(/\s+$/,""); | |
| 792 | - if(temp1 != "") | |
| 793 | - f.push(temp1); | |
| 783 | + try{ | |
| 784 | + if(textoN.length > 1){ | |
| 785 | + temp = textoN[2].replace(/\n\r/g, ""); | |
| 786 | + temp = temp.replace(/'/g, ""); | |
| 787 | + temp = temp.replace(/\n/g, "|"); | |
| 788 | + temp = temp.replace(/_/g, " "); | |
| 789 | + temp = temp.replace(/=/g, ":"); | |
| 790 | + temp = temp.split("|"); | |
| 791 | + n = temp.length; | |
| 792 | + for(i=0;i<n;i++){ | |
| 793 | + temp1 = temp[i].replace(/^\s+/,""); | |
| 794 | + temp1 = temp1.replace(/\s+$/,""); | |
| 795 | + if(temp1 != "") | |
| 796 | + f.push(temp1); | |
| 797 | + } | |
| 798 | + texto = f.join("<br><br>"); | |
| 794 | 799 | } |
| 795 | - texto = f.join("<br><br>"); | |
| 796 | 800 | } |
| 801 | + catch(e){} | |
| 797 | 802 | return texto; |
| 798 | 803 | }; |
| 799 | 804 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( | ... | ... |
mashups/openlayers_compacto.js
| ... | ... | @@ -3786,10 +3786,13 @@ i, |
| 3786 | 3786 | f = [], |
| 3787 | 3787 | f1 = [], |
| 3788 | 3788 | textoN = texto.split(":"); |
| 3789 | +try{ | |
| 3789 | 3790 | if(textoN.length > 1){ |
| 3790 | 3791 | temp = textoN[2].replace(/\n\r/g, ""); |
| 3791 | 3792 | temp = temp.replace(/'/g, ""); |
| 3792 | 3793 | temp = temp.replace(/\n/g, "|"); |
| 3794 | +temp = temp.replace(/_/g, " "); | |
| 3795 | +temp = temp.replace(/=/g, ":"); | |
| 3793 | 3796 | temp = temp.split("|"); |
| 3794 | 3797 | n = temp.length; |
| 3795 | 3798 | for(i=0;i<n;i++){ |
| ... | ... | @@ -3800,6 +3803,8 @@ f.push(temp1); |
| 3800 | 3803 | } |
| 3801 | 3804 | texto = f.join("<br><br>"); |
| 3802 | 3805 | } |
| 3806 | +} | |
| 3807 | +catch(e){} | |
| 3803 | 3808 | return texto; |
| 3804 | 3809 | }; |
| 3805 | 3810 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( | ... | ... |
mashups/openlayers_compacto.js.php
| ... | ... | @@ -3786,10 +3786,13 @@ i, |
| 3786 | 3786 | f = [], |
| 3787 | 3787 | f1 = [], |
| 3788 | 3788 | textoN = texto.split(":"); |
| 3789 | +try{ | |
| 3789 | 3790 | if(textoN.length > 1){ |
| 3790 | 3791 | temp = textoN[2].replace(/\n\r/g, ""); |
| 3791 | 3792 | temp = temp.replace(/'/g, ""); |
| 3792 | 3793 | temp = temp.replace(/\n/g, "|"); |
| 3794 | +temp = temp.replace(/_/g, " "); | |
| 3795 | +temp = temp.replace(/=/g, ":"); | |
| 3793 | 3796 | temp = temp.split("|"); |
| 3794 | 3797 | n = temp.length; |
| 3795 | 3798 | for(i=0;i<n;i++){ |
| ... | ... | @@ -3800,6 +3803,8 @@ f.push(temp1); |
| 3800 | 3803 | } |
| 3801 | 3804 | texto = f.join("<br><br>"); |
| 3802 | 3805 | } |
| 3806 | +} | |
| 3807 | +catch(e){} | |
| 3803 | 3808 | return texto; |
| 3804 | 3809 | }; |
| 3805 | 3810 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( | ... | ... |
temas/biomashp.map
| ... | ... | @@ -5,7 +5,7 @@ MAP |
| 5 | 5 | CONNECTION "" |
| 6 | 6 | DATA "c:\ms4w\apache\htdocs\i3geo\aplicmap\dados\biomas.shp" |
| 7 | 7 | FOOTER "teste.htm" |
| 8 | - #GROUP "biomashp" | |
| 8 | + GROUP "biomashp" | |
| 9 | 9 | HEADER "teste.htm" |
| 10 | 10 | METADATA |
| 11 | 11 | "ltempoitemimagem" "" |
| ... | ... | @@ -40,7 +40,8 @@ MAP |
| 40 | 40 | TEMPLATE "none.htm" |
| 41 | 41 | OPACITY 50 |
| 42 | 42 | TYPE POLYGON |
| 43 | - UNITS METERS | |
| 43 | + UNITS METERS | |
| 44 | + PROCESSING "ITEMS=CD_LEGENDA" | |
| 44 | 45 | CLASS |
| 45 | 46 | NAME "CAATINGA" |
| 46 | 47 | EXPRESSION ('[CD_LEGENDA]'eq'CAATINGA') | ... | ... |