From 7c1d83132e1d4d2a5e97504ed7302c178c07a125 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 7 Feb 2012 23:16:47 +0000 Subject: [PATCH] --- documentacao/Thumbs.db | Bin 0 -> 17920 bytes mashups/openlayers.js.php | 24 ++++++++++++++++++++---- mashups/openlayers_compacto.js | 24 ++++++++++++++++++++---- mashups/openlayers_compacto.js.php | 24 ++++++++++++++++++++---- 4 files changed, 60 insertions(+), 12 deletions(-) create mode 100644 documentacao/Thumbs.db diff --git a/documentacao/Thumbs.db b/documentacao/Thumbs.db new file mode 100644 index 0000000..de2ac24 Binary files /dev/null and b/documentacao/Thumbs.db differ diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index ea713c6..010275c 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -773,10 +773,26 @@ i3GEO.editorOL = { lonlattexto += "
captura
"; } formata = function(texto){ - var textoN = texto.split(":"); - if(textoN.length > 0){ - textoN[0] = ""; - texto = textoN.join(""); + var temp, + temp1, + n, + i, + f = [], + f1 = [], + textoN = texto.split(":"); + if(textoN.length > 1){ + temp = textoN[2].replace(/\n\r/g, ""); + temp = temp.replace(/'/g, ""); + temp = temp.replace(/\n/g, "|"); + temp = temp.split("|"); + n = temp.length; + for(i=0;i
"); } return texto; }; diff --git a/mashups/openlayers_compacto.js b/mashups/openlayers_compacto.js index 00ed5a4..2ec27e8 100644 --- a/mashups/openlayers_compacto.js +++ b/mashups/openlayers_compacto.js @@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | lonlattexto += "
captura
"; } formata = function(texto){ -var textoN = texto.split(":"); -if(textoN.length > 0){ -textoN[0] = ""; -texto = textoN.join(""); +var temp, +temp1, +n, +i, +f = [], +f1 = [], +textoN = texto.split(":"); +if(textoN.length > 1){ +temp = textoN[2].replace(/\n\r/g, ""); +temp = temp.replace(/'/g, ""); +temp = temp.replace(/\n/g, "|"); +temp = temp.split("|"); +n = temp.length; +for(i=0;i
"); } return texto; }; diff --git a/mashups/openlayers_compacto.js.php b/mashups/openlayers_compacto.js.php index 66e4492..3125fff 100644 --- a/mashups/openlayers_compacto.js.php +++ b/mashups/openlayers_compacto.js.php @@ -3779,10 +3779,26 @@ if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true | lonlattexto += "
captura
"; } formata = function(texto){ -var textoN = texto.split(":"); -if(textoN.length > 0){ -textoN[0] = ""; -texto = textoN.join(""); +var temp, +temp1, +n, +i, +f = [], +f1 = [], +textoN = texto.split(":"); +if(textoN.length > 1){ +temp = textoN[2].replace(/\n\r/g, ""); +temp = temp.replace(/'/g, ""); +temp = temp.replace(/\n/g, "|"); +temp = temp.split("|"); +n = temp.length; +for(i=0;i
"); } return texto; }; -- libgit2 0.21.2