Commit 67a5d20400989532808e04c449e686ac6d6e98da

Authored by Edmar Moretti
1 parent 751a2370

Novo exemplo de customização

exemplos/cursodsv22.htm 0 → 100755
... ... @@ -0,0 +1,173 @@
  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 +
  51 +#barraDeIcones img {
  52 + margin-left: 10px;
  53 +}
  54 +</style>
  55 +<script>
  56 +/************
  57 +A classe i3GEO.php possui varias funcoes que executam operacoes em um mapa via AJAX.
  58 +
  59 +Essas operacoes retornam um objeto JSON que pode ser tratada em uma funcao de retorno.
  60 +
  61 +Nesse exemplo, ao clicar no primeiro botao da barra de botoes, e disparada uma
  62 +requisicao que ira retornar a lista de temas do tipo poligonal existente no mapa.
  63 +
  64 +Muitas das operacoes sao executadas por ferramentas especificas. Nesses casos, normalmente
  65 +o programa PHP que executa a tarefa fica armazenado na propria pasta da ferramenta,
  66 +como no exemplo i3geo/ferramentas/buffer/exec.php
  67 +
  68 +
  69 +************/
  70 +i3GEO.idioma.MOSTRASELETOR = false; //para nao mostrar as bandeiras de escolha do idioma
  71 +i3GEO.configura.mapaRefDisplay = "none";//nao mostra o mapa de referencia
  72 +//parametros da interface OpenLayers
  73 +i3GEO.Interface.openlayers.GADGETS = {
  74 + PanZoomBar : false,
  75 + PanZoom : false,
  76 + LayerSwitcher : false,
  77 + ScaleLine : true,
  78 + OverviewMap : false
  79 +};
  80 +//parametros para o menu
  81 +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso = {
  82 + permiteLogin: true,
  83 + marcadores: true,
  84 + idhtml:"menuSuspenso",
  85 + deslocaEsquerda:0,
  86 + parametrosYUI: {iframe:false,autosubmenudisplay: false, showdelay: 200, hidedelay: 500, lazyload: false}
  87 + };
  88 +
  89 +i3GEO.configura.oMenuData = {
  90 + menu:[
  91 + {nome:$trad("s1"),id:"ajudaMenu"}
  92 + ],
  93 + submenus:{
  94 + "ajudaMenu": [
  95 + { id:"omenudataAjudamenu9",text: $trad("x68"), url: "javascript:i3GEO.janela.tempoMsg(i3GEO.parametros.mensageminicia)" },
  96 + { id:"omenudataAjudamenu2",text: $trad("u2"), url: "javascript:i3GEO.ajuda.abreDoc()" },
  97 + { id:"omenudataAjudamenu3",text: $trad("u4a"), url: "javascript:i3GEO.ajuda.abreDoc('/documentacao/manual-i3geo-6_0-pt.pdf')" },
  98 + { id:"omenudataAjudamenu4",text: $trad("u4"), url: "http://www.softwarepublico.gov.br/dotlrn/clubs/i3geo/file-storage/index?folder%5fid=22667525", target:"_blank" },
  99 + { id:"omenudataAjudamenu5",text: $trad("u5a"), url: "http://www.softwarepublico.gov.br", target:"_blank" },
  100 + { id:"omenudataAjudamenu1",text: $trad("x67"), url: "http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332", target:"_blank" },
  101 + { id:"omenudataAjudamenu7",text: $trad("u5b"), url: "javascript:i3GEO.ajuda.abreDoc('/ajuda_usuario.php')"},
  102 + { id:"omenudataAjudamenu8",text: $trad("u5c"), url: "javascript:i3GEO.ajuda.redesSociais()" }
  103 + ]
  104 + }
  105 +};
  106 +
  107 +i3GEO.cria();
  108 +//
  109 +//parametros da barra de botoes
  110 +//
  111 +i3GEO.barraDeBotoes.TIPO = "emlinha";
  112 +//altera um dos icones de botoes ja existentes
  113 +i3GEO.barraDeBotoes.ICONEBOTAO.abreJanelaLegenda = "/imagens/gisicons/legend-add.png";
  114 +//adiciona um botao novo com suas funcoes especificas
  115 +//aciona funcao ajax definida em i3GEO.php
  116 +i3GEO.barraDeBotoes.adicionaBotao(
  117 + {
  118 + iddiv:"meubotao",
  119 + tipo:"",
  120 + dica:"Meu Bot&atilde;o",
  121 + titulo: "Meu Bot&atilde;o",
  122 + icone: "/imagens/oxygen/22x22/user-online.png",
  123 + funcaoonclick:function(){
  124 + var temp = function(retorno){
  125 + alert(retorno.data);
  126 + }
  127 + i3GEO.php.listaTemas(temp,"polygon");
  128 + }
  129 + }
  130 +);
  131 +//define quais os botoes serao mostrados
  132 +i3GEO.barraDeBotoes.INCLUIBOTAO = {
  133 + meubotao : true, //botao novo
  134 + abreJanelaLegenda: true,
  135 + localizar: true,
  136 + zoomanterior: true,
  137 + zoomli: true,
  138 + zoomproximo: true,
  139 + zoomiauto: false,
  140 + zoomoauto: false,
  141 + pan: false,
  142 + zoomtot: false,
  143 + identifica: false,
  144 + identificaBalao: false,
  145 + mede: false,
  146 + area: false,
  147 + selecao: false,
  148 + barraedicao: false,
  149 + imprimir: false,
  150 + google: false,
  151 + referencia: false,
  152 + exten: false,
  153 + inserexy: false,
  154 + textofid: false,
  155 + reinicia: false,
  156 + buscafotos: false,
  157 + wiki: false,
  158 + metar: false,
  159 + lentei: false,
  160 + confluence: false,
  161 + inseregrafico: false,
  162 + v3d: false
  163 +};
  164 +i3GEO.finaliza = function(){
  165 + //cria o div com id "barraDeIcones" e insere a barra
  166 + //
  167 + i3GEO.barraDeBotoes.inicializaBarra("","",false,0,0,"barraDeIcones");
  168 +};
  169 +i3GEO.inicia();
  170 +
  171 +</script>
  172 +</body>
  173 +</html>
... ...
ferramentas/atalhosedicao/template_mst.html
  1 +<style>
  2 +.yui-button#i3GEOFatalhosedicaoSalva button {
  3 + background: url(../imagens/oxygen/16x16/document-save.png) 5% 50% no-repeat;
  4 +}
  5 +.yui-button#i3GEOFatalhosedicaoLegenda button {
  6 + background: url(../imagens/oxygen/16x16/format-list-unordered.png) 5% 50% no-repeat;
  7 +}
  8 +.yui-button#i3GEOFatalhosedicaoTabela button {
  9 + background: url(../imagens/oxygen/16x16/view-form-table.png) 5% 50% no-repeat;
  10 +}
  11 +.yui-button#i3GEOFatalhosedicaoTexto button {
  12 + background: url(../imagens/oxygen/16x16/draw-text.png) 5% 50% no-repeat;
  13 +}
  14 +.yui-button#i3GEOFatalhosedicaoEtiqueta button {
  15 + background: url(../imagens/oxygen/16x16/feed-subscribe.png) 5% 50% no-repeat;
  16 +}
  17 +.yui-button#i3GEOFatalhosedicaoFiltro button {
  18 + background: url(../imagens/oxygen/16x16/view-filter.png) 5% 50% no-repeat;
  19 +}
  20 +</style>
1 21 <div style='margin-left: 5px'>
2 22 <p class='paragrafo'>{{{edicao}}}</p>
3 23 <p class='paragrafo'>
... ... @@ -17,5 +37,4 @@
17 37 <input id='i3GEOFatalhosedicaoOpacidade' type='text' value='' />
18 38 </div>
19 39 <input id='i3GEOFatalhosedicaoOpacidadeB' type='button' value='{{{aplicar}}}' />
20   -
21 40 </div>
22 41 \ No newline at end of file
... ...
ferramentas/buffer/exec.php
... ... @@ -21,7 +21,7 @@ Salva o mapa acrescentando um novo layer com o buffer.
21 21 $m = new Analise($map_file,$tema,$locaplic,$ext);
22 22 $retorno = $m->criaBuffer($distancia,$locaplic,$unir,$wkt,$multiplicar,$itemdistancia);
23 23 $m->salva();
24   - $_SESSION["contadorsalva"]++;
  24 + //$_SESSION["contadorsalva"]++;
25 25 //limpa selecao
26 26 $qyfile = str_replace(".map",".qy",$map_file);
27 27 if (file_exists($qyfile))
... ...