From 169de75cd0ee20f5bb3c844a5061d15ad446336c Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 19 Mar 2008 13:35:52 +0000 Subject: [PATCH] Correções na interface mashup --- aplicmap/geral.htm | 1 - classesjs/funcoes.js | 20 ++++++++++++++++---- exemplos/mashup.htm | 77 ++++++++++++++++++++++++++--------------------------------------------------- 3 files changed, 42 insertions(+), 56 deletions(-) diff --git a/aplicmap/geral.htm b/aplicmap/geral.htm index 402f312..2998d96 100644 --- a/aplicmap/geral.htm +++ b/aplicmap/geral.htm @@ -440,7 +440,6 @@ g_mapaRefDisplay = "block" g_janelaMen = "sim"; */ - /* Variable: g_mostraRosa diff --git a/classesjs/funcoes.js b/classesjs/funcoes.js index 1f8687f..78f6755 100644 --- a/classesjs/funcoes.js +++ b/classesjs/funcoes.js @@ -445,7 +445,10 @@ function initJanelaMen() novoel.style.display="block"; novoel.style.border="1px solid rgb(170,170,170)"; novoel.innerHTML = '
 
'+g_mensagempadrao+'
'; - document.body.appendChild(novoel); + if($i("i3geo")) + {$i("i3geo").appendChild(novoel);} + else + {document.body.appendChild(novoel);} var i = ($i("janelaMenTexto")).style; i.textAlign="left"; i.fontSize="10px"; @@ -540,7 +543,10 @@ function docaguias() var temp = '
Guias
'; temp += '
'; novoel.innerHTML = temp; - document.body.appendChild(novoel); + if($i("i3geo")) + {$i("i3geo").appendChild(novoel);} + else + {document.body.appendChild(novoel);} $i("conteudojanelaguias").innerHTML = novono; YAHOO.namespace("janelaguias.xp"); YAHOO.janelaguias.xp.panel = new YAHOO.widget.Panel("janelaguias", {width:"268px", fixedcenter: true, constraintoviewport: false, underlay:"none", close:true, visible:true, draggable:true, modal:false } ); @@ -713,7 +719,10 @@ function mensagemf(m) var novoel = document.createElement("div"); novoel.id = 'mensagem'; novoel.innerHTML = '
'; - document.body.appendChild(novoel); + if($i("i3geo")) + {$i("i3geo").appendChild(novoel);} + else + {document.body.appendChild(novoel);} } if (m == null) {$i("mensagem").style.visibility = "hidden";} @@ -764,7 +773,10 @@ function wdocaf(wlargura,waltura,wsrc,nx,ny,texto) novoel.id = "wdoca"; novoel.style.display="block"; novoel.innerHTML = ins; - document.body.appendChild(novoel); + if($i("i3geo")) + {$i("i3geo").appendChild(novoel);} + else + {document.body.appendChild(novoel);} if ($i("wdocai")) { with ($i("wdocai").style){width = "100%";height=waltura;}; diff --git a/exemplos/mashup.htm b/exemplos/mashup.htm index e128dde..4d4c971 100644 --- a/exemplos/mashup.htm +++ b/exemplos/mashup.htm @@ -7,13 +7,10 @@ - + - - +

Este é um exemplo de inclusão do I3Geo dentro de uma página qualquer.

Você pode chamar o I3Geo de dentro de uma outra página criando o DIV com id=corpo

@@ -21,63 +18,59 @@ arquivos não compactados, bastando substituir por i3geonaocompacto -->

Nem todos os elementos precisam estar no mapa.

Você pode esconder ou mudar as ferramentas de lugar.

-
+
- + - - - - Críticas e sugestões
- - -
-- libgit2 0.21.2