Commit 9a4188ebe81583d9a32246b3fb3f1ad3df5829d9

Authored by Edmar Moretti
1 parent 51c42513

Opção para desativar a legenda de um tema. Correções para o funcionamento no IE.…

… Novo esquema para mostrar help sobre os botões da barra de ferramentas
Showing 61 changed files with 650 additions and 203 deletions   Show diff stats
aplicmap/geral1.map
... ... @@ -120,7 +120,7 @@ MAP
120 120 EXTENT -75.5728 -37.4751 -30.525 7.57273#-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401
121 121 #edite o caminho se a aplicacao for movida de lugar
122 122 IMAGE "/opt/www/html/i3geo/imagens/referencia1.png"
123   - OUTLINECOLOR 120 220 220
  123 + OUTLINECOLOR -1 -1 -1
124 124 SIZE 150 150
125 125 STATUS off
126 126 MARKER "ref"
... ...
aplicmap/geral1windows.map
... ... @@ -114,7 +114,7 @@ MAP
114 114 EXTENT -75.5728 -37.4751 -30.525 7.57273#-79.8713331401 -41.7736536401 -26.2264448599 11.8712346401
115 115 #edite o caminho se a aplicacao for movida de lugar
116 116 IMAGE "c:/ms4w/apache/htdocs/i3geo/imagens/referencia1.png"
117   - OUTLINECOLOR 120 220 220
  117 + OUTLINECOLOR -1 -1 -1
118 118 SIZE 150 150
119 119 STATUS off
120 120 MARKER "ref"
... ...
aplicmap/googlemaps.phtml
... ... @@ -69,22 +69,21 @@ include_once("../ms_configura.php");
69 69 </tr>
70 70 <tr>
71 71 <td class=tdbranca >
72   - <div id=visual ></div>
  72 + <div id="seletorIdiomas" ></div>
73 73 <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div>
74 74 </td>
75 75 <td class=tdbranca >
76 76 <table width=100% ><tr>
77   - <td class=tdbranca ></td>
  77 + <td class=tdbranca >
  78 + </td>
78 79 <td class=tdbranca style=text-align:center >
79   - <div id=localizarxy >
80   - </div>
  80 + <div id=escala ></div>
81 81 </td>
82 82 <td class=tdbranca >
83 83 <div id=inserirKml ></div>
84 84 </td>
85 85 <td class=tdbranca >
86   - <!-- aqui será incluída a escala numérica -->
87   - <div id=escala ></div>
  86 + <div id=localizarxy ></div>
88 87 </td>
89 88 </tr>
90 89 <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:10px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr>
... ...
classesjs/classe_arvoredecamadas.js
... ... @@ -702,7 +702,7 @@ i3GEO.arvoreDeCamadas = {
702 702 }
703 703 if(i3GEO.arvoreDeCamadas.OPCOESTEMAS === true){
704 704 conteudo = $trad("t18a");
705   - d = {html:conteudo,idopcoes:ltema.name};
  705 + d = {html:conteudo,idopcoes:ltema.name,identifica:ltema.identifica};
706 706 opcoesNode = new YAHOO.widget.HTMLNode(d, node, false,true);
707 707 opcoesNode.enableHighlight = false;
708 708 opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraOpcoes, 1);
... ... @@ -728,7 +728,7 @@ i3GEO.arvoreDeCamadas = {
728 728 mostraOpcoes: function(node){
729 729 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraOpcoes()");}
730 730 //YAHOO.log("Mostrando as opções da árvore de camadas", "i3geo");
731   - var idtema,ltema,tnome,d,n;
  731 + var idtema,ltema,tnome,d,n,temp;
732 732 idtema = node.data.idopcoes;
733 733 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
734 734 if(navm)
... ... @@ -752,13 +752,19 @@ i3GEO.arvoreDeCamadas = {
752 752 if(i3GEO.Interface.ATUAL !== "flamingo")
753 753 {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node);}
754 754 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t24"),$trad("t25"),'i3GEO.tema.dialogo.toponimia(\"'+ltema.name+'\")',node);
755   - i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node);
  755 + if(ltema.identifica == "sim" || ltema.identifica == "SIM" || ltema.identifica == "")
  756 + {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node);}
756 757 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node);
757 758 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node);
758 759 if(i3GEO.parametros.versaoms > 4){
759 760 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t37"),$trad("t37"),'i3GEO.tema.dialogo.graficotema(\"'+ltema.name+'\")',node);
760 761 }
761 762 }
  763 + temp = $trad("p18");
  764 + if(ltema.classe.toLowerCase() == "nao")
  765 + {temp = $trad("p17");}
  766 + i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("p19"),temp,'i3GEO.tema.invertestatuslegenda(\"'+ltema.name+'\")',node);
  767 +
762 768 if (ltema.type < 4){
763 769 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node);
764 770 }
... ...
classesjs/classe_arvoredetemas.js
... ... @@ -710,7 +710,7 @@ i3GEO.arvoreDeTemas = {
710 710 if(navm){insp += "style='top:0px;'";}
711 711 else
712 712 {insp += "style='top:4px;'";}
713   - insp += " title='"+$trad("a1")+"' src='"+i3GEO.util.$im("branco.gif")+"' onclick='i3GEO.arvoreDeTemas.buscaTema2(document.getElementById(\"i3geo_buscatema\").value)' style='cursor:pointer;top:2px;position:relative;' /></td>";
  713 + insp += " src='"+i3GEO.util.$im("branco.gif")+"' onclick='i3GEO.arvoreDeTemas.buscaTema2(document.getElementById(\"i3geo_buscatema\").value)' /></td>";
714 714 insp += "</tr></table>&nbsp;";
715 715 tempNode = new YAHOO.widget.HTMLNode(
716 716 {html:insp},
... ...
classesjs/classe_barradebotoes.js
... ... @@ -41,6 +41,18 @@ Veja também classe_interface.js (i3GEO.Interface) que possuí parâmetros que perm
41 41 */
42 42 i3GEO.barraDeBotoes = {
43 43 /*
  44 + Propriedade: AJUDA
  45 +
  46 + Mostra um texto de ajuda colado à barra de botões
  47 +
  48 + Tipo:
  49 + {boolean}
  50 +
  51 + Default:
  52 + {true}
  53 + */
  54 + AJUDA: true,
  55 + /*
44 56 Propriedade: SOICONES
45 57  
46 58 Esconde as bordas das barras e o fundo, mostrando apenas os ícones
... ... @@ -428,8 +440,8 @@ i3GEO.barraDeBotoes = {
428 440 if(l[b].conteudo)
429 441 {eval('$i(l[b].iddiv).innerHTML = "'+l[b].conteudo+'"');}
430 442 if(l[b].dica){
431   - eval('$i("'+l[b].iddiv+'").onmouseover = function(){i3GEO.ajuda.mostraJanela("'+l[b].dica+'","");}');
432   - eval('$i("'+l[b].iddiv+'").onmouseout = function(){i3GEO.ajuda.mostraJanela("");};');
  443 + eval('$i("'+l[b].iddiv+'").onmouseover = function(){i3GEO.barraDeBotoes.mostraJanela(this,"'+l[b].dica+'","");}');
  444 + eval('$i("'+l[b].iddiv+'").onmouseout = function(){i3GEO.barraDeBotoes.mostraJanela(this,"");};');
433 445 }
434 446 if(l[b].funcaoonclick){
435 447 $i(l[b].iddiv).onclick = l[b].funcaoonclick;
... ... @@ -849,6 +861,40 @@ i3GEO.barraDeBotoes = {
849 861 $i(id+"_c").style.visibility = "hidden";
850 862 }
851 863 }
  864 + },
  865 + mostraJanela: function(objeto,mensagem){
  866 + var divmensagem = $i("divMensagemBarraDeBotoes"),
  867 + pos = YAHOO.util.Dom.getXY(objeto);
  868 + if(i3GEO.barraDeBotoes.AJUDA == false || $i("janelaMenTexto")){
  869 + i3GEO.ajuda.mostraJanela(mensagem);
  870 + i3GEO.barraDeBotoes.escondeJanelaAjuda();
  871 + return;
  872 + }
  873 + if(!divmensagem){
  874 + divmensagem = document.createElement("div");
  875 + divmensagem.id = "divMensagemBarraDeBotoes";
  876 + divmensagem.style.border = "0px solid rgb(120 120 120)";
  877 + divmensagem.style.position = "absolute";
  878 + if($i("i3geo"))
  879 + {$i("i3geo").appendChild(divmensagem);}
  880 + else
  881 + {document.body.appendChild(divmensagem);}
  882 + divmensagem.innerHTML = "<table style='z-index:8000' ><tr><td id='imgMensagemBarraDeBotoes' style='background:none;padding-top:2px;padding-right:3px;vertical-align:top'><img src='"+$im("left.png")+"' ></td><td style='text-align:left;border-left:1px solid rgb(210,210,210)'><span style='text-align:left;cursor:pointer;color:blue;' onclick='javascript:i3GEO.barraDeBotoes.AJUDA = false;'>parar</span><br><div style='vertical-align:middle;text-align:left;width:250px;border: 0px solid black;border-left:1px;' id='divMensagemBarraDeBotoesCorpo'></div></td></tr></table>";
  883 + }
  884 + if(mensagem != ""){
  885 + divmensagem.style.left = parseInt(YAHOO.util.Dom.getStyle(objeto,"width"),10)+pos[0]+10+"px";
  886 + divmensagem.style.top = pos[1]-2+(parseInt(YAHOO.util.Dom.getStyle(objeto,"height"),10) / 2)+"px";
  887 + $i("divMensagemBarraDeBotoesCorpo").innerHTML = mensagem;
  888 + divmensagem.style.display="block";
  889 + try{clearTimeout(timeAjudaBotoes);}catch(e){}
  890 + timeAjudaBotoes = setTimeout("i3GEO.barraDeBotoes.escondeJanelaAjuda()",3000);
  891 + }
  892 + },
  893 + escondeJanelaAjuda:function(){
  894 + var i = $i("divMensagemBarraDeBotoes");
  895 + if(i)
  896 + {i.style.display="none";}
  897 + clearTimeout(timeAjudaBotoes);
852 898 }
853 899 };
854 900 //YAHOO.log("carregou classe barradebotoes", "Classes i3geo");
855 901 \ No newline at end of file
... ...
classesjs/classe_calculo.js
... ... @@ -113,11 +113,10 @@ i3GEO.calculo = {
113 113 dd2tela: function (vx,vy,docmapa,ext,cellsize){
114 114 try{
115 115 var pos,latlng,xyn,dc,imgext,c,xy;
116   - if(i3GEO.Interface.ATUAL == "googlemaps"){
  116 + if(i3GEO.Interface.ATUAL == "googlemaps" && docmapa.id != "mapaReferencia"){
117 117 pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));
118 118 xyn = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(new google.maps.LatLng(vy,vx));
119 119 xy = [];
120   - console.info(xyn.x);
121 120 return [(xyn.x)+pos[0],(xyn.y)+pos[1]];
122 121 }
123 122 if(i3GEO.Interface.ATUAL == "openlayers" && docmapa.id != "mapaReferencia"){
... ... @@ -590,7 +589,8 @@ i3GEO.calculo = {
590 589 xyMax = i3GEO.calculo.dd2tela(rectbox[2],rectbox[3],documento,boxext,pixel);
591 590 w = xyMax[0]-xyMin[0];
592 591 h = xyMin[1]-xyMax[1];
593   - tl = i3GEO.calculo.dd2tela(rectbox[0],rectbox[3],documento,mapext,pixel);
  592 + tl = i3GEO.calculo.dd2tela(rectbox[0],rectbox[3],documento,mapext,pixel);
  593 +
594 594 pos = i3GEO.util.pegaPosicaoObjeto(documento);
595 595 t = tl[1] - pos[1];
596 596 l = tl[0] - pos[0];
... ...
classesjs/classe_configura.js
... ... @@ -471,7 +471,6 @@ i3GEO.configura = {
471 471 { text: "p8", url: "javascript:i3GEO.mapa.dialogo.queryMap()"},
472 472 { text: "p9", url: "javascript:i3GEO.mapa.dialogo.corFundo()"},
473 473 { text: "p10", url: "javascript:i3GEO.mapa.dialogo.gradeCoord()"},
474   - { text: "p11", url: "javascript:i3GEO.mapa.dialogo.template()"},
475 474 { text: "p12", url: "javascript:i3GEO.mapa.dialogo.autoredesenha()"}
476 475 ]
477 476 },
... ...
classesjs/classe_interface.js
... ... @@ -10,7 +10,7 @@ Licenca:
10 10  
11 11 GPL2
12 12  
13   -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
  13 +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
14 14  
15 15 Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
16 16 Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
... ... @@ -781,8 +781,8 @@ i3GEO.Interface = {
781 781 }
782 782 }
783 783 catch(e){}
784   - if(i3geoOL.getLayersByName("Fundo").length == 0 && fundoIsBase === true){
785   - layer = new OpenLayers.Layer.WMS( "Fundo", urlfundo,{map_imagetype:i3GEO.Interface.OUTPUTFORMAT},{ratio: 1,singleTile:true,isBaseLayer:true, opacity: 1,visibility:true});
  784 + if(i3geoOL.getLayersByName("Nenhum").length == 0 && fundoIsBase === true){
  785 + layer = new OpenLayers.Layer.WMS( "Nenhum", urlfundo,{map_imagetype:i3GEO.Interface.OUTPUTFORMAT},{ratio: 1,singleTile:true,isBaseLayer:true, opacity: 1,visibility:true});
786 786 i3geoOL.addLayer(layer);
787 787 }
788 788 opcoes = {
... ... @@ -909,7 +909,7 @@ i3GEO.Interface = {
909 909 },
910 910 ligaDesliga:function(obj){
911 911 var layers = i3geoOL.getLayersByName(obj.value),
912   - temp = function(){},
  912 + temp = function(){i3GEO.mapa.legendaHTML.atualiza();},
913 913 desligar = "",
914 914 ligar = "";
915 915 if(layers.length > 0){
... ... @@ -1159,7 +1159,10 @@ i3GEO.Interface = {
1159 1159 ret = pol.split(" ");
1160 1160 function montaMapa(retorno){
1161 1161 var pos, sw,ne,z,myMapType;
1162   - i3GeoMap = new google.maps.Map($i(i3GEO.Interface.IDMAPA),{scaleControl:true});
  1162 + try{
  1163 + i3GeoMap = new google.maps.Map($i(i3GEO.Interface.IDMAPA),{scaleControl:true});
  1164 + }
  1165 + catch(e){alert(e);return;}
1163 1166 //
1164 1167 //carrega o javascript que permite fazer o zoom por box
1165 1168 //
... ... @@ -1184,6 +1187,7 @@ i3GEO.Interface = {
1184 1187 i3GEO.gadgets.mostraCoordenadasUTM();
1185 1188 i3GEO.gadgets.mostraEscalaNumerica();
1186 1189 i3GEO.gadgets.mostraMenuSuspenso();
  1190 + i3GEO.idioma.mostraSeletor();
1187 1191 g_operacao = "";
1188 1192 g_tipoacao = "";
1189 1193 if(i3GEO.parametros.kmlurl !== "")
... ... @@ -1242,7 +1246,7 @@ i3GEO.Interface = {
1242 1246 google.maps.event.addListener(i3GeoMap, "tilesloaded", function() {
1243 1247 i3GEO.Interface.googlemaps.recalcPar();
1244 1248 });
1245   - google.maps.event.addListener(i3GeoMap, "zoom_changed", function() {
  1249 + google.maps.event.addListener(i3GeoMap, "bounds_changed", function() {
1246 1250 i3GEO.Interface.googlemaps.recalcPar();
1247 1251 g_operacao = "";
1248 1252 g_tipoacao = "";
... ... @@ -1329,7 +1333,7 @@ i3GEO.Interface = {
1329 1333 },
1330 1334 ligaDesliga:function(obj){
1331 1335 var indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(obj.value),
1332   - temp = function(){},
  1336 + temp = function(){i3GEO.mapa.legendaHTML.atualiza();},
1333 1337 desligar = "",
1334 1338 ligar = "";
1335 1339 //alert(indice+" "+obj.value)
... ... @@ -1382,11 +1386,10 @@ i3GEO.Interface = {
1382 1386 escalaAtual = i3GEO.parametros.mapscale;
1383 1387 g_operacao = "";
1384 1388 g_tipoacao = "";
1385   - sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,i3GEO.parametros.h));
1386   - ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(i3GEO.parametros.w,0));
  1389 + sw = i3GeoMap.getBounds().getSouthWest();
  1390 + ne = i3GeoMap.getBounds().getNorthEast();
1387 1391 i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat();
1388 1392 i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala();
1389   - //alert(i3GEO.parametros.mapscale)
1390 1393 sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,1));
1391 1394 ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(1,0));
1392 1395 i3GEO.parametros.pixelsize = sw.lng() - ne.lng();
... ...
classesjs/classe_janela.js
... ... @@ -42,6 +42,18 @@ As janelas são criadas por meio da biblioteca YUI
42 42 */
43 43 i3GEO.janela = {
44 44 /*
  45 + Propriedade: ESTILOABD
  46 +
  47 + Estilo que será aplicado ao elemento body da janela (class='bd')
  48 +
  49 + Tipo:
  50 + {String}
  51 +
  52 + Default:
  53 + {display:block;padding:5px 0 5px 0}
  54 + */
  55 + ESTILOBD: "display:block;padding:5px 0 5px 0",
  56 + /*
45 57 Propriedade: ESTILOAGUARDE
46 58  
47 59 Estilo da janela de aguarde
... ... @@ -211,7 +223,7 @@ i3GEO.janela = {
211 223 ins += texto;
212 224 if(funcaoMinimiza)
213 225 {ins += "<div id='"+id+"_minimizaCabecalho' class='container-minimiza' ></div>";}
214   - ins += '</div><div id="'+id+'_corpo" class="bd" style="display:block;padding:5px">';
  226 + ins += '</div><div id="'+id+'_corpo" class="bd" style="'+i3GEO.janela.ESTILOBD+'">';
215 227 if(wsrc !== "")
216 228 {ins += '<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>';}
217 229 ins += '</div>';
... ... @@ -235,10 +247,15 @@ i3GEO.janela = {
235 247 else{
236 248 if(waltura !== "auto")
237 249 {$i(id+'_corpo').style.height=parseInt(waltura,10);}
  250 + $i(id+'_corpo').style.width=parseInt(wlargura,10);
  251 + if(navm)
  252 + {$i(id+'_corpo').style.width=parseInt(wlargura,10)-2;}
  253 + /*
238 254 if(navn)
239 255 {$i(id+'_corpo').style.width=parseInt(wlargura,10)-10;}
240 256 else
241 257 {$i(id+'_corpo').style.width=parseInt(wlargura,10)-2;}
  258 + */
242 259 }
243 260 fix = false;
244 261 if(nx === "" || nx === "center")
... ... @@ -415,8 +432,8 @@ i3GEO.janela = {
415 432 {document.body.removeChild($i(id+"_c"));}
416 433 YAHOO.namespace("aguarde."+id);
417 434 pos = [0,0];
418   - if($i("corpoMapa"))
419   - {pos = YAHOO.util.Dom.getXY($i("corpoMapa"));}
  435 + if($i(i3GEO.Interface.IDCORPO))
  436 + {pos = YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO));}
420 437 else if ($i("contemImg"))
421 438 {pos = YAHOO.util.Dom.getXY($i("contemImg"));}
422 439 texto += "<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>";
... ... @@ -441,7 +458,7 @@ i3GEO.janela = {
441 458 {$i(id+"_mask").style.zIndex=5000;}
442 459 if($i(id+"_c")){
443 460 $i(id+"_c").style.zIndex=6000;
444   - $i(id+"_c").style.backgroundColor = "white";
  461 + $i(id+"_c").style.backgroundColor = "";
445 462 }
446 463  
447 464 //YAHOO.log("Fim abreAguarde", "janela");
... ... @@ -697,7 +714,10 @@ try{
697 714 nBodyBottomPadding = parseInt(Dom.getStyle(oBody, "paddingBottom"), 10);
698 715 nBodyOffset = nBodyBorderTopWidth + nBodyBorderBottomWidth + nBodyTopPadding + nBodyBottomPadding;
699 716 }
700   - me.cfg.setProperty("width", nStartWidth + "px");
  717 + //
  718 + //ajusta o tamanho do body no IE qd a janela é redimensionada
  719 + //
  720 + me.cfg.setProperty("width", nStartWidth + "px");
701 721 aStartPos = [Event.getPageX(e), Event.getPageY(e)];
702 722 };
703 723 this.ddResize.onDrag = function(e){
... ... @@ -706,9 +726,11 @@ try{
706 726 nOffsetY = aNewPos[1] - aStartPos[1],
707 727 nNewWidth = Math.max(nStartWidth + nOffsetX, 10),
708 728 nNewHeight = Math.max(nStartHeight + nOffsetY, 10),
709   - nBodyHeight = (nNewHeight - (oFooter.offsetHeight + oHeader.offsetHeight + nBodyOffset));
710   - me.cfg.setProperty("width", nNewWidth + "px");
711   - oBody.style.width = nNewWidth - nBodyOffset+"px";
  729 + nBodyHeight = (nNewHeight - (oFooter.offsetHeight + oHeader.offsetHeight + nBodyOffset));
  730 + me.cfg.setProperty("width", nNewWidth + "px");
  731 + if(navm)
  732 + {nNewWidth = nNewWidth - 2;}
  733 + oBody.style.width = nNewWidth+"px";
712 734 if (nBodyHeight < 0)
713 735 {nBodyHeight = 0;}
714 736 oBody.style.height = nBodyHeight + "px";
... ... @@ -717,6 +739,7 @@ try{
717 739 $i("wdocai").style.width = oBody.style.width;
718 740 }
719 741 };
  742 + this.ddResize.onMouseUp = this.ddResize.onDrag.call();
720 743 }
721 744 function onBeforeShow(){
722 745 initResizeFunctionality.call(this);
... ...
classesjs/classe_mapa.js
... ... @@ -256,7 +256,7 @@ i3GEO.mapa = {
256 256 /*
257 257 Function: atualiza
258 258  
259   - Atualiza a legenda do mapa que são utilizados para mostrar a legenda
  259 + Atualiza o elemento HTML do mapa utilizado para mostrar a legenda
260 260 */
261 261 atualiza: function(){
262 262 if(typeof(console) !== 'undefined'){console.info("i3GEO.mapa.legendaHTML.atualiza()");}
... ... @@ -648,24 +648,27 @@ i3GEO.mapa = {
648 648 nds = ds.length;
649 649 for(s=0;s<nds;s++){
650 650 for(r=0;r<ntips;r++){
651   - eval("var alias = ds[s]."+tips[r]+".alias");
652   - eval("var valor = ds[s]."+tips[r]+".valor");
653   - eval("var link = ds[s]."+tips[r]+".link");
654   - eval("var img = ds[s]."+tips[r]+".img");
655   - if (i3GEO.configura.tipotip === "completo" || i3GEO.configura.tipotip === "balao"){
656   - if(valor !== "" && link === "")
657   - {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " :" + valor + "</span><br>";}
658   - if(valor !== "" && link !== "")
659   - {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " : <a style='color:blue;cursor:pointer' target=_blanck href='"+link+"' >" + valor + "</a></span><br>";}
660   - if(img !== "")
661   - {ins += img+"<br>";}
662   - ins += "<nl>";
663   - mostra = true;
664   - }
665   - else{
666   - ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + valor + "</span><br>";
667   - mostra = true;
  651 + try{
  652 + eval("var alias = ds[s]."+tips[r]+".alias");
  653 + eval("var valor = ds[s]."+tips[r]+".valor");
  654 + eval("var link = ds[s]."+tips[r]+".link");
  655 + eval("var img = ds[s]."+tips[r]+".img");
  656 + if (i3GEO.configura.tipotip === "completo" || i3GEO.configura.tipotip === "balao"){
  657 + if(valor !== "" && link === "")
  658 + {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " :" + valor + "</span><br>";}
  659 + if(valor !== "" && link !== "")
  660 + {ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + alias + " : <a style='color:blue;cursor:pointer' target=_blanck href='"+link+"' >" + valor + "</a></span><br>";}
  661 + if(img !== "")
  662 + {ins += img+"<br>";}
  663 + ins += "<nl>";
  664 + mostra = true;
  665 + }
  666 + else{
  667 + ins += "<span class='tiptexto' style='text-align:left;font-size:8pt'>" + valor + "</span><br>";
  668 + mostra = true;
  669 + }
668 670 }
  671 + catch(e){}
669 672 }
670 673 }
671 674 }
... ... @@ -688,7 +691,6 @@ i3GEO.mapa = {
688 691 }
689 692 else{
690 693 if(i3GEO.Interface.ATUAL === "googleearth"){
691   - //res = '<div style="text-align:left;" >'+res+'</div>';
692 694 i3GEO.Interface.googleearth.balao(res,objposicaocursor.ddx,objposicaocursor.ddy);
693 695 }
694 696 else{
... ...
classesjs/classe_maparef.js
... ... @@ -11,7 +11,7 @@ Licenca:
11 11  
12 12 GPL2
13 13  
14   -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
  14 +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
15 15  
16 16 Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
17 17 Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
... ... @@ -212,6 +212,8 @@ i3GEO.maparef = {
212 212 $i("i3geo_winRef").style.border = "1px solid gray";
213 213 moveX = pos[0] + i3GEO.parametros.w + 153 - i3GEO.maparef.RIGHT - 300;
214 214 moveY = pos[1] + i3GEO.maparef.TOP;
  215 + if(i3GEO.Interface.ATUAL == "googlemaps")
  216 + {moveY += 30;}
215 217 YAHOO.janelaRef.xp.panel.moveTo(moveX,moveY);
216 218 escondeRef = function(){
217 219 YAHOO.util.Event.removeListener(YAHOO.janelaRef.xp.panel.close, "click");
... ... @@ -226,7 +228,6 @@ i3GEO.maparef = {
226 228 {YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove", atualizaLocalizarxy);}
227 229 }
228 230 }
229   - //YAHOO.log("Fim initJanelaRef", "i3geo");
230 231 if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.maparef.atualiza()") < 0)
231 232 {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.maparef.atualiza()");}
232 233 this.atualiza(true);
... ... @@ -353,6 +354,9 @@ i3GEO.maparef = {
353 354 if (navm){novoel.style.filter='alpha(opacity=40)';}
354 355 else{novoel.style.opacity= 0.4;}
355 356 $i("mapaReferencia").appendChild(novoel);
  357 + //
  358 + //aplica os eventos de movimentação sobre o box azul
  359 + //
356 360 boxrefdd = new YAHOO.util.DD("boxref");
357 361 //
358 362 //atualiza o mapa principal quando o box é modificado manualmente
... ...
classesjs/classe_php.js
... ... @@ -394,7 +394,7 @@ i3GEO.php = {
394 394 */
395 395 identificaunico: function(funcao,xy,tema,item){
396 396 i3GEO.php.verifica();
397   - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=identificaunico&xy="+xy+"&resolucao=5&tema="+tema+"&item="+item+"&g_sid="+i3GEO.configura.sid;
  397 + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=identificaunico&xy="+xy+"&resolucao=5&tema="+tema+"&item="+item+"&g_sid="+i3GEO.configura.sid+"&ext="+i3GEO.parametros.mapexten;
398 398 cpJSON.call(p,"identificaunico",funcao);
399 399 },
400 400 /*
... ... @@ -563,7 +563,7 @@ i3GEO.php = {
563 563 aplicaResolucao: function(funcao,resolucao){
564 564 i3GEO.php.verifica();
565 565 var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=crialente&resolucao="+resolucao+"&g_sid="+i3GEO.configura.sid+"&ext="+i3GEO.parametros.mapexten;
566   - cpJSON.call(p,"crialente",funcao);
  566 + cpJSON.call(p,"crialente",funcao);
567 567 },
568 568 /*
569 569 Function: geradestaque
... ... @@ -716,6 +716,16 @@ i3GEO.php = {
716 716 cpJSON.call(p,"limpasel",funcao);
717 717 },
718 718 /*
  719 + Function: invertestatuslegenda
  720 +
  721 + <INVERTESTATUSLEGENDA>
  722 + */
  723 + invertestatuslegenda: function(funcao,tema){
  724 + i3GEO.php.verifica();
  725 + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=invertestatuslegenda&tema="+tema+"&g_sid="+i3GEO.configura.sid;
  726 + cpJSON.call(p,"invertestatuslegenda",funcao);
  727 + },
  728 + /*
719 729 Function: mudatransp
720 730  
721 731 <MUDATRANSP>
... ... @@ -724,7 +734,7 @@ i3GEO.php = {
724 734 i3GEO.php.verifica();
725 735 var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudatransp&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid;
726 736 cpJSON.call(p,"mudatransp",funcao);
727   - },
  737 + },
728 738 /*
729 739 Function: mudanome
730 740  
... ...
classesjs/classe_tema.js
... ... @@ -236,6 +236,28 @@ i3GEO.tema = {
236 236 {alert("Valor não definido.");}
237 237 },
238 238 /*
  239 + Function: invertestatuslegenda
  240 +
  241 + Inverte o status atual do metadata CLASSE, permitindo esconder ou mostrar a legenda do tema
  242 +
  243 + Parametros:
  244 +
  245 + idtema - código do tema
  246 + */
  247 + invertestatuslegenda: function(idtema){
  248 + if(typeof(console) !== 'undefined'){console.info("i3GEO.tema.invertestatuslegenda()");}
  249 + alert("Essa opção afeta apenas a impressão do mapa");
  250 + i3GEO.mapa.ativaTema(idtema);
  251 + g_operacao = "transparencia";
  252 + var temp = function(retorno){
  253 + i3GEO.atualiza(retorno);
  254 + i3GEO.arvoreDeCamadas.atualiza();
  255 + };
  256 + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));
  257 + i3GEO.contadorAtualiza++;
  258 + i3GEO.php.invertestatuslegenda(temp,idtema);
  259 + },
  260 + /*
239 261 Function: mudanome
240 262  
241 263 Muda o nome de um tema
... ...
classesjs/classe_util.js
... ... @@ -897,16 +897,15 @@ i3GEO.util = {
897 897 novoel,
898 898 wdocaiframe,
899 899 fix = false,
900   - wlargura = "400",
901   - waltura = "240",
  900 + wlargura = "300",
  901 + waltura = "250",
902 902 wsrc = i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janela+"&elemento="+elemento+"&tipo="+tipo,
903 903 nx = "",
904 904 ny = "",
905 905 texto = "Cor",
906 906 id = "i3geo_janelaCor",
907 907 modal = true,
908   - classe = "hd",
909   - wlargura_ = "400px";
  908 + classe = "hd"
910 909 YAHOO.namespace("janelaCor.xp");
911 910 if ($i(id))
912 911 {YAHOO.janelaCor.xp.panel.destroy();}
... ... @@ -915,7 +914,7 @@ i3GEO.util = {
915 914 ins += texto;
916 915 ins += '</div><div id="i3geo_janelaCor_corpo" class="bd" style="padding:5px">';
917 916 if(wsrc !== "")
918   - {ins += '<iframe name="'+id+'i" id="i3geo_janelaCori" valign="top" style="border:0px white solid"></iframe>';}
  917 + {ins += '<iframe name="'+id+'i" id="i3geo_janelaCori" valign="top" style="height:230px,border:0px white solid"></iframe>';}
919 918 ins += '</div>';
920 919 novoel = document.createElement("div");
921 920 novoel.id = "i3geo_janelaCor";
... ... @@ -928,14 +927,14 @@ i3GEO.util = {
928 927 wdocaiframe = $i("i3geo_janelaCori");
929 928 if (wdocaiframe)
930 929 {
931   - temp = wdocaiframe.style;
932   - temp.width = parseInt(wlargura,10)-12;
933   - temp.height=waltura;
934 930 wdocaiframe.style.display = "block";
935 931 wdocaiframe.src = wsrc;
  932 + wdocaiframe.style.height = "250px";
  933 + wdocaiframe.style.width = "325px";
  934 + wdocaiframe.style.border = "0px solid white";
936 935 }
937 936 if(nx === "" || nx === "center"){fix = true;}
938   - YAHOO.janelaCor.xp.panel = new YAHOO.widget.ResizePanel(id, { zIndex:5000, modal:modal, width: wlargura_, fixedcenter: fix, constraintoviewport: false, visible: true, iframe:false} );
  937 + YAHOO.janelaCor.xp.panel = new YAHOO.widget.ResizePanel(id, { height:"300px",zIndex:5000, modal:modal, width: "350px", fixedcenter: fix, constraintoviewport: false, visible: true, iframe:false} );
939 938 YAHOO.janelaCor.xp.panel.render();
940 939 $i(id+'_cabecalho').className = classe;
941 940 },
... ... @@ -1834,13 +1833,14 @@ i3GEO.util = {
1834 1833 var ins = new Array(),
1835 1834 i,n,temp;
1836 1835 if (retorno.data !== undefined){
1837   -
1838 1836 ins.push("<table class=lista2 >");
1839   - ins.push("<tr><td><input size=2 style='cursor:pointer' name='"+prefixo+"EPSG' type=radio checked value='' /></td>");
  1837 + ins.push("<tr><td><input size=2 style='border:0px solid white;cursor:pointer' name='"+prefixo+"EPSG' type=radio checked value='' /></td>");
1840 1838 ins.push("<td>"+retorno.data[0].nome+"</td></tr>");
  1839 + ins.push("<tr><td><input size=2 style='border:0px solid white;cursor:pointer' name='"+prefixo+"EPSG' type=radio value='' /></td>");
  1840 + ins.push("<td>"+retorno.data[1].nome+"</td></tr>");
1841 1841 n = retorno.data.length;
1842   - for (i=1;i<n; i++){
1843   - ins.push("<tr><td><input size=2 style='cursor:pointer' name='"+prefixo+"EPSG' type=radio value='"+retorno.data[i].codigo+"' /></td>");
  1842 + for (i=2;i<n; i++){
  1843 + ins.push("<tr><td><input size=2 style='border:0px solid white;cursor:pointer' name='"+prefixo+"EPSG' type=radio value='"+retorno.data[i].codigo+"' /></td>");
1844 1844 ins.push("<td>"+retorno.data[i].nome+"</td></tr>");
1845 1845 }
1846 1846 ins.push("</table>");
... ...
classesjs/dicionario.js
... ... @@ -2,7 +2,7 @@ g_traducao = {
2 2 //texto da janela de mensagens
3 3 "p1": [
4 4 {
5   -pt:"O I3Geo &eacute; software livre! Para download clique <a href='http://mapas.mma.gov.br/download' target=blank >aqui</a>. <b><a href='http://"+window.location.host+"/i3geo/mobile/qrcode.htm' target=blank >Qrcode mobile</a></b>",
  5 +pt:"O i3Geo &eacute; software livre! Para download clique <a href='http://mapas.mma.gov.br/download' target=blank >aqui</a>. <b><a href='http://"+window.location.host+"/i3geo/mobile/qrcode.htm' target=blank >Qrcode mobile</a></b>",
6 6 en:"I3geo is a open source software! <a href='http://mapas.mma.gov.br/download' target=blank >Click</a> to download.",
7 7 es:"I3Geo es software libre. <a href='http://mapas.mma.gov.br/download' target=blank > Download</a>",
8 8 it:"I3geo è un software libero! <a href='http://mapas.mma.gov.br/download' target=blank >clicca qui </a> per il download."
... ... @@ -113,6 +113,27 @@ en:&quot;Base layers&quot;,
113 113 es:"Base layers",
114 114 it:"Base layers"
115 115 }],
  116 +"p17": [
  117 +{
  118 +pt: "Imprime legenda",
  119 +en:"Enable legend",
  120 +es:"Activar Subtitulo",
  121 +it:"Attiva legenda"
  122 +}],
  123 +"p18": [
  124 +{
  125 +pt: "Não imprime a legenda",
  126 +en:"Disable legend",
  127 +es:"Desactivar Subtitulo",
  128 +it:"Disattiva legenda"
  129 +}],
  130 +"p19": [
  131 +{
  132 +pt: "Ativa ou desativa a legenda de um tema na opção de impressão do mapa",
  133 +en:"Ativa ou desativa a legenda de um tema na opção de impressão do mapa",
  134 +es:"Ativa ou desativa a legenda de um tema na opção de impressão do mapa",
  135 +it:"Ativa ou desativa a legenda de um tema na opção de impressão do mapa"
  136 +}],
116 137 //itens do menu suspenso
117 138 "s1": [
118 139 {
... ... @@ -921,14 +942,14 @@ it:&quot;Inserisci le coordinate di un punto (X=longitudine e Y=latitudine) per indiv
921 942 }],
922 943 "d2":[
923 944 {
924   -pt:"Altera a escala do mapa ajustando-a para mostrar a mesma abrang&circ;ncia geogr&aacute;fica da inicializa&ccedil;&atilde;o.",
  945 +pt:"Altera a escala do mapa ajustando-a para mostrar a mesma abrang&ecirc;ncia geogr&aacute;fica da inicializa&ccedil;&atilde;o.",
925 946 en:"Change the scale of the map adjusting it to show the same initial geographical cover.",
926 947 es:"Modifica la escala del mapa ajust&aacute;ndola para mostrar la misma &aacute;rea geogr&aacute;fica inicial",
927 948 it:"Modificare la scala della mappa adeguandola per mostrare la stessa copertura geografica sin dall'inizializzazione"
928 949 }],
929 950 "d3":[
930 951 {
931   -pt:"Amplia o mapa - coloca o ponto clicado no centro da tela ou amplia a regi&atilde;o indicada por um ret&acirc;ngulo.Ap&oacute;s ativada, clique e arraste o mouse sobre o mapa na &aacute;rea de zoom desejada.",
  952 +pt:"Amplia o mapa - desloca o ponto clicado para centro da tela ou amplia a regi&atilde;o indicada por um ret&acirc;ngulo. Ap&oacute;s ativada, clique e arraste o mouse sobre o mapa na &aacute;rea de zoom desejada.",
932 953 en:"Extends the map - place the clicked point in the center of the screen or extends the region indicated by a rectangular.After enabled, click and drag the mouse over the map in the area of zoom desired.",
933 954 es:"Ampl&iacute;a el mapa - coloca el punto donde se hizo clic en el centro de la pantalla o ampl&iacute;a la regi&oacute;n indicada por un rect&aacute;ngulo. Despu&eacute;s de activarla, haga clic y arrastre el rat&oacute;n sobre el mapa en el &aacute;rea de zoom deseada",
934 955 it:"Ampliare la mappa - pone il punto cliccato nel centro dello schermo o ingrandisce la regione indicata con un rettangolo. Dopo aver attivata, cliccare e trascinare il mouse sopra la mappa nell’area di zoom desiderata."
... ... @@ -956,7 +977,7 @@ it:&quot;Riduci la mappa tenendo come referimento il centro corrente&quot;
956 977 }],
957 978 "d7":[
958 979 {
959   -pt:"Mostra informa&ccedil;&otilde;es sobre um ponto no mapa. Ap&oacute;s ativada, clique sobre o mesmo.",
  980 +pt:"Mostra informa&ccedil;&otilde;es sobre um ponto no mapa. Ap&oacute;s ativada, clique sobre o mapa.",
960 981 en:"Displays information about a point on the map. Once activated, click on it.",
961 982 es:"Muestra informaci&oacute;n sobre un punto en el mapa. Despu&eacute;s de activarla haga clic sobre el mismo.",
962 983 it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, fare clic su di esso."
... ... @@ -1068,9 +1089,9 @@ it:&quot;Misura la distanza tra due o più punti cliccati sulla mappa (minore distanza
1068 1089 }],
1069 1090 "d21a":[
1070 1091 {
1071   -pt:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;ria &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
  1092 +pt:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;rea &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
1072 1093 en:"It measures the area on the map. The calculation of area is approximate and their accuracy depends on the scale of the map.",
1073   -es:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;ria &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
  1094 +es:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;rea &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
1074 1095 it:"Misura l'area di un poligono tracciato sullo schermo. Il calcolo della superficie è approssimativo e la sua precisione dipende dalla scala della mappa."
1075 1096 }],
1076 1097 "d22":[
... ...
classesphp/classe_legenda.php
... ... @@ -109,16 +109,19 @@ $tema - nome do tema
109 109 $template - nome do template para processar a legenda
110 110 */
111 111  
112   - function __construct($map_file,$locaplic="",$tema="",$template="")
  112 + function __construct($map_file="",$locaplic="",$tema="",$template="")
113 113 {
114 114 //error_reporting(E_ALL);
115 115 if(file_exists($locaplic."/funcoes_gerais.php"))
116 116 include_once($locaplic."/funcoes_gerais.php");
117 117 else
118 118 include_once("funcoes_gerais.php");
119   - $this->mapa = ms_newMapObj($map_file);
  119 + $this->localaplicacao = $locaplic;
  120 + if($map_file == "")
  121 + {return;}
  122 + $this->mapa = ms_newMapObj($map_file);
120 123 $this->arquivo = $map_file;
121   - $this->localaplicacao = $locaplic;
  124 +
122 125 if($tema != "" && @$this->mapa->getlayerbyname($tema))
123 126 {
124 127 $this->layer = $this->mapa->getlayerbyname($tema);
... ... @@ -445,6 +448,7 @@ Para cada tipo de simbologia deve haver um arquivo .map com as definições básica
445 448 Todos os símbolos do arquivo symbols/simbolos serão retornados como imagens.
446 449  
447 450 parameters:
  451 +
448 452 $tipo - Tipo de representação do símbolo, 0 pontos, 1 linhas e 2 polígonos.
449 453  
450 454 $dir_tmp - Diretório temporário do mapserver.
... ... @@ -461,10 +465,15 @@ String no formato HTML com as imagens dos símbolos
461 465 */
462 466 function listaSimbolos($tipo,$dir_tmp,$imgdir,$onclick,$tamanho=8,$width=1)
463 467 {
  468 + //error_reporting(E_ALL);
464 469 if ($tipo == 3){$tipo = 2;} //tipo raster
465   - if (!file_exists($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc"))
  470 + if($imgdir == "")
  471 + {$dir = $dir_tmp;}
  472 + else
  473 + {$dir = $dir_tmp."/".$imgdir;}
  474 + if (!file_exists($dir."/simbolos".$tipo.".inc"))
466 475 {
467   - $f = fopen($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc","w");
  476 + $f = fopen($dir."/simbolos".$tipo.".inc","w");
468 477 if ($tipo == 2){$t="simpol.map";}
469 478 if ($tipo == 0){$t="simpt.map";}
470 479 if ($tipo == 1){
... ... @@ -499,13 +508,13 @@ String no formato HTML com as imagens dos símbolos
499 508 }
500 509 fwrite($f,"<?php \$res = \"".$ins."\";?>");
501 510 fclose($f);
502   - copy ($dir_tmp."/".$imgdir."/simbolos".$tipo.".inc",$dir_tmp."/comum/simbolos".$tipo.".inc");
  511 + //copy ($dir."/simbolos".$tipo.".inc",$dir_tmp."/comum/simbolos".$tipo.".inc");
503 512 return $ins;
504 513 }
505 514 else
506 515 {
507 516 $res = "";
508   - include_once $dir_tmp."/comum/simbolos".$tipo.".inc";
  517 + include_once $dir."/simbolos".$tipo.".inc";
509 518 return $res;
510 519 }
511 520 }
... ...
classesphp/classe_mapa.php
... ... @@ -249,7 +249,8 @@ string - javascript com os parametros
249 249 "editorsql"=>$editorsql,
250 250 "linhadotempo"=>$ltempo,
251 251 "escondido"=>strtolower($escondido),
252   - "iconetema"=>($oLayer->getmetadata("iconetema"))
  252 + "iconetema"=>($oLayer->getmetadata("iconetema")),
  253 + "classe"=>($oLayer->getmetadata("classe"))
253 254 );
254 255 }
255 256 }
... ...
classesphp/classe_selecao.php
... ... @@ -86,7 +86,11 @@ $ext - extensão geográfica do mapa
86 86 {
87 87 //error_reporting(E_ALL);
88 88 $this->qyfile = str_replace(".map",".qy",$map_file);
89   - $this->mapa = ms_newMapObj($map_file);
  89 + if($tema != "")
  90 + {$this->qyfileTema = dirname($map_file)."/".$tema.".php";}
  91 + else
  92 + {$this->qyfileTema = "";}
  93 + $this->mapa = ms_newMapObj($map_file);
90 94 $this->arquivo = $map_file;
91 95 if($tema != "" && @$this->mapa->getlayerbyname($tema))
92 96 $this->layer = $this->mapa->getlayerbyname($tema);
... ... @@ -139,6 +143,7 @@ $ys - lista de coordenadas y separadas por virgula
139 143 {$this->mapa->loadquery($this->qyfile);}
140 144 $indxlayer = $this->layer->index;
141 145 $res_count = $this->layer->getNumresults();
  146 + /*
142 147 $shp_atual = array();
143 148 for ($i = 0; $i < $res_count;++$i)
144 149 {
... ... @@ -146,6 +151,11 @@ $ys - lista de coordenadas y separadas por virgula
146 151 $shp_atual[] = $rc->shapeindex;
147 152 }
148 153 $this->mapa->freequery($indxlayer);
  154 + */
  155 + $shp_atual = array();
  156 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  157 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  158 +
149 159 $shpi = array();
150 160 //transforma os pontos em shape
151 161 $s = ms_newShapeObj(MS_SHAPE_POLYGON);
... ... @@ -197,13 +207,16 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
197 207 $tipoLayero = $layero->type;
198 208 $this->layer->set("template","none.htm");
199 209 $layero->set("template","none.htm");
  210 + /*
200 211 if (file_exists($this->qyfile))
201 212 {$this->mapa->loadquery($this->qyfile);}
  213 + */
202 214 $indxlayer = $this->layer->index;
203 215 $res_count = $this->layer->getNumresults();
204 216 $res_counto = $layero->getNumresults();
205 217 if ($res_counto == 0)
206 218 {return false;}
  219 + /*
207 220 $shp_atual = array();
208 221 for ($i = 0; $i < $res_count;++$i)
209 222 {
... ... @@ -211,6 +224,11 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
211 224 $shp_atual[] = $rc->shapeindex;
212 225 }
213 226 $this->mapa->freequery($indxlayer);
  227 + */
  228 + $shp_atual = array();
  229 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  230 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  231 +
214 232 $shpi = array();
215 233 $i = $layero->index;
216 234 $selecao = "";
... ... @@ -357,6 +375,7 @@ $valor - Valor.
357 375 }
358 376 $this->layer->set("template","none.htm");
359 377 $indxlayer = $this->layer->index;
  378 + /*
360 379 if (file_exists($this->qyfile))
361 380 {$this->mapa->loadquery($this->qyfile);}
362 381 $res_count = $this->layer->getNumresults();
... ... @@ -367,6 +386,11 @@ $valor - Valor.
367 386 $shp_atual[] = $rc->shapeindex;
368 387 }
369 388 $this->mapa->freequery($indxlayer);
  389 + */
  390 + $shp_atual = array();
  391 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  392 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  393 +
370 394 $shpi = array();
371 395 if($this->layer->connectiontype == MS_POSTGIS)
372 396 {
... ... @@ -422,6 +446,7 @@ $valor - Valor.
422 446 if(!$this->layer){return "erro";}
423 447 $this->layer->set("template","none.htm");
424 448 $indxlayer = $this->layer->index;
  449 + /*
425 450 if (file_exists($this->qyfile))
426 451 {$this->mapa->loadquery($this->qyfile);}
427 452 $res_count = $this->layer->getNumresults();
... ... @@ -432,6 +457,11 @@ $valor - Valor.
432 457 $shp_atual[] = $rc->shapeindex;
433 458 }
434 459 $this->mapa->freequery($indxlayer);
  460 + */
  461 + $shp_atual = array();
  462 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  463 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  464 +
435 465 $shpi = array();
436 466 $items = pegaItens($this->layer);
437 467 $filtro = str_replace("|","'",$filtro);
... ... @@ -476,6 +506,8 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
476 506 if ($tipo == "inverte")
477 507 {return ($this->selecaoInverte());}
478 508 if(!$this->layer){return "erro";}
  509 + /*
  510 + $shp_atual = array();
479 511 if (file_exists($this->qyfile))
480 512 {$this->mapa->loadquery($this->qyfile);}
481 513 $indxlayer = $this->layer->index;
... ... @@ -487,6 +519,11 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
487 519 $shp_atual[] = $rc->shapeindex;
488 520 }
489 521 $this->mapa->freequery($indxlayer);
  522 + */
  523 + $shp_atual = array();
  524 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  525 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  526 +
490 527 $shpi = array();
491 528 $c = explode(" ",$xy);
492 529 $pt = ms_newPointObj();
... ... @@ -549,6 +586,8 @@ Limpa a seleção do tema.
549 586 */
550 587 function selecaoLimpa()
551 588 {
  589 + if(file_exists($this->qyfileTema))
  590 + {unlink($this->qyfileTema);}
552 591 if ($this->nome != "") //limpa de um tema
553 592 {
554 593 if(!$this->layer){return "erro";}
... ... @@ -578,6 +617,7 @@ Inverte seleção do tema.
578 617 {$this->mapa->loadquery($this->qyfile);}
579 618 $indxlayer = $this->layer->index;
580 619 $items = pegaItens($this->layer);
  620 + /*
581 621 $res_count = $this->layer->getNumresults();
582 622 $shp_atual = array();
583 623 for ($i = 0; $i < $res_count;++$i)
... ... @@ -586,9 +626,11 @@ Inverte seleção do tema.
586 626 $shp_atual[] = $rc->shapeindex;
587 627 }
588 628 $this->mapa->freequery($indxlayer);
589   - //$qstring = "/.*/";
590   - //if($this->layer->connectiontype == MS_POSTGIS)
591   - //{$qstring = $items[0].' ~* \'^.\' ';}
  629 + */
  630 + $shp_atual = array();
  631 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  632 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  633 +
592 634 $this->layer->queryByrect($this->mapa->extent);
593 635 $res_count = $this->layer->getNumresults();
594 636 $shp_todos = array();
... ... @@ -602,6 +644,7 @@ Inverte seleção do tema.
602 644 foreach ($shp as $indx)
603 645 {$this->mapa->querybyindex($indxlayer,-1,$indx,MS_TRUE);}
604 646 $this->mapa->savequery($this->qyfile);
  647 + $this->serializeQ($this->qyfileTema,$shp);
605 648 return("ok");
606 649 }
607 650 /*
... ... @@ -617,6 +660,7 @@ $shp_atual - Indices dos elementos já selecionados.
617 660 */
618 661 function selecaoAdiciona($shpi,$shp_atual)
619 662 {
  663 + error_reporting(E_ALL);
620 664 if(!$this->layer){return "erro";}
621 665 $indxlayer = $this->layer->index;
622 666 $shp = array_merge($shpi,$shp_atual);
... ... @@ -625,7 +669,7 @@ $shp_atual - Indices dos elementos já selecionados.
625 669 foreach ($shp as $indx)
626 670 {@$this->mapa->querybyindex($indxlayer,-1,$indx,MS_TRUE);}
627 671 $this->mapa->savequery($this->qyfile);
628   -
  672 + $this->serializeQ($this->qyfileTema,$shp);
629 673 return("ok");
630 674 }
631 675 /*
... ... @@ -650,6 +694,7 @@ $shp_atual - Indices dos elementos já selecionados.
650 694 foreach ($shp as $indx)
651 695 {$this->mapa->querybyindex($indxlayer,-1,$indx,MS_TRUE);}
652 696 $this->mapa->savequery($this->qyfile);
  697 + $this->serializeQ($this->qyfileTema,$shp);
653 698 return("ok");
654 699 }
655 700 /*
... ... @@ -674,6 +719,7 @@ $ids - Ids separados por vírgula correspondendo aos registros.
674 719 foreach ($ids as $i)
675 720 {$this->mapa->queryByIndex($indxlayer, -1, $i);}
676 721 $this->mapa->savequery($this->qyfile);
  722 + $this->serializeQ($this->qyfileTema,$ids);
677 723 return("ok");
678 724 }
679 725 /*
... ... @@ -725,6 +771,7 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
725 771 if (file_exists($this->qyfile))
726 772 {$this->mapa->loadquery($this->qyfile);}
727 773 $indxlayer = $this->layer->index;
  774 + /*
728 775 $res_count = $this->layer->getNumresults();
729 776 $shp_atual = array();
730 777 for ($i = 0; $i < $res_count;++$i)
... ... @@ -733,6 +780,11 @@ $tipo - Tipo de operação adiciona|retira|inverte|limpa
733 780 $shp_atual[] = $rc->shapeindex;
734 781 }
735 782 $this->mapa->freequery($indxlayer);
  783 + */
  784 + $shp_atual = array();
  785 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  786 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  787 +
736 788 $shpi = array();
737 789 $rect = $this->mapa->extent;
738 790 $ident = @$this->layer->queryByRect($rect);
... ... @@ -773,6 +825,7 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
773 825 if (file_exists($this->qyfile))
774 826 {$this->mapa->loadquery($this->qyfile);}
775 827 $indxlayer = $this->layer->index;
  828 + /*
776 829 $res_count = $this->layer->getNumresults();
777 830 $shp_atual = array();
778 831 for ($i = 0; $i < $res_count;++$i)
... ... @@ -781,6 +834,11 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
781 834 $shp_atual[] = $rc->shapeindex;
782 835 }
783 836 $this->mapa->freequery($indxlayer);
  837 + */
  838 + $shp_atual = array();
  839 + if($this->qyfileTema != "" && file_exists($this->qyfileTema))
  840 + {$shp_atual = $this->unserializeQ($this->qyfileTema);}
  841 +
784 842 $shpi = array();
785 843 $temp = explode(" ",$ext);
786 844 $rect = ms_newRectObj();
... ... @@ -804,5 +862,39 @@ $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax
804 862 if ($tipo == "retira")
805 863 {return($this->selecaoRetira($shpi,$shp_atual));}
806 864 }
  865 +/*
  866 +function unserializeQ
  867 +
  868 +Deserializa um arquivo de geometrias.
  869 +
  870 +Parametros:
  871 +$arquivo - arquivo que será processado
  872 +*/
  873 + function unserializeQ($arq)
  874 + {
  875 + $handle = fopen ($arq, "r");
  876 + $conteudo = fread ($handle, filesize ($arq));
  877 + fclose ($handle);
  878 + return(unserialize($conteudo));
  879 + }
  880 +/*
  881 +function serializeQ
  882 +
  883 +Deserializa um arquivo de geometrias.
  884 +
  885 +Parametros:
  886 +$arquivo - arquivo que será processado
  887 +
  888 +$geos - array com os dados
  889 +*/
  890 + function serializeQ($arq,$geos)
  891 + {
  892 + if (file_exists($arq))
  893 + {unlink($arq);}
  894 + $fp = fopen($arq,"w");
  895 + $r = serialize($geos);
  896 + fwrite($fp,$r);
  897 + fclose($fp);
  898 + }
807 899 }
808 900 ?>
809 901 \ No newline at end of file
... ...
classesphp/classe_shp.php
... ... @@ -41,7 +41,7 @@ class SHP
41 41  
42 42 Objeto mapa
43 43 */
44   - protected $mapa;
  44 + public $mapa;
45 45 /*
46 46 Variavel: $arquivo
47 47  
... ...
classesphp/classe_temas.php
... ... @@ -499,6 +499,27 @@ $valor - Novo valor da transparência
499 499 return("ok");
500 500 }
501 501 /*
  502 +function: inverteStatusLegenda
  503 +
  504 +Muda o metadata CLASSE, invertendo seu valor
  505 +
  506 +*/
  507 + function inverteStatusLegenda()
  508 + {
  509 + //error_reporting(E_ALL);
  510 + $valor = $this->layer->getmetadata("classe");
  511 + if($valor == "" || strtolower($valor) == "sim")
  512 + {$valor = "NAO";}
  513 + else
  514 + {$valor = "SIM";}
  515 + foreach ($this->grupo as $lg)
  516 + {
  517 + $ll = $this->mapa->getlayerbyname($lg);
  518 + $ll->setmetaData("classe",$valor);
  519 + }
  520 + return("ok");
  521 + }
  522 +/*
502 523 function: mudaNome
503 524  
504 525 Muda nome do tema.
... ...
classesphp/classe_toponimia.php
... ... @@ -237,6 +237,7 @@ $item Lista de Itens separados por vírgula que serão utilizados.
237 237 function ativaEtiquetas($item)
238 238 {
239 239 if(!$this->layer){return "erro";}
  240 + $this->layer->setmetadata("IDENTIFICA","");
240 241 $this->layer->setmetadata("TIP",$item);
241 242 return("ok");
242 243 }
... ...
classesphp/funcoes_gerais.php
... ... @@ -837,6 +837,8 @@ $zoom - fator de zoom
837 837  
838 838 $tipo - tipo de referência dinamico|mapa
839 839  
  840 +$interface - interface do mapa atual padrao|openlayers|googlemaps|flamingo|googleearth
  841 +
840 842 Parametros:
841 843  
842 844 $ext {string} - (opcional) extensão geográfica do mapa
... ... @@ -847,17 +849,18 @@ String contendo variáveis no formato javascript
847 849 */
848 850 function retornaReferenciaDinamica($ext="")
849 851 {
850   - global $nomeImagem,$map_file,$utilizacgi,$locmapserv,$locaplic,$zoom,$tipo;
  852 + global $nomeImagem,$map_file,$utilizacgi,$locmapserv,$locaplic,$zoom,$tipo,$interface;
851 853 //
852 854 //adiciona o tema com o web service com o mapa mundi
853 855 //
854 856 $objMapa = ms_newMapObj($map_file);
  857 + if($interface == "googlemaps")
  858 + {$objMapa->setProjection("init=epsg:4291");}
855 859 if($ext && $ext != ""){
856 860 $e = explode(" ",$ext);
857 861 $extatual = $objMapa->extent;
858 862 $extatual->setextent((min($e[0],$e[2])),(min($e[1],$e[3])),(max($e[0],$e[2])),(max($e[1],$e[3])));
859 863 }
860   -
861 864 $numlayers = $objMapa->numlayers;
862 865 for ($i=0;$i < $numlayers;++$i)
863 866 {
... ... @@ -900,6 +903,8 @@ function retornaReferenciaDinamica($ext=&quot;&quot;)
900 903 $nomer = ($objImagem->imageurl).basename($nomer);
901 904 $s = "var refimagem='".$nomer."';var refwidth=".$objImagem->width.";var refheight=".$objImagem->height.";var refpath='".$objImagem->imagepath."';var refurl='".$objImagem->imageurl."'";
902 905 $mapa = ms_newMapObj($map_file);
  906 + if($interface == "googlemaps")
  907 + {$mapa->setProjection("init=epsg:4291");}
903 908 $ref = $mapa->reference;
904 909 $r = $ref->extent;
905 910 //
... ... @@ -2585,4 +2590,41 @@ function cpjson($obj){
2585 2590 $cp->return_data();
2586 2591 }
2587 2592 }
  2593 +/*
  2594 +Function: removeLinha
  2595 +
  2596 +Remove uma linha do mapfile baseado na comparação de strings.
  2597 +
  2598 +Parametros:
  2599 +
  2600 +$texto
  2601 +
  2602 +$mapfile
  2603 +*/
  2604 +function removeLinha($texto,$mapfile)
  2605 +{
  2606 + $abre = fopen($mapfile, "r");
  2607 + while (!feof($abre))
  2608 + {
  2609 + $buffer = fgets($abre);
  2610 + $maparray[] = $buffer;
  2611 + }
  2612 + fclose($abre);
  2613 + $novoarray = array();
  2614 + foreach ($maparray as $e)
  2615 + {
  2616 + $remove = "nao";
  2617 + $testa = explode($texto,$e);
  2618 + if (count($testa) > 1)
  2619 + {$remove = "sim";}
  2620 + if ($remove == "nao")
  2621 + {$novoarray[] = $e;}
  2622 + }
  2623 + //salva o mapfile
  2624 + $abre = fopen($mapfile, "wt");
  2625 + foreach($novoarray as $linha)
  2626 + {$escreve = fwrite ($abre,$linha);}
  2627 + $fecha = fclose ($abre);
  2628 +}
  2629 +
2588 2630 ?>
2589 2631 \ No newline at end of file
... ...
classesphp/mapa_controle.php
... ... @@ -1272,6 +1272,21 @@ Aplica processos em um tema do tipo imagem
1272 1272 redesenhaMapa();
1273 1273 break;
1274 1274 /*
  1275 +Valor: INVERTESTATUSLEGENDA
  1276 +
  1277 +Inverte o metadata CLASSE
  1278 +
  1279 +<Temas->inverteStatusLegenda>
  1280 +*/
  1281 + case "INVERTESTATUSLEGENDA":
  1282 + include_once("classe_temas.php");
  1283 + copiaSeguranca($map_file);
  1284 + $m = new Temas($map_file,$tema);
  1285 + $m->inverteStatusLegenda();
  1286 + $m->salva();
  1287 + redesenhaMapa();
  1288 + break;
  1289 +/*
1275 1290 Valor: MUDATRANSP
1276 1291  
1277 1292 Altera a transparência de um tema
... ... @@ -1547,7 +1562,18 @@ Os valores para o gráfico são obtidos do tema indicado na classe. Para cada novo
1547 1562 include_once("classe_shp.php");
1548 1563 copiaSeguranca($map_file);
1549 1564 $m = new SHP($map_file,$tema,$locaplic);
  1565 + if($interface == "googlemaps")
  1566 + {
  1567 + $projMapa = $m->mapa->getProjection();
  1568 + $m->mapa->setProjection("init=epsg:4291");
  1569 + $m->salva();
  1570 + }
1550 1571 $retorno = $m->insereSHPgrafico($x,$y,$itens,$width,$inclinacao,$shadow_height);
  1572 + if($interface == "googlemaps")
  1573 + {
  1574 + $m->mapa->setProjection($projMapa);
  1575 + $m->salva();
  1576 + }
1551 1577 break;
1552 1578 /*
1553 1579 Valor: MOSTRAWKT
... ... @@ -2045,8 +2071,7 @@ Identifica elementos no mapa.
2045 2071 {
2046 2072 $m->mapa->setProjection($projMapa);
2047 2073 $m->salva();
2048   - }
2049   -
  2074 + }
2050 2075 break;
2051 2076 /*
2052 2077 Valor: IDENTIFICAUNICO
... ... @@ -2058,9 +2083,22 @@ Identifica elementos no mapa retornando apenas o valor de um único item.
2058 2083 case "IDENTIFICAUNICO":
2059 2084 if (!isset($resolucao)){$resolucao = 5;}
2060 2085 include_once("classe_atributos.php");
2061   - $m = new Atributos($map_file,$tema);
  2086 + if(!isset($ext))
  2087 + {$ext = "";}
  2088 + $m = new Atributos($map_file,$tema,"",$ext);
  2089 + if($interface == "googlemaps")
  2090 + {
  2091 + $projMapa = $m->mapa->getProjection();
  2092 + $m->mapa->setProjection("init=epsg:4291");
  2093 + $m->salva();
  2094 + }
2062 2095 $xy = explode(",",$xy);
2063 2096 $retorno = $m->identificaQBP($tema,$xy[0],$xy[1],$map_file,$resolucao,$item,$tiporetorno="unico");
  2097 + if($interface == "googlemaps")
  2098 + {
  2099 + $m->mapa->setProjection($projMapa);
  2100 + $m->salva();
  2101 + }
2064 2102 break;
2065 2103 /*
2066 2104 Valor: ESTATISTICA
... ... @@ -2238,8 +2276,8 @@ Aplica uma resolução nova ao mapa atual e gera uma imagem para a lente.
2238 2276 $m = new Navegacao($map_file);
2239 2277 if(!isset($ext))
2240 2278 {$ext = "";}
  2279 + $ext = projetaExt($map_file,$ext);
2241 2280 $m->aplicaResolucao($resolucao,$ext);
2242   - //$m->desabilitaRASTER();
2243 2281 $retorno = ($m->mapa->width).",".($m->mapa->height).",".$m->gravaImagemCorpo();
2244 2282 break;
2245 2283 /*
... ... @@ -2500,6 +2538,7 @@ Seleciona elementos utilizando um ponto.
2500 2538 <Selecao->selecaoPT>
2501 2539 */
2502 2540 case "SELECAOPT":
  2541 + //error_reporting(E_ALL);
2503 2542 include_once("classe_selecao.php");
2504 2543 copiaSeguranca($map_file);
2505 2544 if(!isset($xy)){$xy = "";}
... ...
classesphp/mapa_inicia.php
... ... @@ -126,6 +126,9 @@ function iniciaMapa()
126 126 {$layer->set("status",MS_OFF);}
127 127 if($layer->type == MS_LAYER_POLYGON)
128 128 {
  129 + if($layer->opacity == "");
  130 + {$layer->set("opacity",50);}
  131 + /*
129 132 $nclasses = $layer->numclasses;
130 133 for($ii=0;$ii<$nclasses;++$ii){
131 134 $classe = $layer->getclass($ii);
... ... @@ -136,6 +139,7 @@ function iniciaMapa()
136 139 $estilo->set("size","2");
137 140 }
138 141 }
  142 + */
139 143 }
140 144 //echo $l->getProjection();exit;
141 145 if($layer->getProjection() == "" )
... ...
css/botoes.css
... ... @@ -161,6 +161,14 @@
161 161 width:20px;
162 162 height:10px;
163 163 }
  164 +#menuinterface
  165 +{
  166 + background-image:URL('../imagens/visual/default/sprite.png');
  167 + background-repeat: no-repeat;
  168 + background-position: 3px -1775px;
  169 + width:52px;
  170 + height:15px;
  171 +}
164 172 #menuajudaMenu
165 173 {
166 174 background-image:URL('../imagens/visual/default/sprite.png');
... ... @@ -615,14 +623,6 @@
615 623 height:20px;
616 624 cursor:pointer;
617 625 }
618   -#menuinterface
619   -{
620   - background-image:URL('../imagens/visual/default/sprite.png');
621   - background-repeat: no-repeat;
622   - background-position: 3px -1775px;
623   - width:52px;
624   - height:15px;
625   -}
626 626 #rota
627 627 {
628 628 background-image:URL('../imagens/visual/default/sprite.png');
... ...
ferramentas/3d/3d.php
... ... @@ -45,6 +45,8 @@ if ($temaz==&quot;&quot;)
45 45 if ($maptemp == ""){echo "Arquivo com o relevo não foi encontrado";return;}
46 46 }
47 47 $mapa = ms_newMapObj($map_file);
  48 +if($interface == "googlemaps")
  49 +{$mapa->setProjection("init=epsg:4291");}
48 50 if(isset($ext) && $ext != "")
49 51 {
50 52 $e = explode(" ",$ext);
... ...
ferramentas/colorpicker/index.htm
... ... @@ -25,6 +25,7 @@ body {
25 25  
26 26 <style type="text/css">
27 27 #container { position: relative; padding: 6px; background-color: #eeeeee; width: 300px; height:200px; }
  28 + .yui-picker-controls li {padding: 01px;}
28 29 </style>
29 30  
30 31  
... ... @@ -50,7 +51,6 @@ API --&gt;
50 51 picker;
51 52  
52 53 Event.onDOMReady(function() {
53   - YAHOO.log("Creating Color Picker.", "info", "example");
54 54 picker = new YAHOO.widget.ColorPicker("container", {
55 55 showhsvcontrols: true,
56 56 showhexcontrols: true,
... ... @@ -59,37 +59,21 @@ API --&gt;
59 59 HUE_THUMB: window.parent.i3GEO.configura.locaplic+"/pacotes/yui270/build/colorpicker/assets/hue_thumb.png"
60 60 }
61 61 });
62   - YAHOO.log("Finished creating Color Picker.", "info", "example");
63   -
64   - //a listener for logging RGB color changes;
65   - //this will only be visible if logger is enabled:
66 62 var onRgbChange = function(o) {
67   - /*o is an object
68   - { newValue: (array of R, G, B values),
69   - prevValue: (array of R, G, B values),
70   - type: "rgbChange"
71   - }
72   - */
73   - YAHOO.log("The new color value is " + o.newValue, "info", "example");
74 63 }
75   -
76   - //subscribe to the rgbChange event;
77 64 picker.on("rgbChange", onRgbChange);
78   -
79   - //use setValue to reset the value to white:
  65 + document.getElementById("yui-picker-swatch").style.display = "none";
  66 + document.getElementById("yui-picker-controls").style.top = "0px";
  67 + document.getElementById("yui-picker-websafe-swatch").style.left = "245px";
  68 + document.getElementById("yui-picker-websafe-swatch").style.top = "185px";
80 69 Event.on("reset", "click", function(e) {
81   - picker.setValue([255, 255, 255], false); //false here means that rgbChange
82   - //wil fire; true would silence it
  70 + picker.setValue([255, 255, 255], false);
  71 +
83 72 });
84   -
85   - //use the "get" method to get the current value
86   - //of one of the Color Picker's properties; in
87   - //this case, we'll get the hex value and write it
88   - //to the log:
89 73 Event.on("gethex", "click", function(e) {
90   - YAHOO.log("Current hex value: " + picker.get("hex"), "info", "example");
91 74 });
92 75 });
  76 +
93 77 })();
94 78 //
95 79 //utilize tipo para definir o tipo de cor de retorno
... ... @@ -117,6 +101,8 @@ function aplicarCor()
117 101 doc.getElementById(elemento).value = ncor;
118 102 window.parent.YAHOO.janelaCor.xp.panel.destroy();
119 103 }
  104 +
  105 +
120 106 </script>
121 107  
122 108 <!--END SOURCE CODE FOR EXAMPLE =============================== -->
... ...
ferramentas/confluence/index.js.php
... ... @@ -66,8 +66,8 @@ i3GEOF.confluence = {
66 66 i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.confluence.lista()");
67 67 }
68 68 if(i3GEO.Interface.ATUAL === "googlemaps"){
69   - confluenceDragend = GEvent.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();});
70   - confluenceZoomend = GEvent.addListener(i3GeoMap, "zoomend", function() {i3GEOF.confluence.lista();});
  69 + confluenceDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();});
  70 + confluenceZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.confluence.lista();});
71 71 }
72 72 i3GEOF.confluence.lista();
73 73 }
... ... @@ -124,8 +124,8 @@ i3GEOF.confluence = {
124 124 i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.confluence.lista()");
125 125 }
126 126 if(i3GEO.Interface.ATUAL === "googlemaps"){
127   - GEvent.removeListener(confluenceDragend);
128   - GEvent.removeListener(confluenceZoomend);
  127 + google.maps.event.removeListener(confluenceDragend);
  128 + google.maps.event.removeListener(confluenceZoomend);
129 129 }
130 130 };
131 131 YAHOO.util.Event.addListener(janela[0].close, "click", temp);
... ...
ferramentas/epsg.txt
1 1 # Geográfica SAD69
2 2 <4291> +proj=longlat +ellps=GRS67 +no_defs no_defs <>
  3 +# WGS 84
  4 +<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs <>
3 5 # Corrego Alegre / UTM zone 21S
4 6 <22521> +proj=utm +zone=21 +south +ellps=intl +towgs84=-206,172,-6,0,0,0,0 +units=m +no_defs <>
5 7 # Corrego Alegre / UTM zone 22S
... ...
ferramentas/etiqueta/index.js.php
... ... @@ -84,7 +84,7 @@ i3GEOF.etiqueta = {
84 84 html:function(){
85 85 var ins = '';
86 86 ins += '<p class="paragrafo" >Escolha o item que ser&aacute; utilizado como fonte de dados para incluir a etiqueta:<br>';
87   - ins += '<div id=i3GEOetiquetalistai class=digitar style="left:0px;top:0px;330px;height:80px;overflow:auto;display:block;"></div>';
  87 + ins += '<div id=i3GEOetiquetalistai class=digitar style="text-align:left;left:0px;top:0px;330px;height:80px;overflow:auto;display:block;"></div>';
88 88 ins += '<br><br>';
89 89 ins += '<p class="paragrafo" >';
90 90 ins += '<input id=i3GEOetiquetabotao1 size=35 type=button value="Ativar" />';
... ... @@ -148,7 +148,7 @@ i3GEOF.etiqueta = {
148 148 itensatuais = i3GEO.arvoreDeCamadas.pegaTema(i3GEO.temaAtivo);
149 149 itensatuais = itensatuais.etiquetas.split(",");
150 150 ins = [];
151   - ins.push("<table class=lista6 >");
  151 + ins.push("<table class=lista >");
152 152 n = retorno.data.valores.length;
153 153 for (i=0;i<n; i++){
154 154 item = retorno.data.valores[i].item;
... ...
ferramentas/gradecoord/index.js.php
... ... @@ -115,7 +115,7 @@ i3GEOF.gradeCoord = {
115 115 ' <td id=i3GEOgradeCoordfontef ></td></tr>' +
116 116 '<tr><td>&nbsp;</td><td></td></tr>' +
117 117 '<tr>' +
118   - ' <td>Cor da m&aacute +scara de um pixel de entorno:</td><td>' +
  118 + ' <td>Cor da m&aacute;scara de um pixel de entorno:</td><td>' +
119 119 $inputText("","","i3GEOgradeCoordmascara_i","",11,"-1,-1,-1") +
120 120 '<img alt="aquarela.gif" style=cursor:pointer src="'+i3GEO.configura.locaplic+'/imagens/aquarela.gif" onclick="i3GEOF.gradeCoord.corj(\'i3GEOgradeCoordmascara_i\')" />' +
121 121 ' </td>' +
... ... @@ -151,7 +151,7 @@ i3GEOF.gradeCoord = {
151 151 titulo = "Grade de coordenadas <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=7' >&nbsp;&nbsp;&nbsp;</a>";
152 152 janela = i3GEO.janela.cria(
153 153 "350px",
154   - "250px",
  154 + "440px",
155 155 "",
156 156 "",
157 157 "",
... ...
ferramentas/graficotema/index.js.php
... ... @@ -100,7 +100,7 @@ i3GEOF.graficoTema = {
100 100 ins += ' <div id=i3GEOgraficotemacombot style="display:none;position:relative;top:5px;left:0px;">';
101 101 ins += ' </div>';
102 102 ins += ' <p class="paragrafo" >Escolha os itens to tipo num&eacute;rico que compor&atilde;o cada parte do gr&aacute;fico<br><br>';
103   - ins += ' <div id=i3GEOgraficotemalistai class=digitar style="left:0px;top:0px;330px;height:80px;overflow:auto;display:block;">Escolha o tema para ver a lista de itens</div>';
  103 + ins += ' <div id=i3GEOgraficotemalistai class=digitar style="text-align:left;left:0px;top:0px;330px;height:80px;overflow:auto;display:block;">Escolha o tema para ver a lista de itens</div>';
104 104 ins += ' <br><br>';
105 105 ins += ' <p class="paragrafo" ><input id=i3GEOgraficotemabotao1 size=35 type=button value="Criar gráficos" />';
106 106 ins += ' <div id=i3GEOgraficotemamen1 style=top:10px;left:1px ><p class="paragrafo">Marque os itens para compor as partes do gr&aacute;fico. Edite os valores de cor (R,G,B) conforme o desejado. Ap&oacute;s escolher os itens, clique em criar gr&aacute;ficos para inserir um novo tema com os gr&aacute;ficos.</div>';
... ... @@ -180,7 +180,7 @@ i3GEOF.graficoTema = {
180 180 ins.push("<table class=lista >");
181 181 n = retorno.data.valores.length;
182 182 for (i=0;i<n; i++){
183   - ins.push("<tr><td><input size=2 style='cursor:pointer' name="+retorno.data.valores[i].item+" type=checkbox id=i3GEOgraficotema"+retorno.data.valores[i].item+" /></td>");
  183 + ins.push("<tr><td><input size=2 style='cursor:pointer;border:0px solid white;' name="+retorno.data.valores[i].item+" type=checkbox id=i3GEOgraficotema"+retorno.data.valores[i].item+" /></td>");
184 184 ins.push("<td>&nbsp;"+retorno.data.valores[i].item+"</td>");
185 185 ins.push("<td>&nbsp;<input onclick='javascript:this.select();' id=i3GEOgraficotema"+retorno.data.valores[i].item+"cor type=text size=13 value="+i3GEO.util.randomRGB()+" /></td>");
186 186 ins.push("<td>&nbsp;<img style=cursor:pointer src='"+i3GEO.configura.locaplic+"/imagens/aquarela.gif' onclick=\"i3GEOF.graficoTema.corj('i3GEOgraficotemacor"+retorno.data.valores[i].item+"')\" /></td></tr>");
... ...
ferramentas/identifica/index.js.php
... ... @@ -132,9 +132,14 @@ i3GEOF.identifica = {
132 132 $i("i3GEOidentificaguia4").onclick = function(){
133 133 i3GEO.guias.mostraGuiaFerramenta("i3GEOidentificaguia4","i3GEOidentificaguia");
134 134 new YAHOO.widget.Button("i3GEOidentificabotao1",{onclick:{fn: function(){
135   - //window.location.href = "../etiqueta/index.htm?tema="+tema;
136   - if(i3GEO.temaAtivo !== "")
137   - {i3GEO.tema.dialogo.etiquetas(i3GEO.temaAtivo);}
  135 + if(i3GEO.temaAtivo !== ""){
  136 +
  137 + var ltema = i3GEO.arvoreDeCamadas.pegaTema(i3GEO.temaAtivo);
  138 + if(ltema.identifica == "nao" || ltema.identifica == "NAO")
  139 + {alert("Esse tema não permite etiquetas");}
  140 + else
  141 + {i3GEO.tema.dialogo.etiquetas(i3GEO.temaAtivo);}
  142 + }
138 143 else
139 144 {alert("Nenhum tema definido");}
140 145 }}});
... ... @@ -319,11 +324,11 @@ i3GEOF.identifica = {
319 324 }
320 325  
321 326 if(lista[l].identifica !== "nao")
322   - {linhas1 += "<tr><td style='border-top:1px solid beige;'><input onclick='i3GEOF.identifica.buscaDadosTema(\""+tema+"\")' style=cursor:pointer type=radio name=i3GEOidentificatema /></td><td style='border-top:1px solid beige;' >"+nome+"</td></tr>";}
  327 + {linhas1 += "<tr><td style='border-top:1px solid beige;'><input onclick='i3GEOF.identifica.buscaDadosTema(\""+tema+"\")' style='border:0px solid white;cursor:pointer;' type=radio name=i3GEOidentificatema /></td><td style='border-top:1px solid beige;' >"+nome+"</td></tr>";}
323 328 }
324 329 divResultado = $i("i3GEOidentificalistaTemas");
325 330 if(divResultado)
326   - {divResultado.innerHTML = linhas+"<table class=lista2 ><tr><td style=text-align:left ><input onclick='i3GEOF.identifica.buscaDadosTema(\"ligados\")' style=cursor:pointer type=radio name=i3GEOidentificatema /></td><td>Todos</td></tr>"+linhas1+"</table>";}
  331 + {divResultado.innerHTML = linhas+"<table class=lista2 ><tr><td style=text-align:left ><input onclick='i3GEOF.identifica.buscaDadosTema(\"ligados\")' style='border:0px solid white;;cursor:pointer' type=radio name=i3GEOidentificatema /></td><td>Todos</td></tr>"+linhas1+"</table>";}
327 332 },
328 333 /*
329 334 Function: montaLinkGeohack
... ... @@ -407,7 +412,7 @@ i3GEOF.identifica = {
407 412 {
408 413 ltema = i3GEOF.identifica.sistemasAdicionais[l].split(",");
409 414 if (ltema.length > 1)
410   - {linhas += "<tr><td style='border-top:1px solid beige;'><input onclick='i3GEOF.identifica.mostraDadosSistema("+ltema[1]+",\""+ltema[2]+"\")' style=cursor:pointer type=radio name=i3GEOidentificatema /></td><td style='border-top:1px solid beige;' >"+ltema[0]+"</td></tr>";}
  415 + {linhas += "<tr><td style='border-top:1px solid beige;'><input onclick='i3GEOF.identifica.mostraDadosSistema("+ltema[1]+",\""+ltema[2]+"\")' style='border:0px solid white;cursor:pointer' type=radio name=i3GEOidentificatema /></td><td style='border-top:1px solid beige;' >"+ltema[0]+"</td></tr>";}
411 416  
412 417 }
413 418 if(divins){
... ...
ferramentas/imprimir/a4lpaisagempdf.php
... ... @@ -36,8 +36,11 @@ $nomes = nomeRandomico();
36 36 //
37 37 //substitui a string de conexão com o banco em cada layer se for necessário
38 38 //
39   -substituiCon($map_file,$postgis_mapa);
40 39 $map = ms_newMapObj($map_file);
  40 +$temp = str_replace(".map","xxx.map",$map_file);
  41 +$map->save($temp);
  42 +substituiCon($temp,$postgis_mapa);
  43 +$map = ms_newMapObj($temp);
41 44  
42 45 if($interface == "googlemaps")
43 46 {$map->setProjection("init=epsg:4291");}
... ... @@ -61,7 +64,23 @@ foreach ($temas as $tema)
61 64 {$classe->set("name",$layer->getmetadata("tema"));}
62 65 }
63 66 }
  67 + if ($layer->getmetadata("classe") == "NAO")
  68 + {
  69 + $nclasses = $layer->numclasses;
  70 + if ($nclasses > 0)
  71 + {
  72 + for($i=0;$i<$nclasses;$i++)
  73 + {
  74 + $classe = $layer->getclass($i);
  75 + $classe->set("name","classeNula");
  76 + }
  77 + }
  78 + }
64 79 }
  80 +$map->save($temp);
  81 +removeLinha("classeNula",$temp);
  82 +$map = ms_newMapObj($temp);
  83 +
65 84 $o = $map->outputformat;
66 85 if($interface == "openlayers" || $interface == "googlemaps"){
67 86 if($mapexten != ""){
... ... @@ -73,6 +92,7 @@ if($interface == &quot;openlayers&quot; || $interface == &quot;googlemaps&quot;){
73 92 $legenda->set("status",MS_EMBED);
74 93 $o->set("imagemode",MS_IMAGEMODE_RGB);
75 94 }
  95 +$o->set("imagemode",MS_IMAGEMODE_RGB);
76 96 $o->set("transparent","false");
77 97 $imgo = $map->draw();
78 98 $nomer = ($imgo->imagepath)."mapa".$nomes.".png";
... ...
ferramentas/imprimir/aggpng.php
... ... @@ -78,7 +78,23 @@ foreach ($temas as $tema)
78 78 {$classe->set("name",$layer->getmetadata("tema"));}
79 79 }
80 80 }
  81 + if ($layer->getmetadata("classe") == "NAO")
  82 + {
  83 + $nclasses = $layer->numclasses;
  84 + if ($nclasses > 0)
  85 + {
  86 + for($i=0;$i<$nclasses;$i++)
  87 + {
  88 + $classe = $layer->getclass($i);
  89 + $classe->set("name","classeNula");
  90 + }
  91 + }
  92 + }
81 93 }
  94 +$map->save($temp);
  95 +removeLinha("classeNula",$temp);
  96 +$map = ms_newMapObj($temp);
  97 +$o = $map->outputformat;
82 98 if($interface == "openlayers" || $interface == "googlemaps"){
83 99 if($mapexten != ""){
84 100 $ext = explode(" ",$mapexten);
... ... @@ -87,9 +103,9 @@ if($interface == &quot;openlayers&quot; || $interface == &quot;googlemaps&quot;){
87 103 }
88 104 $legenda = $map->legend;
89 105 $legenda->set("status",MS_EMBED);
90   - $o = $map->outputformat;
91 106 $o->set("imagemode",MS_IMAGEMODE_RGB);
92 107 }
  108 +$o->set("imagemode",MS_IMAGEMODE_RGB);
93 109 $imgo = $map->draw();
94 110 $nomer = ($imgo->imagepath)."mapa".$nomes.".png";
95 111 $imgo->saveImage($nomer);
... ...
ferramentas/imprimir/geotif.php
... ... @@ -78,7 +78,22 @@ foreach ($temas as $tema)
78 78 {$classe->set("name",$layer->getmetadata("tema"));}
79 79 }
80 80 }
  81 + if ($layer->getmetadata("classe") == "NAO")
  82 + {
  83 + $nclasses = $layer->numclasses;
  84 + if ($nclasses > 0)
  85 + {
  86 + for($i=0;$i<$nclasses;$i++)
  87 + {
  88 + $classe = $layer->getclass($i);
  89 + $classe->set("name","classeNula");
  90 + }
  91 + }
  92 + }
81 93 }
  94 +$map->save($temp);
  95 +removeLinha("classeNula",$temp);
  96 +$map = ms_newMapObj($temp);
82 97 $o = $map->outputformat;
83 98 if($interface == "openlayers" || $interface == "googlemaps"){
84 99 if($mapexten != ""){
... ... @@ -90,7 +105,7 @@ if($interface == &quot;openlayers&quot; || $interface == &quot;googlemaps&quot;){
90 105 $legenda->set("status",MS_EMBED);
91 106 $o->set("imagemode",MS_IMAGEMODE_RGB);
92 107 }
93   -
  108 +$o->set("imagemode",MS_IMAGEMODE_RGB);
94 109 $imgo = $map->draw();
95 110 $nomer = ($imgo->imagepath)."mapa".$nomes.".tif";
96 111 $imgo->saveImage($nomer);
... ...
ferramentas/imprimir/index.js.php
... ... @@ -69,32 +69,32 @@ i3GEOF.imprimir = {
69 69 String com o código html
70 70 */
71 71 html:function(){
72   - var ins = '<p class=paragrafo > Escolha o modelo:</p>' +
  72 + var ins = '<p class=paragrafo > Escolha o modelo: (utilize as propriedades do mapa para compor a legenda e outros elementos do mapa)</p>' +
73 73 '<table class=lista6 width="200px">';
74 74 if(i3GEO.Interface.ATUAL == "padrao"){
75 75 ins += ' <tr>' +
76   - ' <td><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4l.htm" name=cmodelo /></td>' +
  76 + ' <td><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4l.htm" name=cmodelo /></td>' +
77 77 ' <td>A4 paisagem</td>' +
78 78 ' </tr>' +
79 79 ' <tr>' +
80   - ' <td ><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4p.htm" name=cmodelo /></td>' +
  80 + ' <td ><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4p.htm" name=cmodelo /></td>' +
81 81 ' <td >A4 retrato</td>' +
82 82 ' </tr>';
83 83 }
84 84 ins += ' <tr>' +
85   - ' <td><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4lpaisagempdf.htm" name=cmodelo /></td>' +
  85 + ' <td><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="a4lpaisagempdf.htm" name=cmodelo /></td>' +
86 86 ' <td>A4 com margens pdf</td>' +
87 87 ' </tr>' +
88 88 ' <tr>' +
89   - ' <td><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="geotif.php" name=cmodelo /></td>' +
  89 + ' <td><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="geotif.php" name=cmodelo /></td>' +
90 90 ' <td>Geo Tiff</td>' +
91 91 ' </tr>' +
92 92 ' <tr>' +
93   - ' <td><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="aggpng.php" name=cmodelo /></td>' +
  93 + ' <td><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="aggpng.php" name=cmodelo /></td>' +
94 94 ' <td>Agg/Png alta qualidade</td>' +
95 95 ' </tr>' +
96 96 ' <tr>' +
97   - ' <td><input style="cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="svg.php" name=cmodelo /></td>' +
  97 + ' <td><input style="border:0px solid white;cursor:pointer" onclick=i3GEOF.imprimir.abreI(this) type=radio value="svg.php" name=cmodelo /></td>' +
98 98 ' <td>Svg - vetorial</td>' +
99 99 ' </tr>' +
100 100 '</table>';
... ... @@ -114,8 +114,8 @@ i3GEOF.imprimir = {
114 114 //cria a janela flutuante
115 115 titulo = "Imprimir <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=5&idajuda=49' >&nbsp;&nbsp;&nbsp;</a>";
116 116 janela = i3GEO.janela.cria(
117   - "220px",
118   - "140px",
  117 + "250px",
  118 + "180px",
119 119 "",
120 120 "",
121 121 "",
... ...
ferramentas/imprimir/svg.php
... ... @@ -75,7 +75,22 @@ foreach ($temas as $tema)
75 75 {$classe->set("name",$layer->getmetadata("tema"));}
76 76 }
77 77 }
  78 + if ($layer->getmetadata("classe") == "NAO")
  79 + {
  80 + $nclasses = $layer->numclasses;
  81 + if ($nclasses > 0)
  82 + {
  83 + for($i=0;$i<$nclasses;$i++)
  84 + {
  85 + $classe = $layer->getclass($i);
  86 + $classe->set("name","classeNula");
  87 + }
  88 + }
  89 + }
78 90 }
  91 +$map->save($temp);
  92 +removeLinha("classeNula",$temp);
  93 +$map = ms_newMapObj($temp);
79 94 $o = $map->outputformat;
80 95 if($interface == "openlayers" || $interface == "googlemaps"){
81 96 if($mapexten != ""){
... ...
ferramentas/imprimir/swf.php
... ... @@ -48,7 +48,22 @@ foreach ($temas as $tema)
48 48 {$classe->set("name",$layer->getmetadata("tema"));}
49 49 }
50 50 }
  51 + if ($layer->getmetadata("classe") == "NAO")
  52 + {
  53 + $nclasses = $layer->numclasses;
  54 + if ($nclasses > 0)
  55 + {
  56 + for($i=0;$i<$nclasses;$i++)
  57 + {
  58 + $classe = $layer->getclass($i);
  59 + $classe->set("name","classeNula");
  60 + }
  61 + }
  62 + }
51 63 }
  64 +$map->save($temp);
  65 +removeLinha("classeNula",$temp);
  66 +$map = ms_newMapObj($temp);
52 67 $of = $map->outputformat;
53 68 $of->set("driver","swf");
54 69 $of->set("imagemode","PC256");
... ...
ferramentas/inseretxt/index.js.php
... ... @@ -74,7 +74,8 @@ i3GEOF.inseretxt = {
74 74 $i("i3GEOinseretxtDivComboTemas").style.display = "block";
75 75 if ($i("i3GEOinseretxtComboTemas")){
76 76 $i("i3GEOinseretxtComboTemas").onchange = function(){
77   - i3GEO.mapa.ativaTema($i("i3GEOinseretxtComboTemas").value);
  77 + $i("i3GEOinseretxtDivComboItens").innerHTML = "<p class=paragrafo style=color:red >Aguarde...</p>";
  78 + i3GEO.mapa.ativaTema($i("i3GEOinseretxtComboTemas").value);
78 79 //combodeitens
79 80 i3GEO.util.comboItens(
80 81 "i3GEOinseretxtComboItens",
... ... @@ -373,6 +374,11 @@ i3GEOF.inseretxt = {
373 374 }
374 375 else{
375 376 temp = function(retorno){
  377 + if(retorno.data[0] == " "){
  378 + alert("Nada encontrado.");
  379 + i3GEOF.inseretxt.aguarde.visibility = "hidden";
  380 + return;
  381 + }
376 382 i3GEOF.inseretxt.insere(retorno.data);
377 383 };
378 384 tema = $i("i3GEOinseretxtComboTemas").value;
... ...
ferramentas/inserexy2/index.js.php
... ... @@ -67,7 +67,7 @@ i3GEOF.inserexy = {
67 67 //eventos das guias
68 68 $i("i3GEOinserexyguia1").onclick = function(){
69 69 i3GEO.guias.mostraGuiaFerramenta("i3GEOinserexyguia1","i3GEOinserexyguia");
70   - $i("i3GEOinserexyprojecao").style.display = "block";
  70 + $i("i3GEOinserexyprojecao").style.display = "none";
71 71 };
72 72 $i("i3GEOinserexyguia2").onclick = function(){
73 73 i3GEO.guias.mostraGuiaFerramenta("i3GEOinserexyguia2","i3GEOinserexyguia");
... ... @@ -153,7 +153,7 @@ i3GEOF.inserexy = {
153 153 ' <li><a href="#ancora"><em><div id="i3GEOinserexyguia6" style="text-align:center;left:0px;" >Coordenadas</div></em></a></li>' +
154 154 ' </ul>' +
155 155 '</div><br>' +
156   - '<div id=i3GEOinserexyprojecao style="left:0px;display:block">' +
  156 + '<div id=i3GEOinserexyprojecao style="text-align:left;left:0px;display:none">' +
157 157 ' <p class=paragrafo >Proje&ccedil;&atilde;o:</p>' +
158 158 ' <div id="i3GEOinserexylistaepsg" style="text-align:left;border:1px solid gray;width:300px;overflow:auto;height:60px;display:block;left:1px" >' +
159 159 ' </div>' +
... ... @@ -194,13 +194,13 @@ i3GEOF.inserexy = {
194 194 ' </div>' +
195 195 '</div> '+
196 196 '<div class=guiaobj id="i3GEOinserexyguia3obj" style="left:1px;display:none;">' +
197   - ' <div id=i3GEOinserexytipodig style="left:0px">' +
  197 + ' <div id=i3GEOinserexytipodig style="text-align:left;left:0px">' +
198 198 ' <p class=paragrafo >Tipo de entrada:</p>' +
199 199 ' <table summary="Tipo de entrada" class=lista6 >' +
200 200 ' <tr>' +
201   - ' <td><input style=cursor:pointer title="DMS" onclick="i3GEOF.inserexy.escolhedig(i3GEOinserexydigmascara)" name=i3GEOinserexytipodig type=radio id="i3GEOinserexytipodigmascara" checked /></td>' +
  201 + ' <td><input style="border:0px solid white;cursor:pointer" title="DMS" onclick="i3GEOF.inserexy.escolhedig(i3GEOinserexydigmascara)" name=i3GEOinserexytipodig type=radio id="i3GEOinserexytipodigmascara" checked /></td>' +
202 202 ' <td>Máscara</td>' +
203   - ' <td><input style=cursor:pointer title="DMS" onclick="i3GEOF.inserexy.escolhedig(i3GEOinserexydigcampo)" name=i3GEOinserexytipodig type=radio id="i3GEOinserexytipodigcampo" /></td>' +
  203 + ' <td><input style="border:0px solid white;cursor:pointer" title="DMS" onclick="i3GEOF.inserexy.escolhedig(i3GEOinserexydigcampo)" name=i3GEOinserexytipodig type=radio id="i3GEOinserexytipodigcampo" /></td>' +
204 204 ' <td>Campo &uacute;nico</td>' +
205 205 ' </tr>' +
206 206 ' </table><br>' +
... ... @@ -421,9 +421,11 @@ i3GEOF.inserexy = {
421 421 Function: adicionaClique
422 422  
423 423 Adiciona um ponto no mapa no local onde o usuário clicar com o mouse
  424 +
  425 + As coordenadas são obtidas do objeto objposicaocursor
424 426 */
425 427 adicionaClique: function(){
426   - i3GEOF.inserexy.adiciona(objposicaocursor.ddx+" "+objposicaocursor.ddy);
  428 + i3GEOF.inserexy.adiciona(objposicaocursor.ddx+" "+objposicaocursor.ddy,"cliqueMapa");
427 429 },
428 430 /*
429 431 Function: inserirdd
... ... @@ -540,11 +542,17 @@ i3GEOF.inserexy = {
540 542  
541 543 Adiciona um ponto no mapa
542 544  
  545 + Parametros:
  546 +
  547 + xy {string} - coordenadas x e y separadas por espaço
  548 +
  549 + fonte {string} - (opcional) como a coordenada foi obtida. Se for "cliqueMapa" o parametro projeção será enviado como vazio para o servidor
  550 +
543 551 Veja:
544 552  
545 553 <i3GEO.php.insereSHP>
546 554 */
547   - adiciona: function(xy){
  555 + adiciona: function(xy,fonte){
548 556 if(i3GEOF.inserexy.aguarde.visibility === "visible")
549 557 {return;}
550 558 if(g_tipoacao === "inserexy"){
... ... @@ -557,7 +565,8 @@ i3GEOF.inserexy = {
557 565 n,
558 566 i,
559 567 temparray,
560   - xyn;
  568 + xyn,
  569 + projecao = i3GEOF.inserexy.pegaProjecao();
561 570  
562 571 xyn = xy.split(" ");
563 572 n = xyn.length;
... ... @@ -578,7 +587,10 @@ i3GEOF.inserexy = {
578 587 i3GEO.Interface.atualizaTema(retorno,tema);
579 588 i3GEOF.inserexy.aguarde.visibility = "hidden"
580 589 };
581   - i3GEO.php.insereSHP(temp,tema,item,valoritem,xy,i3GEOF.inserexy.pegaProjecao());
  590 + if(fonte !== undefined){
  591 + projecao = "";
  592 + }
  593 + i3GEO.php.insereSHP(temp,tema,item,valoritem,xy,projecao);
582 594 }
583 595 }
584 596 },
... ...
ferramentas/legenda/index.js.php
... ... @@ -17,7 +17,7 @@ Licenca:
17 17  
18 18 GPL2
19 19  
20   -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
  20 +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
21 21  
22 22 Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
23 23 Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
... ... @@ -893,7 +893,6 @@ i3GEOF.legenda = {
893 893 }
894 894 else
895 895 {$i("i3GEOlegendasimbolos").innerHTML = "<p style=color:red >Ocorreu um erro<br>";}
896   -
897 896 i3GEOF.legenda.aguarde.visibility = "hidden";
898 897 }
899 898 catch(e){alert("Erro: "+ e);i3GEOF.legenda.aguarde.visibility = "hidden";}
... ...
ferramentas/metar/index.js.php
... ... @@ -71,8 +71,8 @@ i3GEOF.metar = {
71 71 i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.metar.lista()");
72 72 }
73 73 if(i3GEO.Interface.ATUAL === "googlemaps"){
74   - metarDragend = GEvent.addListener(i3GeoMap, "dragend", function() {i3GEOF.metar.lista();});
75   - metarZoomend = GEvent.addListener(i3GeoMap, "zoomend", function() {i3GEOF.metar.lista();});
  74 + metarDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.metar.lista();});
  75 + metarZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.metar.lista();});
76 76 }
77 77 i3GEOF.metar.lista();
78 78 }
... ...
ferramentas/opcoes_escala/index.js.php
... ... @@ -73,7 +73,7 @@ i3GEOF.opcoesEscala = {
73 73 i3GEOF.opcoesEscala.parametrosAtuais();
74 74 }
75 75 catch(erro){alert(erro);}
76   - if(i3GEO.Interface.atual !== "padrao")
  76 + if(i3GEO.Interface.ATUAL !== "padrao")
77 77 {alert("Essa operacao afeta apenas a barra de escala utilizada na ferramenta de impressao do mapa");}
78 78  
79 79 },
... ... @@ -150,7 +150,7 @@ i3GEOF.opcoesEscala = {
150 150 titulo = "Barra de escala <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=3' >&nbsp;&nbsp;&nbsp;</a>";
151 151 janela = i3GEO.janela.cria(
152 152 "250px",
153   - "300px",
  153 + "350px",
154 154 "",
155 155 "",
156 156 "",
... ... @@ -189,7 +189,7 @@ i3GEOF.opcoesEscala = {
189 189 i3GEOF.opcoesEscala.aguarde.visibility = "visible";
190 190 var temp = function(){
191 191 i3GEOF.opcoesEscala.aguarde.visibility = "hidden";
192   - if(i3GEO.Interface.atual === "padrao")
  192 + if(i3GEO.Interface.ATUAL === "padrao")
193 193 {i3GEO.atualiza();}
194 194 },
195 195 par = i3GEOF.opcoesEscala.parametrosFormulario(),
... ...
ferramentas/opcoes_fundo/exemplo.htm
1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 2 <html>
3 3 <head>
4   -<script type="text/javascript" src="../../classesjs/i3geo.js"></script>
  4 +<script type="text/javascript" src="../../classesjs/i3geonaocompacto.js"></script>
5 5 </head>
6 6 <body name="ancora" id="i3geo" class=yui-skin-sam >
7 7 <script type="text/javascript">
... ...
ferramentas/opcoes_fundo/index.js.php
... ... @@ -75,7 +75,7 @@ i3GEOF.opcoesFundo = {
75 75 cp.call(p,"corQM",retorno);
76 76 }
77 77 catch(erro){alert(erro);}
78   - if(i3GEO.Interface.atual === "googlemaps")
  78 + if(i3GEO.Interface.ATUAL === "googlemaps")
79 79 {alert("Essa operacao afeta apenas a ferramenta de impressao do mapa");}
80 80 },
81 81 /*
... ...
ferramentas/opcoes_legenda/index.js.php
... ... @@ -74,7 +74,7 @@ i3GEOF.opcoesLegenda = {
74 74 i3GEOF.opcoesLegenda.parametrosAtuais();
75 75 }
76 76 catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}}
77   - if(i3GEO.Interface.atual !== "padrao")
  77 + if(i3GEO.Interface.ATUAL !== "padrao")
78 78 {alert("Essa operacao afeta apenas a legenda utilizada na ferramenta de impressao do mapa");}
79 79 },
80 80 /*
... ... @@ -137,7 +137,7 @@ i3GEOF.opcoesLegenda = {
137 137 $inputText("","","i3GEOopcoesLegendalabelsize","",4,"") +
138 138 '<td></tr>' +
139 139 '<tr><td>&nbsp;</td><td></td></tr>' +
140   - '<tr><td>Fonte:</td>' +
  140 + '<tr><td>Fonte: (teste a fonte mais adequada para apresentação correta da acentuação)</td>' +
141 141 ' <td id=i3GEOopcoesLegendafontef >aguarde...</td>' +
142 142 '</tr></table><br>'+
143 143 '<p class=paragrafo >' +
... ... @@ -161,7 +161,7 @@ i3GEOF.opcoesLegenda = {
161 161 titulo = "Legenda <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=2' >&nbsp;&nbsp;&nbsp;</a>";
162 162 janela = i3GEO.janela.cria(
163 163 "320px",
164   - "350px",
  164 + "390px",
165 165 "",
166 166 "",
167 167 "",
... ... @@ -200,7 +200,7 @@ i3GEOF.opcoesLegenda = {
200 200 i3GEOF.opcoesLegenda.aguarde.visibility = "visible";
201 201 var temp = function(){
202 202 i3GEOF.opcoesLegenda.aguarde.visibility = "hidden";
203   - if(i3GEO.Interface.atual === "padrao")
  203 + if(i3GEO.Interface.ATUAL === "padrao")
204 204 {i3GEO.atualiza();}
205 205 },
206 206 par = i3GEOF.opcoesLegenda.parametrosFormulario(),
... ...
ferramentas/opcoes_tamanho/index.js.php
... ... @@ -118,8 +118,8 @@ i3GEOF.opcoesTamanho = {
118 118 //cria a janela flutuante
119 119 titulo = "Tamanho <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=4' >&nbsp;&nbsp;&nbsp;</a>";
120 120 janela = i3GEO.janela.cria(
121   - "150px",
122   - "120px",
  121 + "190px",
  122 + "130px",
123 123 "",
124 124 "",
125 125 "",
... ...
ferramentas/selecao/index.js.php
... ... @@ -18,7 +18,7 @@ Licenca:
18 18  
19 19 GPL2
20 20  
21   -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
  21 +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
22 22  
23 23 Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
24 24 Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
... ...
ferramentas/tabela/index.js.php
... ... @@ -212,15 +212,15 @@ i3GEOF.tabela = {
212 212 ins += ' <div id=i3GEOtabelaguia1obj style="width:99%">';
213 213 ins += ' <table summary="" class=lista2 >';
214 214 ins += ' <tr>';
215   - ins += ' <td><input style="cursor:pointer" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatiporeg CHECKED /></td>';
  215 + ins += ' <td><input style="cursor:pointer;border:0px solid white;" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatiporeg CHECKED /></td>';
216 216 ins += ' <td>Considerar na listagem a regi&atilde;o mostrada no mapa (se essa opção for desmarcada, ser&aacute; considerada a extens&atilde;o geogr&aacute;fica do mapa inicial)</td>';
217 217 ins += ' </tr>';
218 218 ins += ' <tr>';
219   - ins += ' <td><input style="cursor:pointer" type=checkbox onclick="i3GEOF.tabela.ativaAutoAtualiza(this)" /></td>';
  219 + ins += ' <td><input style="cursor:pointer;border:0px solid white;" type=checkbox onclick="i3GEOF.tabela.ativaAutoAtualiza(this)" /></td>';
220 220 ins += ' <td>Atualiza a tabela após navegar no mapa</td>';
221 221 ins += ' </tr>';
222 222 ins += ' <tr>';
223   - ins += ' <td><input style="cursor:pointer" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatipolista /></td>';
  223 + ins += ' <td><input style="cursor:pointer;border:0px solid white;" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatipolista /></td>';
224 224 ins += ' <td>Mostrar na listagem apenas os selecionados</td>';
225 225 ins += ' </tr>';
226 226 ins += ' </table>';
... ... @@ -430,7 +430,7 @@ i3GEOF.tabela = {
430 430 else
431 431 {stat = "";}
432 432 }
433   - ins += "<td><input title='marca' onclick='i3GEOF.tabela.registraLinha(this)' style='cursor:pointer' type='checkbox' "+stat+" name="+retorno.data[1].registros[i].indice+" /></td>";
  433 + ins += "<td><input title='marca' onclick='i3GEOF.tabela.registraLinha(this)' style='cursor:pointer;border:0px solid white;' type='checkbox' "+stat+" name="+retorno.data[1].registros[i].indice+" /></td>";
434 434 if(stat === "CHECKED")
435 435 {i3GEOF.tabela.registros[retorno.data[1].registros[i].indice] = true;}
436 436 vals = retorno.data[1].registros[i].valores;
... ...
ferramentas/tipoimagem/index.js.php
... ... @@ -95,7 +95,7 @@ i3GEOF.tipoimagem = {
95 95 html:function(){
96 96 var ins = '<p class=paragrafo >Escolha um ou mais filtros de cores. Vc pode editar manualmente a lista de filtros.</p>' +
97 97 '<input type=text size=29 value="" id="i3GEOFtipoImagemListaDeFiltros" style="position:relative;top:-2px" /> ' +
98   - '<input id=i3GEOFtipoImagemListaDeFiltrosOk type=button value="ok"/><br>' +
  98 + '<input id=i3GEOFtipoImagemListaDeFiltrosOk type=button value="Aplicar "/><br>' +
99 99 '<table class=lista6 width="200px">' +
100 100 ' <tr>' +
101 101 ' <td><input onclick="javascript:$i(\'i3GEOFtipoImagemListaDeFiltros\').value = \'\'" style="cursor:pointer" type=radio name=i3GEOtipoimagemtipo value=nenhum ></td>' +
... ... @@ -164,7 +164,7 @@ i3GEOF.tipoimagem = {
164 164 //cria a janela flutuante
165 165 titulo = "Filtro de cores <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=1' >&nbsp;&nbsp;&nbsp;</a>";
166 166 janela = i3GEO.janela.cria(
167   - "300px",
  167 + "310px",
168 168 "260px",
169 169 "",
170 170 "",
... ...
ferramentas/upload/index.js.php
... ... @@ -83,8 +83,16 @@ i3GEOF.upload = {
83 83 '<p class="paragrafo" >shp: <br><input class=digitar type="file" size=42 name="i3GEOuploadshp" style="top:0px;left:0px;cursor:pointer;"></p>' +
84 84 '<p class="paragrafo" >shx: <br><input class=digitar type="file" size=42 name="i3GEOuploadshx" style="top:0px;left:0px;cursor:pointer;"></p>' +
85 85 '<p class="paragrafo" >dbf: <br><input class=digitar type="file" size=42 name="i3GEOuploaddbf" style="top:0px;left:0px;cursor:pointer;"></p>' +
  86 + '<p class="paragrafo" >Tipo: ' +
  87 + ' <select id=tipo name=tipo >' +
  88 + ' <option value="">não conhecido</option>' +
  89 + ' <option value="1">pontual</option>' +
  90 + ' <option value="5">poligonal</option>' +
  91 + ' <option value="3">linear</option>' +
  92 + ' </select>' +
  93 + '</p>' +
86 94 '<p class=paragrafo >Proje&ccedil;&atilde;o:</p>' +
87   - '<div id=i3GEOuploadListaepsg width="98%" style="border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
  95 + '<div id=i3GEOuploadListaepsg width="98%" style="text-align:left;border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
88 96 '<br><p class="paragrafo" ><input id=i3GEOuploadbotao1 type="button" value="Criar camada" size=12 name="submit">' +
89 97 '<input type=hidden name=g_sid value="'+i3GEO.configura.sid+'" >' +
90 98 '<input type="hidden" name="MAX_FILE_SIZE" value="100000">' +
... ... @@ -106,7 +114,7 @@ i3GEOF.upload = {
106 114 titulo = "Upload de shapefile <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=4&idajuda=27' >&nbsp;&nbsp;&nbsp;</a>";
107 115 janela = i3GEO.janela.cria(
108 116 "320px",
109   - "360px",
  117 + "400px",
110 118 "",
111 119 "",
112 120 "",
... ...
ferramentas/upload/upload.php
... ... @@ -50,7 +50,8 @@ if (isset($_FILES[&#39;i3GEOuploadshp&#39;][&#39;name&#39;]))
50 50 $novolayer->setmetadata("TEMA",$_FILES['i3GEOuploadshp']['name']);
51 51 $novolayer->setmetadata("DOWNLOAD","SIM");
52 52 $sfileObj = ms_newShapefileObj($dirmap."/".$_FILES['i3GEOuploadshp']['name'], -1);
53   - $tipo = $sfileObj->type;
  53 + if(!isset($tipo) || $tipo == "")
  54 + {$tipo = $sfileObj->type;}
54 55 if ($tipo == 1){$novolayer->set("type",MS_LAYER_POINT);} // ponto
55 56 if ($tipo == 3){$novolayer->set("type",MS_LAYER_LINE);}
56 57 if ($tipo == 5){$novolayer->set("type",MS_LAYER_POLYGON);}
... ...
ferramentas/uploaddbf/index.js.php
... ... @@ -92,7 +92,7 @@ i3GEOF.uploaddbf = {
92 92  
93 93 '<p class="paragrafo" >arquivo: <br><input class=digitar type="file" size=42 name="i3GEOuploaddbffile" style="top:0px;left:0px;cursor:pointer;"></p>' +
94 94 '<p class=paragrafo >Proje&ccedil;&atilde;o:</p>' +
95   - '<div id=i3GEOuploaddbfListaepsg width="98%" style="border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
  95 + '<div id=i3GEOuploaddbfListaepsg width="98%" style="text-align:left;border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
96 96 '<br><p class="paragrafo" ><input id=i3GEOuploaddbfbotao1 type="button" value="Criar camada" size=12 name="submit">' +
97 97 '<input type=hidden name=g_sid value="'+i3GEO.configura.sid+'" >' +
98 98 '<input type="hidden" name="MAX_FILE_SIZE" value="100000">' +
... ...
ferramentas/uploadgpx/index.js.php
... ... @@ -88,7 +88,7 @@ i3GEOF.uploadgpx = {
88 88 var ins = '<form id=i3GEOuploadgpxf target="i3GEOuploadgpxiframe" action="'+i3GEO.configura.locaplic+'/ferramentas/uploadgpx/upload.php" method="post" ENCTYPE="multipart/form-data">' +
89 89 '<p class="paragrafo" >Arquivo gpx: <br><input class=digitar type="file" size=42 name="i3GEOuploadgpx" style="top:0px;left:0px;cursor:pointer;"></p>' +
90 90 '<p class=paragrafo >Proje&ccedil;&atilde;o:</p>' +
91   - '<div id=i3GEOuploadgpxListaepsg width="98%" style="border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
  91 + '<div id=i3GEOuploadgpxListaepsg width="98%" style="text-align:left;border:1px solid gray;left:0px;overflow:auto;height:60px"></div>' +
92 92 '<br><p class="paragrafo" ><input id=i3GEOuploadgpxbotao1 type="button" value="Criar camada" size=12 name="submit">' +
93 93 '<input type=hidden name=g_sid value="'+i3GEO.configura.sid+'" >' +
94 94 '<input type="hidden" name="MAX_FILE_SIZE" value="100000">' +
... ...
ferramentas/wiki/index.js.php
... ... @@ -65,8 +65,8 @@ i3GEOF.wiki = {
65 65 i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.wiki.lista()");
66 66 }
67 67 if(i3GEO.Interface.ATUAL === "googlemaps"){
68   - wikiDragend = GEvent.addListener(i3GeoMap, "dragend", function() {i3GEOF.wiki.lista();});
69   - wikiZoomend = GEvent.addListener(i3GeoMap, "zoomend", function() {i3GEOF.wiki.lista();});
  68 + wikiDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.wiki.lista();});
  69 + wikiZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.wiki.lista();});
70 70 }
71 71 i3GEOF.wiki.lista();
72 72 }
... ... @@ -123,8 +123,8 @@ i3GEOF.wiki = {
123 123 i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.wiki.lista()");
124 124 }
125 125 if(i3GEO.Interface.ATUAL === "googlemaps"){
126   - GEvent.removeListener(wikiDragend);
127   - GEvent.removeListener(wikiZoomend);
  126 + google.maps.event.removeListener(wikiDragend);
  127 + google.maps.event.removeListener(wikiZoomend);
128 128 }
129 129 };
130 130 YAHOO.util.Event.addListener(janela[0].close, "click", temp);
... ...
imagens/visual/default/left.png 0 → 100644

256 Bytes

mashups/index.html
... ... @@ -24,9 +24,9 @@ body,td
24 24 <p><b>OpenLayers</b></p>
25 25 <p>O <a href='http://openlayers.org' >OpenLayers</a> é uma biblioteca em javascript bastante popular. Possuí uma interface simples mas que pode
26 26 conter um grande número de funcionalidades.</p>
27   -<p>Endereço: <a href='openlayers.php'>i3geo/mashups/openlayers.php</a></p>
28   -<p>Exemplo: <a href='openlayers.php?temas=biomashp&largura=600'>i3geo/mashups/openlayers.php?temas=biomashp</a></p>
29   -
  27 +<p>Para ver todos os parâmetros: <a href='openlayers.php'>i3geo/mashups/openlayers.php</a></p>
  28 +<p>Exemplo: todas as opções e um tema adicionado <a href='openlayers.php?temas=biomashp&largura=600'>openlayers.php?temas=biomashp&largura=600</a></p>
  29 +<p>Exemplo: Botões principais e barra de zoom maior <a href='openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10'>openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a>
30 30 </body>
31 31 <script>
32 32 /*
... ...
menutemas/admin.db
No preview for this file type
temas/biomashp.map
... ... @@ -43,6 +43,7 @@ MAP
43 43 ANGLE 360
44 44 COLOR 138 134 150
45 45 OPACITY 100
  46 + SYMBOL 0
46 47 END
47 48 END
48 49 CLASS
... ...