Commit 25deb9a40e72c5853b4291e7aa4102d93794ec54

Authored by Edmar Moretti
1 parent 58d50d21

--no commit message

Showing 1 changed file with 167 additions and 0 deletions   Show diff stats
exemplos/cursodsv21.htm 0 → 100644
... ... @@ -0,0 +1,167 @@
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2 +<html>
  3 +<head>
  4 +<meta http-equiv="Category" content="i3Geo Mapa interativo MMA geoprocessamento sig mobile">
  5 +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
  6 +<title>i3GEO - OpenLayers</title>
  7 +<script src="../classesjs/i3geonaocompacto.js"></script>
  8 +<script src="../pacotes/openlayers/OpenLayers2131.js"></script>
  9 +<link rel="stylesheet" type="text/css" href="../css/black.css">
  10 +</head>
  11 +<body style='background:white;' class=yui-skin-sam >
  12 +<div style="left:150px;top:100px">
  13 + <div id="menuSuspenso" style="width:750px;left:50px;">
  14 + </div>
  15 +
  16 + <div id=i3geo >
  17 + <div id=corpoMapa style="width:750px;height:400px;background-image:url('../imagens/i3geo1bw.jpg');">
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +<style>
  23 +#menuSuspenso .bd{
  24 + background: black;
  25 +}
  26 +#barraDeIcones {
  27 + border: 0px solid black;
  28 + border-radius: 4px;
  29 + height: 50px;
  30 + margin: auto;
  31 + padding: 1px;
  32 + position: relative;
  33 + top: -60px;
  34 + width: 510px;
  35 + z-index: 5000;
  36 + overflow: hidden;
  37 +}
  38 +
  39 +#barraDeIcones_mascara {
  40 + z-index: -1;
  41 + opacity: 0.4;
  42 + display: block;
  43 + position: absolute;
  44 + width: 100%;
  45 + height: 100%;
  46 + background: none repeat scroll 0 0 black;
  47 + border-radius: 4px;
  48 + overflow: hidden;
  49 +}
  50 +</style>
  51 +<script>
  52 +/************
  53 +A barra de botoes e controlada por diversos parametros.
  54 +
  55 +A lista de botoes e definido no objeto:
  56 +
  57 + i3GEO.barraDeBotoes.INCLUIBOTAO
  58 +
  59 +Determinados parametros atuam sobre tipos diferentes de barras.
  60 +
  61 +Mais detalhes em:
  62 +
  63 + http://localhost/i3geo/documentacao/files/classesjs/classe_barradebotoes-js.html
  64 +
  65 +Nesse exemplo um novo botao e adicionado a barra
  66 +
  67 +************/
  68 +i3GEO.idioma.MOSTRASELETOR = false; //para nao mostrar as bandeiras de escolha do idioma
  69 +i3GEO.configura.mapaRefDisplay = "none";//nao mostra o mapa de referencia
  70 +//parametros da interface OpenLayers
  71 +i3GEO.Interface.openlayers.GADGETS = {
  72 + PanZoomBar : false,
  73 + PanZoom : false,
  74 + LayerSwitcher : false,
  75 + ScaleLine : true,
  76 + OverviewMap : false
  77 +};
  78 +//parametros para o menu
  79 +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso = {
  80 + permiteLogin: true,
  81 + marcadores: true,
  82 + idhtml:"menuSuspenso",
  83 + deslocaEsquerda:0,
  84 + parametrosYUI: {iframe:false,autosubmenudisplay: false, showdelay: 200, hidedelay: 500, lazyload: false}
  85 + };
  86 +
  87 +i3GEO.configura.oMenuData = {
  88 + menu:[
  89 + {nome:$trad("s1"),id:"ajudaMenu"}
  90 + ],
  91 + submenus:{
  92 + "ajudaMenu": [
  93 + { id:"omenudataAjudamenu9",text: $trad("x68"), url: "javascript:i3GEO.janela.tempoMsg(i3GEO.parametros.mensageminicia)" },
  94 + { id:"omenudataAjudamenu2",text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" },
  95 + { id:"omenudataAjudamenu3",text: $trad("u4a"), url: "javascript:i3GEO.ajuda.abreDoc('/documentacao/manual-i3geo-6_0-pt.pdf')" },
  96 + { id:"omenudataAjudamenu4",text: $trad("u4"), url: "http://www.softwarepublico.gov.br/dotlrn/clubs/i3geo/file-storage/index?folder%5fid=22667525", target:"_blank" },
  97 + { id:"omenudataAjudamenu5",text: $trad("u5a"), url: "http://www.softwarepublico.gov.br", target:"_blank" },
  98 + { id:"omenudataAjudamenu1",text: $trad("x67"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332", target:"_blank" },
  99 + { id:"omenudataAjudamenu7",text: $trad("u5b"), url: "javascript:i3GEO.ajuda.abreDoc('/ajuda_usuario.php')"},
  100 + { id:"omenudataAjudamenu8",text: $trad("u5c"), url: "javascript:i3GEO.ajuda.redesSociais()" }
  101 + ]
  102 + }
  103 +};
  104 +
  105 +i3GEO.cria();
  106 +//
  107 +//parametros da barra de botoes
  108 +//
  109 +i3GEO.barraDeBotoes.TIPO = "emlinha";
  110 +//altera um dos icones de botoes ja existentes
  111 +i3GEO.barraDeBotoes.ICONEBOTAO.abreJanelaLegenda = "/imagens/gisicons/legend-add.png";
  112 +//adiciona um botao novo com suas funcoes especificas
  113 +i3GEO.barraDeBotoes.adicionaBotao(
  114 + {
  115 + iddiv:"meubotao",
  116 + tipo:"",
  117 + dica:"Meu Bot&atilde;o",
  118 + titulo: "Meu Bot&atilde;o",
  119 + icone: "/imagens/oxygen/22x22/user-online.png",
  120 + funcaoonclick:function(){
  121 + alert("Meu novo botao com ID = meubotao");
  122 + }
  123 + }
  124 +);
  125 +//define quais os botoes serao mostrados
  126 +i3GEO.barraDeBotoes.INCLUIBOTAO = {
  127 + meubotao : true, //botao novo
  128 + abreJanelaLegenda: true,
  129 + localizar: true,
  130 + zoomanterior: true,
  131 + zoomli: true,
  132 + zoomproximo: true,
  133 + zoomiauto: false,
  134 + zoomoauto: false,
  135 + pan: false,
  136 + zoomtot: false,
  137 + identifica: false,
  138 + identificaBalao: false,
  139 + mede: false,
  140 + area: false,
  141 + selecao: false,
  142 + barraedicao: false,
  143 + imprimir: false,
  144 + google: false,
  145 + referencia: false,
  146 + exten: false,
  147 + inserexy: false,
  148 + textofid: false,
  149 + reinicia: false,
  150 + buscafotos: false,
  151 + wiki: false,
  152 + metar: false,
  153 + lentei: false,
  154 + confluence: false,
  155 + inseregrafico: false,
  156 + v3d: false
  157 +};
  158 +i3GEO.finaliza = function(){
  159 + //cria o div com id "barraDeIcones" e insere a barra
  160 + //
  161 + i3GEO.barraDeBotoes.inicializaBarra("","",false,0,0,"barraDeIcones");
  162 +};
  163 +i3GEO.inicia();
  164 +
  165 +</script>
  166 +</body>
  167 +</html>
... ...