cursodsv25.htm 1.73 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Category" content="i3Geo Mapa interativo MMA geoprocessamento sig mobile">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<title>i3GEO - OpenLayers</title>
<script src="../classesjs/i3geo.js"></script>
<script src="../pacotes/openlayers/OpenLayers2131.js"></script>
<link rel="stylesheet" type="text/css" href="../css/black.css">
</head>
<body style='margin-left:7px;background:white;' class=yui-skin-sam >
<div style="top:50px;">
<div style="width:150px;height:300px;border:1px solid;float:left;">
	<div id=Legenda style="display:block;margin:auto;text-align:center;left:5px;" ></div>
</div>
<div id=i3geo >
<div id=corpoMapa style="left:155px;width:700px;height:400px;background-image:url('../imagens/i3geo1bw.jpg');">
</div>
</div>
</div>
<script>
/************
Altera a funcao de atualizacao e geracao da legenda

************/
//i3GEO.gadgets.PARAMETROS.mostraEscalaNumerica.idhtml = "escalaTeste";
i3GEO.idioma.MOSTRASELETOR = false; //para nao mostrar as bandeiras de escolha do idioma
i3GEO.configura.mapaRefDisplay = "none";//nao mostra o mapa de referencia
i3GEO.mapa.TEMASINICIAIS = "_lbiomashp,_llocali";
i3GEO.mapa.TEMASINICIAISLIGADOS = "_lbiomashp";

//altera a funcao que atualiza a legenda
i3GEO.mapa.legendaHTML.atualiza = function() {
	//altera o template da legenda
	i3GEO.configura.templateLegenda = "legenda7.htm";
	var idleg = $i("Legenda"),
	temp = function(retorno) {
		idleg.innerHTML = retorno.data.legenda;
	};
	i3GEO.mapa.legendaHTML.obtem(temp);
};

i3GEO.finaliza = function(){
	i3GEO.mapa.legendaHTML.cria("Legenda");
};
i3GEO.cria();
i3GEO.inicia();
</script>
</body>
</html>