openlayers_t.htm 7.47 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">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no;">
<meta name="HandheldFriendly" content="yes" />
<meta name="MobileOptimized" content="width" />
<meta name="apple-mobile-web-app-capable" content="yes">
<title>i3GEO - OpenLayers</title>
<style>
.listaMenuTitulo{
	font-size: 13px;
	text-align: left;
	margin-left: 5px;
	margin-top: 6px;
}
.listaMenuItem{
	font-size:11px;
	text-align: left;
	margin-left:15px;
	margin-top: 6px;
}
</style>
</head>
<body id="i3geo" >
<table id='mst' summary="" style='display:none;' cellspacing='0'>
	<tr style="border:0px">
		<td id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td>
	</tr>
	<tr>
		<td style=text-align:center; >
			<div style="top:0px;cursor:pointer;border-bottom: 1px solid #A3A3A3">
				<div id=guia4 class=guia >Legenda</div>
				<div id=guia1 class=guia >Camadas</div>
				<div id=guia2 class=guia >Cat&aacute;logo</div>
				<div id=guia6 class=guia >+</div>
			</div>
		</td>
	</tr>
	<tr>
		<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>
</table>
<div id='guia4obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
	<div id='legenda' style='text-align:left'></div>
</div>
<div id='guia1obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
	<div style='left:5px;top:10px;' id=buscaRapida ></div>
	<div id=listaPropriedades style='top:15px;' ></div>
	<div id=listaLayersBase style='top:15px;'></div>
	<div id=listaTemas style='top:15px;'></div>
	<br><br>
</div>
<div id='guia2obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; ><img alt="" src="../imagens/branco.gif" width=248 /></div>

<div id='guia6obj' style=padding-left:2px;display:none;position:absolute;top:34px;left:100px;background-color:white;width:300px; >
	<div id=i3GEOcompartilhar style="text-align:center;border-top:0px solid rgb(250,250,250);padding-top:1px;" ></div><br>
	<table><tr><td>Escala 1:</td><td><div id=escala style="text-align:left;width:100px;display:inline-table;" ></div></td></tr></table>
	<div id=menuLista style='text-align:left'></div>
</div>

<div id=seletorIdiomas style="position:absolute;top:15px;left:5px;z-index:20000" ></div>
<script src="../classesjs/i3geo5.js"></script>
<!--<script src="../pacotes/openlayers/OpenLayers29.js.php"></script>-->
<script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
<script>
/*
Interface Openlayers para tablets

Abre o i3geo com todas as suas funcionalidades e interface de navega&ccedil;&atilde;o controlada pela API Openlayers adaptada para dispositivos do tipo tablet.

File: i3geo/interface/openlayers_t.htm

Exemplo:

http://<host>/i3geo/ms_criamapa.php

http://<host>/i3geo/interface/openlayers_T.htm

http://<host>/i3geo

Para definir quais bot&otilde;es das barras de ferramentas ser&atilde;o inclu&iacute;dos no mapa, veja: <classe_barradebotoes.js> i3GEO.barraDeBotoes.INCLUIBOTAO

*/
/*
	Indica a localiza&ccedil;&atilde;o correta do i3geo.

	&Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados.

	Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente com base na tag javascript
*/
//i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
/*
Para outras configura&ccedil;&otilde;es, veja i3geo/classesjs/classe_configura.js

exemplo

i3GEO.configura.autotamanho = true;
*/

i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
i3GEO.configura.autotamanho = false;
i3GEO.Interface.ATUAL = "openlayers";
i3GEO.Interface.IDCORPO = "contemImg";
i3GEO.Interface.ALTTABLET = "";
//ativa ou desativa o balao de info ao clicar no mapa
i3GEO.eventos.cliquePerm.ativo = true;
//
i3GEO.Interface.openlayers.GADGETS = {
	PanZoomBar:false,
	PanZoom:false,
	LayerSwitcher:false,
	ScaleLine:false,
	OverviewMap:false
};
i3GEO.Interface.openlayers.TILES = true;

i3GEO.barraDeBotoes.INCLUIBOTAO = {
	zoomli: true,
	mede: true,
	area: true,
	imprimir: true,
	zoomiauto: true,
	zoomoauto: true,
	pan: true,
	zoomtot:true,
	identifica: true,
	identificaBalao: false,
	reinicia: false,
	exten: false,
	selecao: true,
	referencia: true,
	inserexy: false,
	textofid: false,
	google: true,
	buscafotos: false,
	wiki: false,
	metar: false,
	lentei: false,
	confluence: false,
	inseregrafico: false,
	v3d: false
};
i3GEO.Interface.TABLET = true;
i3GEO.configura.diminuiyN = 35;
/*
Após a cria&ccedil;&atilde;o, &eacute; criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers.
Vc pode usar i3geoOL para aplicar os m&eacute;todos e verificar as propriedades da API do OpenLayers
*/
i3GEO.cria();
/*
	Inicializa o mapa
*/
i3GEO.barraDeBotoes.TIPO = "olhodepeixe";
//ajusta o deslocamento da barra de bot&otilde;es
i3GEO.barraDeBotoes.OFFSET = -3;

i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";

i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true;
i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS = true;

i3GEO.guias.TIPO = "tablet";
i3GEO.guias.CONFIGURA.temas.titulo = $trad("t1");
i3GEO.idioma.IDSELETOR = "seletorIdiomas";
i3GEO.configura.mapaRefDisplay = "none";
i3GEO.mapa.AUTORESIZE = true;
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true;
//
//esta &eacute; uma vari&aacute;vel interna do OpenLayers que define o endere&ccedil;o do diretório onde est&atilde;o as imagens usadas nos &iacute;cones
//
OpenLayers.ImgPath = "../pacotes/openlayers/img/";
//
//adiciona camadas que podem ser ativadas como fundo do mapa
//

(function(){
	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}
	);
	var osm = new OpenLayers.Layer.WMS(
		"Open Street Map",
		"http://full.wms.geofabrik.de/std/demo_key",
		{layers:""},
		{isBaseLayer:true,visibility:false}
	);
	i3GEO.Interface.openlayers.LAYERSADICIONAIS = [bra,osm];
})();
//
//define a funcao que sera executada ao clicar no mapa
//default (balao do tipo etiqueta)
i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoTip];
//alternativo (janela de identificacao
//i3GEO.eventos.MOUSECLIQUEPERM = [i3GEO.configura.funcaoIdentifica];
//

//
//substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas.
//
i3GEO.janela.ativaAlerta();
//
//inicia o mapa
//
i3GEO.inicia();
/*
YAHOO.util.Event.addListener(document.body, "click", YAHOO.util.Event.preventDefault);
YAHOO.util.Event.addFocusListener(document.body, YAHOO.util.Event.preventDefault);
*/
</script>
</body>
</html>