Commit 7c1d83132e1d4d2a5e97504ed7302c178c07a125
1 parent
69c56dc6
Exists in
master
and in
7 other branches
--no commit message
Showing
4 changed files
with
60 additions
and
12 deletions
Show diff stats
No preview for this file type
mashups/openlayers.js.php
@@ -773,10 +773,26 @@ i3GEO.editorOL = { | @@ -773,10 +773,26 @@ i3GEO.editorOL = { | ||
773 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; | 773 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; |
774 | } | 774 | } |
775 | formata = function(texto){ | 775 | formata = function(texto){ |
776 | - var textoN = texto.split(":"); | ||
777 | - if(textoN.length > 0){ | ||
778 | - textoN[0] = ""; | ||
779 | - texto = textoN.join(""); | 776 | + var temp, |
777 | + temp1, | ||
778 | + n, | ||
779 | + i, | ||
780 | + f = [], | ||
781 | + f1 = [], | ||
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); | ||
794 | + } | ||
795 | + texto = f.join("<br><br>"); | ||
780 | } | 796 | } |
781 | return texto; | 797 | return texto; |
782 | }; | 798 | }; |
mashups/openlayers_compacto.js
@@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | | @@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | | ||
3779 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; | 3779 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; |
3780 | } | 3780 | } |
3781 | formata = function(texto){ | 3781 | formata = function(texto){ |
3782 | -var textoN = texto.split(":"); | ||
3783 | -if(textoN.length > 0){ | ||
3784 | -textoN[0] = ""; | ||
3785 | -texto = textoN.join(""); | 3782 | +var temp, |
3783 | +temp1, | ||
3784 | +n, | ||
3785 | +i, | ||
3786 | +f = [], | ||
3787 | +f1 = [], | ||
3788 | +textoN = texto.split(":"); | ||
3789 | +if(textoN.length > 1){ | ||
3790 | +temp = textoN[2].replace(/\n\r/g, ""); | ||
3791 | +temp = temp.replace(/'/g, ""); | ||
3792 | +temp = temp.replace(/\n/g, "|"); | ||
3793 | +temp = temp.split("|"); | ||
3794 | +n = temp.length; | ||
3795 | +for(i=0;i<n;i++){ | ||
3796 | +temp1 = temp[i].replace(/^\s+/,""); | ||
3797 | +temp1 = temp1.replace(/\s+$/,""); | ||
3798 | +if(temp1 != "") | ||
3799 | +f.push(temp1); | ||
3800 | +} | ||
3801 | +texto = f.join("<br><br>"); | ||
3786 | } | 3802 | } |
3787 | return texto; | 3803 | return texto; |
3788 | }; | 3804 | }; |
mashups/openlayers_compacto.js.php
@@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | | @@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | | ||
3779 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; | 3779 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; |
3780 | } | 3780 | } |
3781 | formata = function(texto){ | 3781 | formata = function(texto){ |
3782 | -var textoN = texto.split(":"); | ||
3783 | -if(textoN.length > 0){ | ||
3784 | -textoN[0] = ""; | ||
3785 | -texto = textoN.join(""); | 3782 | +var temp, |
3783 | +temp1, | ||
3784 | +n, | ||
3785 | +i, | ||
3786 | +f = [], | ||
3787 | +f1 = [], | ||
3788 | +textoN = texto.split(":"); | ||
3789 | +if(textoN.length > 1){ | ||
3790 | +temp = textoN[2].replace(/\n\r/g, ""); | ||
3791 | +temp = temp.replace(/'/g, ""); | ||
3792 | +temp = temp.replace(/\n/g, "|"); | ||
3793 | +temp = temp.split("|"); | ||
3794 | +n = temp.length; | ||
3795 | +for(i=0;i<n;i++){ | ||
3796 | +temp1 = temp[i].replace(/^\s+/,""); | ||
3797 | +temp1 = temp1.replace(/\s+$/,""); | ||
3798 | +if(temp1 != "") | ||
3799 | +f.push(temp1); | ||
3800 | +} | ||
3801 | +texto = f.join("<br><br>"); | ||
3786 | } | 3802 | } |
3787 | return texto; | 3803 | return texto; |
3788 | }; | 3804 | }; |