From 733985a20705fc07c05236483c782e9480d6663c Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 23 Jun 2010 08:54:14 +0000 Subject: [PATCH] Movido inserexy para a pasta depreciados --- ferramentas/depreciados/inserexy/index.htm | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ferramentas/depreciados/inserexy/index.js | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ferramentas/template/index.htm | 1 - ferramentas/template/index.js | 3 +-- 4 files changed, 188 insertions(+), 3 deletions(-) create mode 100644 ferramentas/depreciados/inserexy/index.htm create mode 100644 ferramentas/depreciados/inserexy/index.js diff --git a/ferramentas/depreciados/inserexy/index.htm b/ferramentas/depreciados/inserexy/index.htm new file mode 100644 index 0000000..4c3a1e6 --- /dev/null +++ b/ferramentas/depreciados/inserexy/index.htm @@ -0,0 +1,58 @@ + + + + + + +
+
+
 Pegar 
+
 Digitar 
+
 Colar 
+
 WKT 
+
+ +
+ Inserir os pontos no mapa como: + + + +
+
+
+ Clique no mapa para inserir um novo ponto. Clique no ponto (abaixo) para remover.
+
+
+ + + +
+
+
+ Aguarde... +
+
+ + + + + \ No newline at end of file diff --git a/ferramentas/depreciados/inserexy/index.js b/ferramentas/depreciados/inserexy/index.js new file mode 100644 index 0000000..b34a4f8 --- /dev/null +++ b/ferramentas/depreciados/inserexy/index.js @@ -0,0 +1,129 @@ +//inicializa +parametrosURL() +//eventos das guias +$i("guia1").onclick = function() +{$i("guia1obj").style.display="block";} +$i("guia2").onclick = function() +{$i("guia2obj").style.display="block";} +$i("guia3").onclick = function() +{$i("guia3obj").style.display="block";} +$i("guia4").onclick = function() +{$i("guia4obj").style.display="block";wkt();} +aguarde("none") +//remove um ponto da lista de pontos quando o mesmo for clicado +function remove(ponto) +{ + var p = ponto.parentNode + p.removeChild(ponto) + aplicar("limpaponto") +} +//gera string wkt com as coordenadas +function wkt() +{ + aguarde("block") + var divs = $i("resultado") + var els = divs.childNodes + var xy = new Array() + var ultimo = "" + for (i=0;i" + ins += retorno.data[1]+"
" + ins += retorno.data[2]+"
" + $i("wktres").innerHTML = ins+"
" + //var w = window.open() + //w.document.write(ins) + } + else + {$i("wktres").innerHTML = "

Ocorreu um erro
"} + aguarde("none") +} +//limpa os pontos do mapa e inclui novos pontos conforme existirem no div resultado +function aplicar(tipo) +{ + var divs = $i("resultado") + var els = divs.childNodes + var xy = new Array() + var ultimo = "" + for (i=0;i" + xxx +" " + yyy + "
" + $i("resultado").innerHTML = ins + aplicar("ponto") +} +function colar() +{ + var xys = $i("colar").value.split(" ") + var ins = $i("resultado").innerHTML + var n = new Array() + for (i = 0;i < xys.length; i = i + 1) + {if (xys[i] != ""){n.push(xys[i])}} + for (i = 0;i < n.length; i = i + 2) + { + ins = ins + "

" + n[i] +" " + n[i+1] + "

" + } + $i("resultado").innerHTML = ins + aplicar("ponto") +} \ No newline at end of file diff --git a/ferramentas/template/index.htm b/ferramentas/template/index.htm index ea34b23..8a282ad 100644 --- a/ferramentas/template/index.htm +++ b/ferramentas/template/index.htm @@ -43,6 +43,5 @@ body {
- \ No newline at end of file diff --git a/ferramentas/template/index.js b/ferramentas/template/index.js index 010e3c6..4192849 100644 --- a/ferramentas/template/index.js +++ b/ferramentas/template/index.js @@ -1,6 +1,5 @@ //inicializa -parametrosURL() function muda(template) { - window.parent.location = window.parent.g_locaplic+"/aplicmap/"+template+"?"+g_sid + window.parent.location = window.parent.i3GEO.configura.locaplic+"/aplicmap/"+template+"?"+window.parent.i3GEO.configura.sid } \ No newline at end of file -- libgit2 0.21.2