openlayers5.htm 5.31 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.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 - Mapa interativo</title>
<script type="text/javascript" src="../classesjs/i3geo.js"></script>
<script type="text/javascript" src="../pacotes/openlayers/OpenLayers2131.js.php"></script>
</head>
<body id="i3geo">

<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'>
<tr style="border:0px">
	<td colspan=2 id="barraSuperior" style="background-image:url('../imagenscabeca.png');height:10px"></td>
</tr>
<tr>
<td>
  <table width=100% cellspacing=0 cellpadding=0 >
   <tr>
   <td>
    <div class=verdeescuro style="top:0px;cursor:pointer;">
	 <div id=guia1 class=guia >Temas</div>
	 <div id=guia2 class=guia >Adiciona</div>
	 <div id=guia4 class=guia >Legenda</div>
    </div>
   </td>

   </tr>
  </table>
</td>
<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)">
	 <div id="menus" ></div>
</td>
</tr>
<tr>
 <td class=tdbranca id=contemFerramentas style="vertical-align:top;width:350px;text-align:left;">
  <div id='guia1obj' >
	<div style='left:5px;top:10px;width:90%;' id=buscaRapida ></div>
  	<div id=listaPropriedades style='top:15px;' ></div>
  	<div id=listaLayersBase style='top:15px;'></div>
  	<div id=listaTemas style='top:15px;'></div>
  </div>
  <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div>
  <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div>
  <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div>
 </td>
 <td style="vertical-align:top;border-width:0px;">
  <table width="100%" style="vertical-align:top;border-width:0px">
    <tr><td  class=verdeclaro id=contemImg >
    <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div>
   </td></tr>
  </table>
 </td>
 </tr>

<tr>

 <td class=tdbranca >
 	<div id="seletorIdiomas" ></div>
 	<div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div>
 </td>
 <td class=tdbranca >
  <table width=100% ><tr>
  <td class=tdbranca ></td>
  <td class=tdbranca style=text-align:center >
  	<div id=localizarxy style="text-align:left;font-size:10px;">Aguarde...</div>
  </td>
  <td class=tdbranca >
  	<div id=escala ></div>
  </td>
  </tr>
  </table>
 </td>
</tr>
<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagensrodape.png');height:10px"></td></tr>
<tr style="border:0px"><td colspan=3 style=background-color:black;color:white  id="emailInstituicao">geoprocessamento@mma.gov.br</td></tr>

</table>
<!-- estilo necess&aacute;rio para a ferramenta de edi&ccedil;&atilde;o -->
<style>
.olControlEditingToolbar1 div {
	background-image:url(../mashups/openlayers.png);
	background-repeat:no-repeat;
	float:right;
	right: 0px;
	height:29px;
	margin:2px;
	width:29px;
	cursor:pointer;
}
</style>
<script type="text/javascript">
i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
i3GEO.mapa.TEMASINICIAISLIGADOS = "mundo";
//
//muda a extens&atilde;o m&aacute;xima
//
i3GEO.configura.mashuppar = "&mapext=-63.712484 -20.765721 -42.385294 -9.136698";
i3GEO.Interface.openlayers.MAXEXTENT = [-63.712484, -20.765721, -42.385294, -9.136698];

i3GEO.Interface.openlayers.TILES = true;
i3GEO.Interface.ATUAL = "openlayers";
i3GEO.Interface.IDCORPO = "contemImg";
i3GEO.configura.diminuixN = 20;
i3GEO.Interface.openlayers.GADGETS = {
		PanZoomBar:true,
		PanZoom:false,
		LayerSwitcher:false,
		ScaleLine:true,
		OverviewMap:false
	};
i3GEO.cria();
i3GEO.configura.mapaRefDisplay = "none";
//tipo de barra de bot&otilde;es
i3GEO.barraDeBotoes.TIPO = "yui";
i3GEO.barraDeBotoes.AUTOALTURA = false;

i3GEO.barraDeBotoes.PERMITEFECHAR = false;
i3GEO.barraDeBotoes.PERMITEDESLOCAR = false;
i3GEO.barraDeBotoes.AUTO = true;
i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja";
i3GEO.Interface.BARRABOTOESLEFT = 50;
i3GEO.Interface.BARRABOTOESTOP = 10;

i3GEO.idioma.IDSELETOR = "seletorIdiomas";

i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true;
OpenLayers.ImgPath = "../pacotes/openlayers/img/";
var ims = new OpenLayers.Layer.ArcGIS93Rest(
	"ESRI Imagery World 2D",
    "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export",
	{},
	{isBaseLayer:true,visibility:false}
);
var wsm = new OpenLayers.Layer.ArcGIS93Rest(
	"ESRI World Street Map",
    "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export",
	{},
	{isBaseLayer:true,visibility:false}
);
var bra = new OpenLayers.Layer.WMS(
	"Base carto MMA",
    "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
	{layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
	{isBaseLayer:true,visibility:false}
);

i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ims,wsm,bra];
i3GEO.inicia();
</script>
</body>
</html>