//['2013 - Agricultura Irrigada', 'http://www.geoservicos.inde.gov.br/geoserver/wms', {layers: 'MPOG:Agricultura_Irrigada', format: 'image/png', transparent: true}, {isBaseLayer: false, visibility: false, group: 'PPA/Anexo III/2013 - Agricultura Irrigada', metadataURL: 'http://www.metadados.inde.gov.br/geonetwork/srv/br/metadata.show.embedded?uuid=045663f7-5691-447a-8d06-ab692522328c', legendURL: 'http://www.geoservicos.inde.gov.br/geoserver/wms?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=MPOG:Agricultura_Irrigada&format=image/png',kmlURL: 'http://www.geoservicos.inde.gov.br/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=MPOG:Agricultura_Irrigada&width=1024&height=768&bbox=-74,-34,-29,6&format=application/vnd.google-earth.kmz+xml',sldtema: '','maxExtent': new OpenLayers.Bounds(-55.389,-22.229,-37.808,-2.922), isBaseGroup: false, displayInLayerSwitcher: false, removable: false, groupOfKeeper: 'MP/2013 - Agricultura Irrigada', groupOfTheme: 'PPA/Anexo III/2013 - Agricultura Irrigada'], /* Title: Vinde Mostra uma arvore de servicos WMS existentes na INDE Veja: Arquivo: i3geo/ferramentas/vinde/index.js Licenca: GPL2 i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo sob os termos da Licença Pública Geral GNU conforme publicada pela Free Software Foundation; Este programa é distribuído na expectativa de que seja útil, porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral do GNU para mais detalhes. Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ if(typeof(i3GEOF) === 'undefined'){ var i3GEOF = {}; } /* Classe: i3GEOF.vinde */ i3GEOF.vinde = { /* Variavel: aguarde Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. */ aguarde: "", /** * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php */ MUSTACHE : "", /** * Susbtitutos para o template */ mustacheHash : function() { var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.vinde.dicionario); return dicionario; }, /* Function: inicia Inicia a ferramenta. É chamado por criaJanelaFlutuante Parametro: iddiv {String} - id do div que receberá o conteudo HTML da ferramenta arvore {YAHOO.widget.TreeView} (opcional) arvore onde o no da inde sera criado */ inicia: function(iddiv,arvore){ if(i3GEOF.vinde.MUSTACHE == ""){ $.get(i3GEO.configura.locaplic + "/ferramentas/vinde/template_mst.html", function(template) { i3GEOF.vinde.MUSTACHE = template; i3GEOF.vinde.inicia(iddiv); }); return; } if($i("i3GEOF.vinde_imagemCabecalho")){ i3GEOF.vinde.aguarde.visibility = "visible"; } var p = i3GEO.configura.locaplic+"/ferramentas/vinde/wmsindejson.php", funcao = function(retorno){ try{ if(iddiv && iddiv != ""){ $i(iddiv).innerHTML = i3GEOF.vinde.html(); } if($i("i3GEOF.vinde_imagemCabecalho")){ i3GEOF.vinde.aguarde.visibility = "hidden"; } i3GEOF.vinde.arvore(retorno,arvore); } catch(e){ if(typeof(console) !== 'undefined'){console.info("Erro ao acessar a INDE");} } }; i3GEO.util.ajaxGet(p,funcao); }, arvore: function(dados,arvore){ var root,tempNode,d,criaNo; if(arvore == undefined ){ arvore = new YAHOO.widget.TreeView($i("i3GEOFvindeArvore")); } root = arvore.getRoot(); try{ tempNode = new YAHOO.widget.TextNode('', root, false); tempNode.isLeaf = false; tempNode.className = "i3GeoFolder"; tempNode.enableHighlight = true; } catch(e){ if(typeof(console) !== 'undefined'){console.error(e);} } titulo = "
INDE-Br
"; d = {html:titulo}; tempNode = new YAHOO.widget.HTMLNode(d, root, true,true); tempNode.enableHighlight = true; criaNo = function(obj,noDestino){ var chaves,i,n,texto,layer,temp, epsg = 'EPSG:4326'; if(!YAHOO.lang.isString(obj)){ if(YAHOO.lang.isArray(obj)){ chaves = obj; } else{ chaves = i3GEO.util.listaChaves(obj); } n = chaves.length; for (i=0;i"; janela = i3GEO.janela.cria( "300px", "320px", "", "", "", titulo, "i3GEOF.vinde", false, "hd", "", minimiza, "", true, "", "", "", "", "114" ); divid = janela[2].id; i3GEOF.vinde.janela = janela[0]; $i("i3GEOF.vinde_corpo").style.backgroundColor = "white"; $i("i3GEOF.vinde_corpo").style.textAlign = "left"; i3GEOF.vinde.aguarde = $i("i3GEOF.vinde_imagemCabecalho").style; i3GEOF.vinde.inicia(divid); } };