Commit 2efb461a1ac747a300a745a98a11a7c270650630
1 parent
bb2667b0
Exists in
master
and in
7 other branches
Inclusão de menu de contexto no corpo do mapa
Showing
26 changed files
with
502 additions
and
72 deletions
Show diff stats
No preview for this file type
aplicmap/geral.htm
... | ... | @@ -307,6 +307,8 @@ i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = true |
307 | 307 | i3GEO.barraDeBotoes.PERMITEFECHAR = false |
308 | 308 | i3GEO.barraDeBotoes.PERMITEDESLOCAR = false |
309 | 309 | i3GEO.idioma.IDSELETOR = "seletorIdiomas" |
310 | +i3GEO.interface.ATIVAMENUCONTEXTO = true | |
311 | + | |
310 | 312 | i3GEO.inicia(); |
311 | 313 | |
312 | 314 | //esconde a opção de inclusão da escala quando a resolução da tela for muito pequena | ... | ... |
classesjs/classe_barradebotoes.js
... | ... | @@ -568,7 +568,7 @@ i3GEO.barraDeBotoes = { |
568 | 568 | eval(c) |
569 | 569 | }; |
570 | 570 | var oFieldContextMenuItemData = [ |
571 | - { text: "<b>Fechar</b>"}, | |
571 | + { text: " <span class='container-close'></span>"}, | |
572 | 572 | { text: "Fechar barra", onclick: { fn: executar, obj: "i3GEO.barraDeBotoes.fecha('"+idbarra+"')" } }, |
573 | 573 | { text: "Barra normal", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=false;i3GEO.barraDeBotoes.PERMITEFECHAR=true;i3GEO.barraDeBotoes.PERMITEDESLOCAR=true;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, |
574 | 574 | { text: "Barra fixa", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=true;i3GEO.barraDeBotoes.PERMITEFECHAR=false;i3GEO.barraDeBotoes.PERMITEDESLOCAR=false;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, | ... | ... |
classesjs/classe_configura.js
... | ... | @@ -305,7 +305,13 @@ i3GEO.configura = { |
305 | 305 | "zoom": |
306 | 306 | {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"}, |
307 | 307 | "contexto": |
308 | - {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"} | |
308 | + {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"}, | |
309 | + "identifica_contexto": | |
310 | + {ff:"pointer",ie:"pointer"}, | |
311 | + "pan_contexto": | |
312 | + {ff:"/imagens/cursores/pan_contexto.png",ie:"/imagens/cursores/pan_contexto.cur"}, | |
313 | + "zoom_contexto": | |
314 | + {ff:"/imagens/cursores/zoom_contexto.png",ie:"/imagens/cursores/zoom_contexto.cur"} | |
309 | 315 | }, |
310 | 316 | /* |
311 | 317 | Variable: listaDePropriedadesDoMapa |
... | ... | @@ -444,7 +450,10 @@ i3GEO.configura = { |
444 | 450 | tipo:"dinamico", |
445 | 451 | dica:$trad("d3"), |
446 | 452 | funcaoonclick:function(){ |
447 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
453 | + var temp = "zoom"; | |
454 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
455 | + var temp = "zoom_contexto"; | |
456 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
448 | 457 | if(!$i("i3geoboxZoom")) |
449 | 458 | i3GEO.navega.zoomBox.criaBox(); |
450 | 459 | g_operacao='navega'; |
... | ... | @@ -468,11 +477,22 @@ i3GEO.configura = { |
468 | 477 | i3GEO.barraDeBotoes.ativaIcone("pan"); |
469 | 478 | if($i(i3GEO.interface.IDMAPA)){ |
470 | 479 | $i(i3GEO.interface.IDMAPA).title = ""; |
471 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
480 | + var temp = "pan"; | |
481 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
482 | + var temp = "pan_contexto"; | |
483 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
472 | 484 | } |
473 | 485 | marcadorZoom = ""; |
474 | - panMapaInicia = function(){ | |
486 | + panMapaInicia = function(exy){ | |
475 | 487 | if ($i("img") && (g_tipoacao == "pan")){ |
488 | + try{ | |
489 | + if(navm) | |
490 | + {var k = event.button;} | |
491 | + else | |
492 | + {var k = exy.button;} | |
493 | + if(k == 2){return;} | |
494 | + } | |
495 | + catch(h){} | |
476 | 496 | g_panM = "sim"; |
477 | 497 | if($i("corpoMapa")){ |
478 | 498 | leftinicial = parseInt($i(i3GEO.interface.IDCORPO).style.left); |
... | ... | @@ -570,7 +590,10 @@ i3GEO.configura = { |
570 | 590 | { |
571 | 591 | if($i("img")){ |
572 | 592 | $i("img").title = ""; |
573 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic); | |
593 | + var temp = "identifica"; | |
594 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
595 | + var temp = "identifica_contexto"; | |
596 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
574 | 597 | } |
575 | 598 | i3GEO.barraDeBotoes.ativaIcone("identifica"); |
576 | 599 | g_tipoacao='identifica'; |
... | ... | @@ -657,7 +680,6 @@ i3GEO.configura = { |
657 | 680 | //i3GEO.janela.tip("<img id='marcaIdentifica' src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); |
658 | 681 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); |
659 | 682 | i3GEO.util.posicionaImagemNoMapa("marcaIdentifica"); |
660 | - | |
661 | 683 | balloon = new Balloon; |
662 | 684 | balloon.delayTime = 0; |
663 | 685 | var res = "<div style=text-align:left >"+res+"</div>"; |
... | ... | @@ -666,9 +688,21 @@ i3GEO.configura = { |
666 | 688 | } |
667 | 689 | } |
668 | 690 | } |
669 | - if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);} | |
691 | + if($i("img")){ | |
692 | + var temp = "zoom"; | |
693 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
694 | + var temp = "identifica_contexto"; | |
695 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
696 | + } | |
697 | + } | |
698 | + catch(e){ | |
699 | + if($i("img")){ | |
700 | + var temp = "identifica"; | |
701 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
702 | + var temp = "identifica_contexto"; | |
703 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
704 | + } | |
670 | 705 | } |
671 | - catch(e){if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);}} | |
672 | 706 | }; |
673 | 707 | i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5"); |
674 | 708 | }; | ... | ... |
classesjs/classe_eventos.js
... | ... | @@ -241,7 +241,7 @@ i3GEO.eventos = { |
241 | 241 | |
242 | 242 | Executa as funções armazenadas em MOUSECLIQUE. |
243 | 243 | */ |
244 | - mousecliqueMapa: function(){ | |
244 | + mousecliqueMapa: function(exy){ | |
245 | 245 | if (i3GEO.eventos.MOUSECLIQUE.length > 0){ |
246 | 246 | var f = i3GEO.eventos.MOUSECLIQUE.length-1; |
247 | 247 | if (f >= 0){ |
... | ... | @@ -410,18 +410,35 @@ i3GEO.eventos = { |
410 | 410 | docMapa.onmousedown = function(exy){ |
411 | 411 | try{ |
412 | 412 | i3GEO.eventos.posicaoMouseMapa(exy); |
413 | + if(navm) | |
414 | + {var k = event.button;} | |
415 | + else | |
416 | + {var k = exy.button;} | |
417 | + if(k != 2) | |
413 | 418 | i3GEO.eventos.mousedownMapa(); |
414 | 419 | } |
415 | 420 | catch(e){var e = "";} |
416 | 421 | }; |
417 | - docMapa.onclick = function(){ | |
418 | - try | |
419 | - {i3GEO.eventos.mousecliqueMapa();} | |
422 | + docMapa.onclick = function(exy){ | |
423 | + try{ | |
424 | + if(navm) | |
425 | + {var k = event.button;} | |
426 | + else | |
427 | + {var k = exy.button;} | |
428 | + if(k != 2) | |
429 | + i3GEO.eventos.mousecliqueMapa(); | |
430 | + } | |
420 | 431 | catch(e){var e = "";} |
421 | 432 | }; |
422 | - docMapa.onmouseup = function(){ | |
423 | - try | |
424 | - {i3GEO.eventos.mouseupMapa();} | |
433 | + docMapa.onmouseup = function(exy){ | |
434 | + try{ | |
435 | + if(navm) | |
436 | + {var k = event.button;} | |
437 | + else | |
438 | + {var k = exy.button;} | |
439 | + if(k != 2) | |
440 | + i3GEO.eventos.mouseupMapa(); | |
441 | + } | |
425 | 442 | catch(e){var e = "";} |
426 | 443 | }; |
427 | 444 | }, | ... | ... |
classesjs/classe_interface.js
... | ... | @@ -83,6 +83,18 @@ i3GEO.interface = { |
83 | 83 | */ |
84 | 84 | IDMAPA: "", |
85 | 85 | /* |
86 | + Property: ATIVAMENUCONTEXTO | |
87 | + | |
88 | + Indica se o menu de contexto deve ser ativado | |
89 | + | |
90 | + Type: | |
91 | + {Boolean} | |
92 | + | |
93 | + Default: | |
94 | + {true} | |
95 | + */ | |
96 | + ATIVAMENUCONTEXTO: false, | |
97 | + /* | |
86 | 98 | Function: redesenha |
87 | 99 | |
88 | 100 | Aplica o método redesenha da interface atual |
... | ... | @@ -171,8 +183,46 @@ i3GEO.interface = { |
171 | 183 | ins += "<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>"; |
172 | 184 | ins += "</table>"; |
173 | 185 | $i(i3GEO.interface.IDCORPO).innerHTML = ins; |
174 | - i3GEO.interface.IDMAPA = "img"; | |
186 | + i3GEO.interface.IDMAPA = "img"; | |
175 | 187 | }, |
188 | + /* | |
189 | + Function: ativaMenuContexto | |
190 | + | |
191 | + Ativa o menu de contexto acionado com o botão direito do mouse | |
192 | + | |
193 | + */ | |
194 | + ativaMenuContexto: function(){ | |
195 | + //remove o menu de contexto se existir | |
196 | + var temp = $i("contexto_"+i3GEO.interface.IDMAPA); | |
197 | + if(temp){ | |
198 | + temp.parentNode.removeChild(temp); | |
199 | + } | |
200 | + function executar(a,b,c){ | |
201 | + eval(c); | |
202 | + }; | |
203 | + var oFieldContextMenuItemData = [ | |
204 | + { text: " <span class='container-close'></span>"}, | |
205 | + { text: "<img class='rosamais' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Aproxima</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
206 | + { text: "<img class='rosamenos' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Afasta</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
207 | + { text: "<img class='rosanorte' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Norte</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','norte','','','');" } }, | |
208 | + { text: "<img class='rosasul' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Sul</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','sul','','','');" } }, | |
209 | + { text: "<img class='rosaleste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Leste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','leste','','','');" } }, | |
210 | + { text: "<img class='rosaoeste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Oeste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','oeste','','','');" } }, | |
211 | + { text: "Captura", onclick: { fn: executar, obj: "i3GEO.gadgets.quadros.listaImagens();" } } | |
212 | + ]; | |
213 | + var oFieldContextMenu = new YAHOO.widget.ContextMenu( | |
214 | + "contexto_"+i3GEO.interface.IDMAPA,{ | |
215 | + trigger: i3GEO.interface.IDMAPA, | |
216 | + itemdata: oFieldContextMenuItemData, | |
217 | + lazyload: true | |
218 | + } | |
219 | + ); | |
220 | + var onFieldMenuRender = function(){ | |
221 | + eval("var id = 'contexto_"+i3GEO.interface.IDMAPA+"'"); | |
222 | + $i(id).style.zIndex = 50000; | |
223 | + }; | |
224 | + oFieldContextMenu.subscribe("render", onFieldMenuRender); | |
225 | + }, | |
176 | 226 | inicia:function(){ |
177 | 227 | if ($i("contemImg")) |
178 | 228 | {var elemento = "contemImg";} |
... | ... | @@ -227,6 +277,8 @@ i3GEO.interface = { |
227 | 277 | { |
228 | 278 | if (i3GEO.configura.map3d == ""){document.getElementById("botao3d").style.display="none";} |
229 | 279 | } |
280 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
281 | + i3GEO.interface.padrao.ativaMenuContexto(); | |
230 | 282 | } |
231 | 283 | }, |
232 | 284 | /* | ... | ... |
classesjs/classe_navega.js
... | ... | @@ -290,6 +290,9 @@ i3GEO.navega = { |
290 | 290 | //YAHOO.log("panfixo", "i3geo"); |
291 | 291 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
292 | 292 | if(sid != ""){i3GEO.configura.sid = sid;} |
293 | + if(w == ""){var w = i3GEO.parametros.w;} | |
294 | + if(h == ""){var h = i3GEO.parametros.h;} | |
295 | + if(escala == ""){var escala = i3GEO.parametros.mapscale;} | |
293 | 296 | if (direcao == "norte"){ |
294 | 297 | var y = h / 6; |
295 | 298 | var x = w / 2; |
... | ... | @@ -323,7 +326,7 @@ i3GEO.navega = { |
323 | 326 | var x = w / 6; |
324 | 327 | } |
325 | 328 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
326 | - i3GEO.php.pan(i3GEO.atualiza,escala,tipo,x,y); | |
329 | + i3GEO.php.pan(i3GEO.atualiza,escala,"",x,y); | |
327 | 330 | }, |
328 | 331 | /* |
329 | 332 | Function: mostraRosaDosVentos |
... | ... | @@ -533,10 +536,14 @@ i3GEO.navega = { |
533 | 536 | }; |
534 | 537 | novoel.onmouseup = function(){i3GEO.navega.zoomBox.termina()}; |
535 | 538 | document.body.appendChild(novoel); |
536 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
537 | - if($i("img")){ | |
539 | + | |
540 | + if(i3GEO.interface.ATUAL == "padrao"){ | |
538 | 541 | $i("img").title = ""; |
539 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
542 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
543 | + var temp = "zoom"; | |
544 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
545 | + var temp = "zoom_contexto"; | |
546 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
540 | 547 | } |
541 | 548 | } |
542 | 549 | }, | ... | ... |
classesjs/classe_selecao.js
... | ... | @@ -207,7 +207,10 @@ i3GEO.selecao = { |
207 | 207 | i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxSel",i3GEO.configura.locaplic); |
208 | 208 | if($i("img")){ |
209 | 209 | $i("img").title = ""; |
210 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
210 | + var temp = "zoom"; | |
211 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
212 | + var temp = "zoom_contexto"; | |
213 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
211 | 214 | } |
212 | 215 | }, |
213 | 216 | /* | ... | ... |
classesjs/compactados/classe_barradebotoes_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.barraDeBotoes={BARRAS:new Array(),AUTOALTURA:false,TRANSICAOSUAVE:true,OPACIDADE:65,PERMITEFECHAR:true,PERMITEDESLOCAR:true,ATIVAMENUCONTEXTO:false,LISTABOTOES:i3GEO.configura.funcoesBotoes.botoes,BOTAOPADRAO:"pan",BOTAOCLICADO:"",ativaIcone:function(icone){i3GEO.barraDeBotoes.BOTAOCLICADO=icone;var ko=i3GEO.barraDeBotoes.LISTABOTOES.length-1;if(ko>=0){do{var temp=$i(i3GEO.barraDeBotoes.LISTABOTOES[ko].iddiv);if(i3GEO.barraDeBotoes.LISTABOTOES[ko].tipo=="dinamico"&&temp){var ist=temp.style;ist.borderWidth="1px";ist.borderColor='white';ist.borderLeftColor='rgb(50,50,50)';ist.borderBottomColor='rgb(50,50,50)'}}while(ko--)}if($i(icone)){with($i(icone).style){borderColor='white';borderWidth="1px"}}},ativaBotoes:function(padrao){if(arguments.length==0){var padrao=i3GEO.barraDeBotoes.BOTAOPADRAO}i3GEO.barraDeBotoes.BOTAOCLICADO=padrao;var l=i3GEO.barraDeBotoes.LISTABOTOES;var b=l.length-1;if(b>=0){do{if($i(l[b].iddiv)){if(l[b].conteudo){eval('$i(l[b].iddiv).innerHTML = "'+l[b].conteudo+'"')}if(l[b].dica){eval('$i("'+l[b].iddiv+'").onmouseover = function(){i3GEO.ajuda.mostraJanela("'+l[b].dica+'","");}');eval('$i("'+l[b].iddiv+'").onmouseout = function(){i3GEO.ajuda.mostraJanela("");};')}if(l[b].funcaoonclick){$i(l[b].iddiv).onclick=l[b].funcaoonclick;if(l[b].iddiv==padrao){l[b].funcaoonclick()}}if(l[b].constroiconteudo){eval(l[b].constroiconteudo)}}}while(b--)}},ativaBarraDeZoom:function(){$i("vertMaisZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Amplia o mapa mantendo o centro atual.')};$i("vertMaisZoom").onclick=function(){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=-1;$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomin';i3GEO.navega.zoomin();g_fatordezoom=0};$i("vertMenosZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Reduz o mapa mantendo o centro atual.')};$i("vertMenosZoom").onclick=function(){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=1;$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomout';i3GEO.navega.zoomout();g_fatordezoom=0}},inicializaBarra:function(idconteudo,idconteudonovo,barraZoom,x,y){var wj="36px";var recuo="0px";var novoel=document.createElement("div");novoel.id=idconteudonovo;novoel.style.display="block";novoel.style.border="1px solid gray";novoel.style.background="white";if(i3GEO.barraDeBotoes.TRANSICAOSUAVE){if(navm){novoel.style.filter='alpha(opacity='+i3GEO.barraDeBotoes.OPACIDADE+')'}else{novoel.style.opacity=i3GEO.barraDeBotoes.OPACIDADE/100}}else{if(navm){novoel.style.filter='alpha(opacity=90)'}else{novoel.style.opacity=.85}}var temp="";if(barraZoom==true){if(navn){temp+='<div style="text-align:center;position:relative;left:9px" >'}var estilo="top:4px;";if(navm){var estilo="top:4px;left:-2px;"}temp+='<div id="vertMaisZoom" style="'+estilo+'"></div><div id="vertBGDiv" name="vertBGDiv" tabindex="0" x2:role="role:slider" state:valuenow="0" state:valuemin="0" state:valuemax="200" title="Zoom" >';temp+='<div id="vertHandleDivZoom" ><img alt="" class="slider" src="'+i3GEO.util.$im("branco.gif")+'" /></div></div>';if(navm)temp+='<div id=vertMenosZoom style="left:-1px;" ></div>';else temp+='<div id=vertMenosZoom ></div>';if(navn){temp+='</div>'}}temp+='<div id="'+idconteudonovo+'_" style="left:'+recuo+';top:-6px;" ></div></div>';novoel.innerHTML=temp;novoel.onmouseover=function(){if($i("i3geo_rosa")){$i("i3geo_rosa").style.display="none"}if(i3GEO.barraDeBotoes.OPACIDADE){if(navm){novoel.style.filter='alpha(opacity=90)'}else{novoel.style.opacity=.85}}};novoel.onmouseout=function(){if(i3GEO.barraDeBotoes.TRANSICAOSUAVE){if(navm){novoel.style.filter='alpha(opacity='+i3GEO.barraDeBotoes.OPACIDADE+')'}else{novoel.style.opacity=i3GEO.barraDeBotoes.OPACIDADE/100}}}document.body.appendChild(novoel);if(i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO)i3GEO.util.mudaCursor(i3GEO.configura.cursores,"contexto",idconteudonovo,i3GEO.configura.locaplic);if($i(idconteudo)){$i(idconteudonovo+"_").innerHTML=$i(idconteudo).innerHTML;$i(idconteudo).innerHTML="";if(i3GEO.barraDeBotoes.AUTOALTURA){var elementos=$i(idconteudonovo+"_").getElementsByTagName("img");if(elementos[0].id=="sobeferramentas"){try{var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");var alturadisponivel=i3GEO.parametros.h-4;var numerobotoes=parseInt(alturadisponivel/30);var nelementos=elementos.length;var i=0;do{elementos[i].style.display="none";var i=i+1}while(i<nelementos)var i=0;do{elementos[i].style.display="inline";var i=i+1}while(i<numerobotoes)}catch(e){}if(i<=numerobotoes){if($i("sobeferramentas")){$i("sobeferramentas").style.display="none"}if($i("desceferramentas")){$i("desceferramentas").style.display="none"}}}}}YAHOO.namespace("janelaBotoes.xp");if(i3GEO.barraDeBotoes.AUTOALTURA==false)YAHOO.janelaBotoes.xp.panel=new YAHOO.widget.Panel(idconteudonovo,{width:wj,fixedcenter:false,constraintoviewport:false,underlay:"none",close:i3GEO.barraDeBotoes.PERMITEFECHAR,visible:true,draggable:i3GEO.barraDeBotoes.PERMITEDESLOCAR,modal:false});else YAHOO.janelaBotoes.xp.panel=new YAHOO.widget.Panel(idconteudonovo,{height:i3GEO.parametros.h-4,width:wj,fixedcenter:false,constraintoviewport:false,underlay:"none",close:i3GEO.barraDeBotoes.PERMITEFECHAR,visible:true,draggable:i3GEO.barraDeBotoes.PERMITEDESLOCAR,modal:false});if((barraZoom==true)&&$i("img")){i3GEO.barraDeBotoes.ativaBarraDeZoom();verticalSlider=YAHOO.widget.Slider.getVertSlider("vertBGDiv","vertHandleDivZoom",0,70);verticalSlider.onChange=function(offsetFromStart){g_fatordezoom=(offsetFromStart-35)/5};verticalSlider.setValue(35,true);if($i("vertBGDiv")){$i("vertBGDiv").onmouseup=function(){i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,i3geo_ns)g_fatordezoom=0;verticalSlider.setValue(35,true)}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousedown=function(){i3GEO.barraDeBotoes.BOTAOCLICADO='slidezoom';if(!$i("imgtemp")){iclone=document.createElement('IMG');iclone.style.position="absolute";iclone.id="imgtemp";iclone.style.border="1px solid blue";$i("img").parentNode.appendChild(iclone)}var iclone=$i("imgtemp");var corpo=$i("img");if(!corpo){return}iclone.src=corpo.src;iclone.style.width=i3GEO.parametros.w;iclone.style.heigth=i3GEO.parametros.h;iclone.style.top=corpo.style.top;iclone.style.left=corpo.style.left;$i("img").style.display="none";iclone.style.display="block"}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousemove=function(){var iclone=$i("imgtemp");var corpo=$i("img");if(!corpo){return}var nw=i3GEO.parametros.w;var nh=i3GEO.parametros.h;var nt=0;var nl=0;i3geo_ns=parseInt(i3GEO.parametros.mapscale);if((g_fatordezoom>0)&&(g_fatordezoom<7)){g_fatordezoom=g_fatordezoom+1;var velhoh=parseInt(iclone.style.height);var velhow=parseInt(iclone.style.width);var nh=i3GEO.parametros.h/g_fatordezoom;var nw=i3GEO.parametros.w/g_fatordezoom;var t=parseInt(iclone.style.top);var l=parseInt(iclone.style.left);var nt=t+((velhoh-nh)*.5);var nl=l+((velhow-nw)*.5);var fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala)}if((g_fatordezoom<0)&&(g_fatordezoom>-7)){g_fatordezoom=g_fatordezoom-1;var velhoh=parseInt(iclone.style.height);var velhow=parseInt(iclone.style.width);var nh=i3GEO.parametros.h*g_fatordezoom*-1;var nw=i3GEO.parametros.w*g_fatordezoom*-1;var t=parseInt(iclone.style.top);var l=parseInt(iclone.style.left);var nt=t-((nh-velhoh)*.5);var nl=l-((nw-velhow)*.5);var fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala)}if(iclone){iclone.style.width=nw;iclone.style.height=nh;if(iclone.style.pixelTop){iclone.style.pixelTop=nt}else{iclone.style.top=nt+"px"}if(iclone.style.pixelLeft){iclone.style.pixelLeft=nl}else{iclone.style.left=nl+"px"}}if($i("i3geo_escalanum")){$i("i3geo_escalanum").value=i3geo_ns}}}}YAHOO.janelaBotoes.xp.panel.render();if(i3GEO.barraDeBotoes.AUTOALTURA==true){var y=y-i3GEO.interface.BARRABOTOESTOP+2;var x=x-3}YAHOO.janelaBotoes.xp.panel.moveTo(x,y);if($i("sobeferramentas")){$i("sobeferramentas").onclick=function(){var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");var nelementos=elementos.length;if(elementos[0].style.display=="inline"&&elementos[0].id==""){return}if(elementos[1].style.display=="inline"&&elementos[1].id==""){return}if(nelementos>0){var mostra=elementos[0];var i=0;do{if(elementos[i].style){if(elementos[i].style.display=="inline"&&elementos[i].id==""){break}if(elementos[i].style.display=="none"&&elementos[i].id==""){var mostra=elementos[i]}}var i=i+1}while(i<nelementos)mostra.style.display="inline";var i=nelementos-1;var mostra=elementos[i];do{if(elementos[i].style){if(elementos[i].style.display=="inline"){var mostra=elementos[i];break}}var i=i-1}while(i>=0)mostra.style.display="none"}}}if($i("desceferramentas")){$i("desceferramentas").onclick=function(){var tipo="inline";if($i(idconteudonovo+"_")){var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");if(elementos[elementos.length-1].style.display==tipo){return}var nelementos=elementos.length;if(nelementos>0){var i=0;do{var e=elementos[i];if(e.style){if((e.style.display=="block")||(e.style.display=="inline")||(e.style.display=="")){if(e.id==""){e.style.display="none";break}}}var i=i+1}while(i<nelementos)var i=nelementos-1;var mostra=elementos[i];do{var e=elementos[i];if(e.style){if(e.style.display==tipo){break}if(e.style.display=="none"){var mostra=e}}var i=i-1}while(i>=0)mostra.style.display=tipo}}}}i3GEO.barraDeBotoes.BARRAS.push(YAHOO.janelaBotoes.xp.panel);YAHOO.janelaBotoes.xp.panel.show();if(i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO){i3GEO.barraDeBotoes.ativaMenuContexto(idconteudonovo)}},ativaMenuContexto:function(idbarra){function executar(a,b,c){eval(c)};var oFieldContextMenuItemData=[{text:"<b>Fechar</b>"},{text:"Fechar barra",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.fecha('"+idbarra+"')"}},{text:"Barra normal",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.AUTOALTURA=false;i3GEO.barraDeBotoes.PERMITEFECHAR=true;i3GEO.barraDeBotoes.PERMITEDESLOCAR=true;i3GEO.barraDeBotoes.recria('"+idbarra+"')"}},{text:"Barra fixa",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.AUTOALTURA=true;i3GEO.barraDeBotoes.PERMITEFECHAR=false;i3GEO.barraDeBotoes.PERMITEDESLOCAR=false;i3GEO.barraDeBotoes.recria('"+idbarra+"')"}},{text:"Remove transição",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.TRANSICAOSUAVE=false;"}},{text:"Ativa transição",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.TRANSICAOSUAVE=true;"}}];var oFieldContextMenu=new YAHOO.widget.ContextMenu("contexto_"+idbarra,{trigger:idbarra,itemdata:oFieldContextMenuItemData,lazyload:true});var onFieldMenuRender=function(){eval("var id = 'contexto_"+idbarra+"'");$i(id).style.zIndex=50000};oFieldContextMenu.subscribe("render",onFieldMenuRender)},reativa:function(indice){if(arguments.length==1)i3GEO.barraDeBotoes.BARRAS[indice].show();else{var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){i3GEO.barraDeBotoes.BARRAS[i].show()}}},recria:function(id){var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){if(i3GEO.barraDeBotoes.BARRAS[i].id==id){var temp=$i("contexto_"+id);if(temp){temp.parentNode.removeChild(temp)}var novoel=document.createElement("div");novoel.id="barraTemporaria"+i;novoel.innerHTML=$i(i3GEO.barraDeBotoes.BARRAS[i].id+"_").innerHTML;document.body.appendChild(novoel);var barraZoom=false;var temp=$i("vertMaisZoom");if(temp){if(navm)var temp=temp.parentNode;else var temp=temp.parentNode.parentNode;if(temp.id==id){var barraZoom=true}}var x=parseInt($i(i3GEO.barraDeBotoes.BARRAS[i].id+"_c").style.left);var y=parseInt($i(i3GEO.interface.IDCORPO).style.top)+10;i3GEO.barraDeBotoes.BARRAS[i].destroy();i3GEO.barraDeBotoes.inicializaBarra(novoel.id,i3GEO.barraDeBotoes.BARRAS[i].id+"x",barraZoom,x,y)}}i3GEO.barraDeBotoes.ativaBotoes()},fecha:function(id){var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){if(i3GEO.barraDeBotoes.BARRAS[i].id==id){$i(id+"_c").style.visibility="hidden"}}}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.barraDeBotoes={BARRAS:new Array(),AUTOALTURA:false,TRANSICAOSUAVE:true,OPACIDADE:65,PERMITEFECHAR:true,PERMITEDESLOCAR:true,ATIVAMENUCONTEXTO:false,LISTABOTOES:i3GEO.configura.funcoesBotoes.botoes,BOTAOPADRAO:"pan",BOTAOCLICADO:"",ativaIcone:function(icone){i3GEO.barraDeBotoes.BOTAOCLICADO=icone;var ko=i3GEO.barraDeBotoes.LISTABOTOES.length-1;if(ko>=0){do{var temp=$i(i3GEO.barraDeBotoes.LISTABOTOES[ko].iddiv);if(i3GEO.barraDeBotoes.LISTABOTOES[ko].tipo=="dinamico"&&temp){var ist=temp.style;ist.borderWidth="1px";ist.borderColor='white';ist.borderLeftColor='rgb(50,50,50)';ist.borderBottomColor='rgb(50,50,50)'}}while(ko--)}if($i(icone)){with($i(icone).style){borderColor='white';borderWidth="1px"}}},ativaBotoes:function(padrao){if(arguments.length==0){var padrao=i3GEO.barraDeBotoes.BOTAOPADRAO}i3GEO.barraDeBotoes.BOTAOCLICADO=padrao;var l=i3GEO.barraDeBotoes.LISTABOTOES;var b=l.length-1;if(b>=0){do{if($i(l[b].iddiv)){if(l[b].conteudo){eval('$i(l[b].iddiv).innerHTML = "'+l[b].conteudo+'"')}if(l[b].dica){eval('$i("'+l[b].iddiv+'").onmouseover = function(){i3GEO.ajuda.mostraJanela("'+l[b].dica+'","");}');eval('$i("'+l[b].iddiv+'").onmouseout = function(){i3GEO.ajuda.mostraJanela("");};')}if(l[b].funcaoonclick){$i(l[b].iddiv).onclick=l[b].funcaoonclick;if(l[b].iddiv==padrao){l[b].funcaoonclick()}}if(l[b].constroiconteudo){eval(l[b].constroiconteudo)}}}while(b--)}},ativaBarraDeZoom:function(){$i("vertMaisZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Amplia o mapa mantendo o centro atual.')};$i("vertMaisZoom").onclick=function(){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=-1;$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomin';i3GEO.navega.zoomin();g_fatordezoom=0};$i("vertMenosZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Reduz o mapa mantendo o centro atual.')};$i("vertMenosZoom").onclick=function(){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=1;$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomout';i3GEO.navega.zoomout();g_fatordezoom=0}},inicializaBarra:function(idconteudo,idconteudonovo,barraZoom,x,y){var wj="36px";var recuo="0px";var novoel=document.createElement("div");novoel.id=idconteudonovo;novoel.style.display="block";novoel.style.border="1px solid gray";novoel.style.background="white";if(i3GEO.barraDeBotoes.TRANSICAOSUAVE){if(navm){novoel.style.filter='alpha(opacity='+i3GEO.barraDeBotoes.OPACIDADE+')'}else{novoel.style.opacity=i3GEO.barraDeBotoes.OPACIDADE/100}}else{if(navm){novoel.style.filter='alpha(opacity=90)'}else{novoel.style.opacity=.85}}var temp="";if(barraZoom==true){if(navn){temp+='<div style="text-align:center;position:relative;left:9px" >'}var estilo="top:4px;";if(navm){var estilo="top:4px;left:-2px;"}temp+='<div id="vertMaisZoom" style="'+estilo+'"></div><div id="vertBGDiv" name="vertBGDiv" tabindex="0" x2:role="role:slider" state:valuenow="0" state:valuemin="0" state:valuemax="200" title="Zoom" >';temp+='<div id="vertHandleDivZoom" ><img alt="" class="slider" src="'+i3GEO.util.$im("branco.gif")+'" /></div></div>';if(navm)temp+='<div id=vertMenosZoom style="left:-1px;" ></div>';else temp+='<div id=vertMenosZoom ></div>';if(navn){temp+='</div>'}}temp+='<div id="'+idconteudonovo+'_" style="left:'+recuo+';top:-6px;" ></div></div>';novoel.innerHTML=temp;novoel.onmouseover=function(){if($i("i3geo_rosa")){$i("i3geo_rosa").style.display="none"}if(i3GEO.barraDeBotoes.OPACIDADE){if(navm){novoel.style.filter='alpha(opacity=90)'}else{novoel.style.opacity=.85}}};novoel.onmouseout=function(){if(i3GEO.barraDeBotoes.TRANSICAOSUAVE){if(navm){novoel.style.filter='alpha(opacity='+i3GEO.barraDeBotoes.OPACIDADE+')'}else{novoel.style.opacity=i3GEO.barraDeBotoes.OPACIDADE/100}}}document.body.appendChild(novoel);if(i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO)i3GEO.util.mudaCursor(i3GEO.configura.cursores,"contexto",idconteudonovo,i3GEO.configura.locaplic);if($i(idconteudo)){$i(idconteudonovo+"_").innerHTML=$i(idconteudo).innerHTML;$i(idconteudo).innerHTML="";if(i3GEO.barraDeBotoes.AUTOALTURA){var elementos=$i(idconteudonovo+"_").getElementsByTagName("img");if(elementos[0].id=="sobeferramentas"){try{var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");var alturadisponivel=i3GEO.parametros.h-4;var numerobotoes=parseInt(alturadisponivel/30);var nelementos=elementos.length;var i=0;do{elementos[i].style.display="none";var i=i+1}while(i<nelementos)var i=0;do{elementos[i].style.display="inline";var i=i+1}while(i<numerobotoes)}catch(e){}if(i<=numerobotoes){if($i("sobeferramentas")){$i("sobeferramentas").style.display="none"}if($i("desceferramentas")){$i("desceferramentas").style.display="none"}}}}}YAHOO.namespace("janelaBotoes.xp");if(i3GEO.barraDeBotoes.AUTOALTURA==false)YAHOO.janelaBotoes.xp.panel=new YAHOO.widget.Panel(idconteudonovo,{width:wj,fixedcenter:false,constraintoviewport:false,underlay:"none",close:i3GEO.barraDeBotoes.PERMITEFECHAR,visible:true,draggable:i3GEO.barraDeBotoes.PERMITEDESLOCAR,modal:false});else YAHOO.janelaBotoes.xp.panel=new YAHOO.widget.Panel(idconteudonovo,{height:i3GEO.parametros.h-4,width:wj,fixedcenter:false,constraintoviewport:false,underlay:"none",close:i3GEO.barraDeBotoes.PERMITEFECHAR,visible:true,draggable:i3GEO.barraDeBotoes.PERMITEDESLOCAR,modal:false});if((barraZoom==true)&&$i("img")){i3GEO.barraDeBotoes.ativaBarraDeZoom();verticalSlider=YAHOO.widget.Slider.getVertSlider("vertBGDiv","vertHandleDivZoom",0,70);verticalSlider.onChange=function(offsetFromStart){g_fatordezoom=(offsetFromStart-35)/5};verticalSlider.setValue(35,true);if($i("vertBGDiv")){$i("vertBGDiv").onmouseup=function(){i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,i3geo_ns)g_fatordezoom=0;verticalSlider.setValue(35,true)}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousedown=function(){i3GEO.barraDeBotoes.BOTAOCLICADO='slidezoom';if(!$i("imgtemp")){iclone=document.createElement('IMG');iclone.style.position="absolute";iclone.id="imgtemp";iclone.style.border="1px solid blue";$i("img").parentNode.appendChild(iclone)}var iclone=$i("imgtemp");var corpo=$i("img");if(!corpo){return}iclone.src=corpo.src;iclone.style.width=i3GEO.parametros.w;iclone.style.heigth=i3GEO.parametros.h;iclone.style.top=corpo.style.top;iclone.style.left=corpo.style.left;$i("img").style.display="none";iclone.style.display="block"}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousemove=function(){var iclone=$i("imgtemp");var corpo=$i("img");if(!corpo){return}var nw=i3GEO.parametros.w;var nh=i3GEO.parametros.h;var nt=0;var nl=0;i3geo_ns=parseInt(i3GEO.parametros.mapscale);if((g_fatordezoom>0)&&(g_fatordezoom<7)){g_fatordezoom=g_fatordezoom+1;var velhoh=parseInt(iclone.style.height);var velhow=parseInt(iclone.style.width);var nh=i3GEO.parametros.h/g_fatordezoom;var nw=i3GEO.parametros.w/g_fatordezoom;var t=parseInt(iclone.style.top);var l=parseInt(iclone.style.left);var nt=t+((velhoh-nh)*.5);var nl=l+((velhow-nw)*.5);var fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala)}if((g_fatordezoom<0)&&(g_fatordezoom>-7)){g_fatordezoom=g_fatordezoom-1;var velhoh=parseInt(iclone.style.height);var velhow=parseInt(iclone.style.width);var nh=i3GEO.parametros.h*g_fatordezoom*-1;var nw=i3GEO.parametros.w*g_fatordezoom*-1;var t=parseInt(iclone.style.top);var l=parseInt(iclone.style.left);var nt=t-((nh-velhoh)*.5);var nl=l-((nw-velhow)*.5);var fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala)}if(iclone){iclone.style.width=nw;iclone.style.height=nh;if(iclone.style.pixelTop){iclone.style.pixelTop=nt}else{iclone.style.top=nt+"px"}if(iclone.style.pixelLeft){iclone.style.pixelLeft=nl}else{iclone.style.left=nl+"px"}}if($i("i3geo_escalanum")){$i("i3geo_escalanum").value=i3geo_ns}}}}YAHOO.janelaBotoes.xp.panel.render();if(i3GEO.barraDeBotoes.AUTOALTURA==true){var y=y-i3GEO.interface.BARRABOTOESTOP+2;var x=x-3}YAHOO.janelaBotoes.xp.panel.moveTo(x,y);if($i("sobeferramentas")){$i("sobeferramentas").onclick=function(){var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");var nelementos=elementos.length;if(elementos[0].style.display=="inline"&&elementos[0].id==""){return}if(elementos[1].style.display=="inline"&&elementos[1].id==""){return}if(nelementos>0){var mostra=elementos[0];var i=0;do{if(elementos[i].style){if(elementos[i].style.display=="inline"&&elementos[i].id==""){break}if(elementos[i].style.display=="none"&&elementos[i].id==""){var mostra=elementos[i]}}var i=i+1}while(i<nelementos)mostra.style.display="inline";var i=nelementos-1;var mostra=elementos[i];do{if(elementos[i].style){if(elementos[i].style.display=="inline"){var mostra=elementos[i];break}}var i=i-1}while(i>=0)mostra.style.display="none"}}}if($i("desceferramentas")){$i("desceferramentas").onclick=function(){var tipo="inline";if($i(idconteudonovo+"_")){var elementos=$i(idconteudonovo+"_").getElementsByTagName("div");if(elementos[elementos.length-1].style.display==tipo){return}var nelementos=elementos.length;if(nelementos>0){var i=0;do{var e=elementos[i];if(e.style){if((e.style.display=="block")||(e.style.display=="inline")||(e.style.display=="")){if(e.id==""){e.style.display="none";break}}}var i=i+1}while(i<nelementos)var i=nelementos-1;var mostra=elementos[i];do{var e=elementos[i];if(e.style){if(e.style.display==tipo){break}if(e.style.display=="none"){var mostra=e}}var i=i-1}while(i>=0)mostra.style.display=tipo}}}}i3GEO.barraDeBotoes.BARRAS.push(YAHOO.janelaBotoes.xp.panel);YAHOO.janelaBotoes.xp.panel.show();if(i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO){i3GEO.barraDeBotoes.ativaMenuContexto(idconteudonovo)}},ativaMenuContexto:function(idbarra){function executar(a,b,c){eval(c)};var oFieldContextMenuItemData=[{text:" <span class='container-close'></span>"},{text:"Fechar barra",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.fecha('"+idbarra+"')"}},{text:"Barra normal",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.AUTOALTURA=false;i3GEO.barraDeBotoes.PERMITEFECHAR=true;i3GEO.barraDeBotoes.PERMITEDESLOCAR=true;i3GEO.barraDeBotoes.recria('"+idbarra+"')"}},{text:"Barra fixa",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.AUTOALTURA=true;i3GEO.barraDeBotoes.PERMITEFECHAR=false;i3GEO.barraDeBotoes.PERMITEDESLOCAR=false;i3GEO.barraDeBotoes.recria('"+idbarra+"')"}},{text:"Remove transição",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.TRANSICAOSUAVE=false;"}},{text:"Ativa transição",onclick:{fn:executar,obj:"i3GEO.barraDeBotoes.TRANSICAOSUAVE=true;"}}];var oFieldContextMenu=new YAHOO.widget.ContextMenu("contexto_"+idbarra,{trigger:idbarra,itemdata:oFieldContextMenuItemData,lazyload:true});var onFieldMenuRender=function(){eval("var id = 'contexto_"+idbarra+"'");$i(id).style.zIndex=50000};oFieldContextMenu.subscribe("render",onFieldMenuRender)},reativa:function(indice){if(arguments.length==1)i3GEO.barraDeBotoes.BARRAS[indice].show();else{var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){i3GEO.barraDeBotoes.BARRAS[i].show()}}},recria:function(id){var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){if(i3GEO.barraDeBotoes.BARRAS[i].id==id){var temp=$i("contexto_"+id);if(temp){temp.parentNode.removeChild(temp)}var novoel=document.createElement("div");novoel.id="barraTemporaria"+i;novoel.innerHTML=$i(i3GEO.barraDeBotoes.BARRAS[i].id+"_").innerHTML;document.body.appendChild(novoel);var barraZoom=false;var temp=$i("vertMaisZoom");if(temp){if(navm)var temp=temp.parentNode;else var temp=temp.parentNode.parentNode;if(temp.id==id){var barraZoom=true}}var x=parseInt($i(i3GEO.barraDeBotoes.BARRAS[i].id+"_c").style.left);var y=parseInt($i(i3GEO.interface.IDCORPO).style.top)+10;i3GEO.barraDeBotoes.BARRAS[i].destroy();i3GEO.barraDeBotoes.inicializaBarra(novoel.id,i3GEO.barraDeBotoes.BARRAS[i].id+"x",barraZoom,x,y)}}i3GEO.barraDeBotoes.ativaBotoes()},fecha:function(id){var n=i3GEO.barraDeBotoes.BARRAS.length;for(i=0;i<n;i++){if(i3GEO.barraDeBotoes.BARRAS[i].id==id){$i(id+"_c").style.visibility="hidden"}}}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/compactados/classe_configura_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.configura={oMenuData:{menu:[{nome:$trad("s1"),id:"ajudaMenu"},{nome:$trad("s2"),id:"analise"},{nome:$trad("s3"),id:"janelas"},{nome:$trad("s4"),id:"arquivos"},{nome:$trad("d27"),id:"interface"}],submenus:{"ajudaMenu":[{text:$trad("u1"),url:"http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332",target:"_blank"},{text:$trad("u2"),url:"javascript:i3GEO.ajuda.abreDoc()"},{text:$trad("u3"),url:"http://pt.wikibooks.org/wiki/I3geo",target:"_blank"},{text:$trad("u4"),url:"http://mapas.mma.gov.br/wikibooki3geo",target:"_blank"},{text:$trad("u5a"),url:"http://www.softwarepublico.gov.br",target:"_blank"},{text:"i3Geo Blog",url:"http://sistemas.mma.gov.br/blogs/index.php?blog=6",target:"_blank"},{text:"Lista de funções",url:"http://mapas.mma.gov.br/i3geo/ajuda_usuario.php",target:"_blank"}],"analise":[{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u22")+'</b></span>',url:"#"},{text:$trad("u7"),url:"javascript:i3GEO.analise.dialogo.gradePol()"},{text:$trad("u8"),url:"javascript:i3GEO.analise.dialogo.gradePontos()"},{text:$trad("u9"),url:"javascript:i3GEO.analise.dialogo.gradeHex()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u23")+'</b></span>',url:"#"},{text:$trad("u11a"),url:"javascript:i3GEO.analise.dialogo.distanciaptpt()"},{text:$trad("u12"),url:"javascript:i3GEO.analise.dialogo.nptPol()"},{text:$trad("u13"),url:"javascript:i3GEO.analise.dialogo.pontoempoligono()"},{text:$trad("u14"),url:"javascript:i3GEO.analise.dialogo.pontosdistri()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u24")+'</b></span>',url:"#"},{text:$trad("u11"),url:"javascript:i3GEO.analise.dialogo.centroide()"},{text:$trad("u25"),url:"javascript:i3GEO.analise.dialogo.dissolve()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u27")+'</b></span>',url:"#"},{text:$trad("u6"),url:"javascript:i3GEO.analise.dialogo.analisaGeometrias()"},{text:$trad("u10"),url:"javascript:i3GEO.analise.dialogo.buffer()"},{text:$trad("u26"),url:"javascript:i3GEO.analise.dialogo.agrupaElementos()"}],"janelas":[{text:$trad("u15"),url:"javascript:initJanelaZoom('1');initJanelaZoom('2')"},{text:$trad("u16"),url:"javascript:i3GEO.ajuda.abreJanela()"}],"arquivos":[{text:$trad("u17"),url:"javascript:i3GEO.mapa.dialogo.salvaMapa()"},{text:$trad("u18"),url:"javascript:i3GEO.mapa.dialogo.carregaMapa()"},{text:$trad("u19"),url:"javascript:i3GEO.gadgets.quadros.listaImagens()"},{text:$trad("u20"),url:"javascript:i3GEO.mapa.dialogo.convertews()"},{text:$trad("u20a"),url:"javascript:i3GEO.mapa.dialogo.convertekml()"},{text:$trad("u21"),url:"../geradordelinks.htm"}],"interface":[{text:"Normal",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/geral.htm?'+i3GEO.configura.sid"},{text:"Google Maps",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/googlemaps.phtml?'+i3GEO.configura.sid"},{text:"Google Earth",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/googleearth.phtml?'+i3GEO.configura.sid"}]}},tipoimagem:"nenhum",tipotip:"balao",funcaoTip:"verificaTipDefault()",funcaoIdentifica:"cliqueIdentificaDefault()",diminuixM:13,diminuixN:11,diminuiyM:106,diminuiyN:103,map3d:"",embedLegenda:"nao",templateLegenda:"",mashuppar:"",sid:"",locaplic:"",mapaRefDisplay:"block",visual:"default",cursores:{"identifica":{ff:"pointer",ie:"pointer"},"pan":{ff:"/imagens/cursores/pan.png",ie:"/imagens/cursores/pan.cur"},"area":{ff:"/imagens/cursores/area.png",ie:"crosshair"},"distancia":{ff:"/imagens/cursores/distancia.png",ie:"crosshair"},"zoom":{ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"},"contexto":{ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"}},listaDePropriedadesDoMapa:{"propriedades":[{text:"p2",url:"javascript:i3GEO.mapa.dialogo.tipoimagem()"},{text:"p3",url:"javascript:i3GEO.mapa.dialogo.opcoesLegenda()"},{text:"p4",url:"javascript:i3GEO.mapa.dialogo.opcoesEscala()"},{text:"p5",url:"javascript:i3GEO.mapa.dialogo.tamanho()"},{text:"p6",url:"javascript:i3GEO.navega.entorno.ativaDesativa()"},{text:"p7",url:"javascript:i3GEO.mapa.ativaLogo()"},{text:"p8",url:"javascript:i3GEO.mapa.dialogo.queryMap()"},{text:"p9",url:"javascript:i3GEO.mapa.dialogo.corFundo()"},{text:"p10",url:"javascript:i3GEO.mapa.dialogo.gradeCoord()"},{text:"p11",url:"javascript:i3GEO.mapa.dialogo.template()"},{text:"p12",url:"javascript:i3GEO.mapa.dialogo.autoredesenha()"}]},tempoAplicar:4000,tempoMouseParado:3500,iniciaJanelaMensagens:true,mostraRosaDosVentos:"nao",liberaGuias:"nao",entorno:"nao",funcoesBotoes:{"botoes":[{iddiv:"historicozoom",tipo:"",dica:$trad("d1"),constroiconteudo:'i3GEO.gadgets.mostraHistoricoZoom()'},{iddiv:"zoomtot",tipo:"",dica:$trad("d2"),funcaoonclick:function(){i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,i3GEO.parametros.extentTotal);marcadorZoom=""}},{iddiv:"zoomli",tipo:"dinamico",dica:$trad("d3"),funcaoonclick:function(){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic);if(!$i("i3geoboxZoom"))i3GEO.navega.zoomBox.criaBox();g_operacao='navega';g_tipoacao='zoomli';i3GEO.barraDeBotoes.ativaIcone("zoomli");marcadorZoom="";if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()")<0){i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}}},{iddiv:"pan",tipo:"dinamico",dica:$trad("d4"),funcaoonclick:function(){g_tipoacao='pan';g_operacao='navega';i3GEO.barraDeBotoes.ativaIcone("pan");if($i(i3GEO.interface.IDMAPA)){$i(i3GEO.interface.IDMAPA).title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.interface.IDMAPA,i3GEO.configura.locaplic)}marcadorZoom="";panMapaInicia=function(){if($i("img")&&(g_tipoacao=="pan")){g_panM="sim";if($i("corpoMapa")){leftinicial=parseInt($i(i3GEO.interface.IDCORPO).style.left);topinicial=parseInt($i(i3GEO.interface.IDCORPO).style.top)}clicinicialx=objposicaocursor.imgx;clicinicialy=objposicaocursor.imgy;ddinicialx=objposicaocursor.ddx;ddinicialy=objposicaocursor.ddy;boxrefObj=$i("boxref");if(boxrefObj){proporcaoBox=i3GEO.parametros.w/parseInt(boxrefObj.style.width);boxrefObjLeft=parseInt(boxrefObj.style.left);boxrefObjTop=parseInt(boxrefObj.style.top)}}};panMapaDesloca=function(){if($i(i3GEO.interface.IDMAPA)&&(g_panM=="sim")){var nx=objposicaocursor.telax-leftinicial-clicinicialx;var ny=objposicaocursor.telay-topinicial-clicinicialy;if(i3GEO.configura.entorno=="nao"){var l=0;if(parseInt($i("i3geo").style.left)){var l=parseInt($i("i3geo").style.left)}$i(i3GEO.interface.IDMAPA).style.left=nx-l;var t=0;if(parseInt($i("i3geo").style.top)){var t=parseInt($i("i3geo").style.top)}$i(i3GEO.interface.IDMAPA).style.top=ny-t;if(boxrefObj){boxrefObj.style.left=boxrefObjLeft-(nx/proporcaoBox);boxrefObj.style.top=boxrefObjTop-(ny/proporcaoBox)}}else{$left("img",i3GEO.parametros.w*-1+nx);$left("imgS",i3GEO.parametros.w*-1+nx);$left("imgL",i3GEO.parametros.w+nx);$left("imgO",i3GEO.parametros.w*-3+nx);$left("imgN",i3GEO.parametros.w*-1+nx);$top("img",i3GEO.parametros.h*-1+ny);$top("imgS",i3GEO.parametros.h*-1+ny);$top("imgL",i3GEO.parametros.h*-1+ny);$top("imgN",i3GEO.parametros.h*-1+ny);$top("imgO",i3GEO.parametros.h*-1+ny)}}};panMapaTermina=function(){if(g_tipoacao=="pan"){marcadorZoom="";g_panM="nao";var res=i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.parametros.mapexten,i3GEO.configura.tipoimagem);if(res==false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)}}};if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()")<0){i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()")<0){i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()")<0){i3GEO.eventos.MOUSEUP.push("panMapaTermina()")}}},{iddiv:"zoomiauto",tipo:"",dica:$trad("d5"),funcaoonclick:function(){i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"zoomoauto",tipo:"",dica:$trad("d6"),funcaoonclick:function(){i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"identifica",tipo:"dinamico",dica:$trad("d7"),funcaoonclick:function(){if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic)}i3GEO.barraDeBotoes.ativaIcone("identifica");g_tipoacao='identifica';g_operacao='identifica';cliqueIdentifica=function(){cliqueIdentificaDefault=function(){if(g_tipoacao=="identifica"){i3GEO.eventos.MOUSEPARADO.remove("verificaTip()");var janela=i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+i3GEO.parametros.mapscale,"","","Identifica <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=70' > </a>");var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()");i3GEO.barraDeBotoes.ativaBotoes()};if(i3GEO.interface.ATUAL!="googlemaps")YAHOO.util.Event.addListener(janela[0].close,"click",temp)}};if(g_operacao=="identifica"){eval(i3GEO.configura.funcaoIdentifica)}};verificaTip=function(){if(g_operacao!="identifica"){return}if($i("marcaIdentifica")){return}verificaTipDefault=function(){var ntemas=i3GEO.arvoreDeCamadas.CAMADAS.length;var etiquetas=false;for(var j=0;j<ntemas;j++){if(i3GEO.arvoreDeCamadas.CAMADAS[j].etiquetas!=""){var etiquetas=true}}if(etiquetas==false){return}if($i("img")){$i("img").style.cursor="wait"}var retorna=function(retorno){var i=$i("i3geo_rosa");if(i){i.style.display="none"}var mostra=false;try{var retorno=retorno.data;if($i("img")){$i("img").title=""}if(retorno!=""){var res="";var temas=retorno.split("!");var tema=temas.length-1;if(tema>=0){do{var titulo=temas[tema].split("@");if(i3GEO.configura.tipotip=="completo"||i3GEO.configura.tipotip=="balao"){res+="<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>"}var ocorrencias=titulo[1].split("*");var ocorrencia=ocorrencias.length-1;if(ocorrencia>=0){do{if(ocorrencias[ocorrencia]!=""){var pares=ocorrencias[ocorrencia].split("##");var paresi=pares.length;for(var par=0;par<paresi;par++){var valores=pares[par].split("#");if(i3GEO.configura.tipotip=="completo"||i3GEO.configura.tipotip=="balao"){res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'>"+valores[0]+" <i>"+valores[1]+"</i></span><br>";var mostra=true}else{res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'><i>"+valores[1]+"</i></span><br>";var mostra=true}}}}while(ocorrencia--)}}while(tema--)}if(!mostra){$i("tip").style.display="none";return}else{if(i3GEO.configura.tipotip!="balao"){var n=i3GEO.janela.tip();$i(n).style.textAlign="left";$i(n).innerHTML+=res}else{i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px");i3GEO.util.posicionaImagemNoMapa("marcaIdentifica");balloon=new Balloon;balloon.delayTime=0;var res="<div style=text-align:left >"+res+"</div>";balloon.showTooltip($i("marcaIdentifica"),res);$i('marcaIdentifica').onclick=$i("closeButton").onclick}}}if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic)}}catch(e){if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic)}}};i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5")};if(g_operacao=="identifica"){eval(i3GEO.configura.funcaoTip)}};if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()")<0){i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()")}if(i3GEO.eventos.MOUSEPARADO.toString().search("verificaTip()")<0){i3GEO.eventos.MOUSEPARADO.push("verificaTip()")}}},{iddiv:"exten",tipo:"",dica:$trad("d8"),funcaoonclick:function(){i3GEO.janela.cria("450px","340px",i3GEO.configura.locaplic+"/ferramentas/mostraexten/index.htm","","","Extensão geográfica <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=55' > </a>")}},{iddiv:"referencia",tipo:"",dica:$trad("d9"),funcaoonclick:function(){i3GEO.maparef.inicia()}},{iddiv:"wiki",tipo:"",dica:$trad("d11"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=73' > </a>");atualizawiki=function(){if(!$i("wdocai")){i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");return}var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadowiki")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizawiki()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizawiki()")}}},{iddiv:"buscafotos",tipo:"",dica:"Fotos",funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("550px","400px",i3GEO.configura.locaplic+"/ferramentas/buscafotos/index.htm","","","Fotos <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=74' > </a>");i3GEO.util.criaPin()}},{iddiv:"imprimir",tipo:"",dica:$trad("d12"),funcaoonclick:function(){i3GEO.janela.cria("320px","180px",i3GEO.configura.locaplic+"/ferramentas/imprimir/index.htm","","","Imprimir <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=49' > </a>")}},{iddiv:"ondeestou",tipo:"",dica:$trad("d13"),funcaoonclick:function(){i3GEO.navega.zoomIP(i3GEO.configura.locaplic,i3GEO.configura.sid)}},{iddiv:"v3d",tipo:"",dica:$trad("d14"),funcaoonclick:function(){i3GEO.janela.cria("400px","200px",i3GEO.configura.locaplic+"/ferramentas/3d/index.htm","","","3d <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=69' > </a>")}},{iddiv:"google",tipo:"",dica:$trad("d15"),funcaoonclick:function(){i3GEO.util.criaBox();g_operacao="navega";if(navn){i3GEO.janela.cria((i3GEO.parametros.w/2)+40+"px",(i3GEO.parametros.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>")}else{i3GEO.janela.cria("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>")}atualizagoogle=function(){try{if(navn){if($i("wdocai")){var doc=$i("wdocai").contentDocument}}else{if(document.frames("wdocai")){var doc=document.frames("wdocai").document}}if(window.parent.frames["wdocai"].panTogoogle){window.parent.frames["wdocai"].panTogoogle()}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()")}}},{iddiv:"scielo",tipo:"",dica:$trad("d16"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm","","","Scielo");atualizascielo=function(){try{var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoscielo")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()")}}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()")}}},{iddiv:"confluence",tipo:"",dica:$trad("d17"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","Confluence <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=75' > </a>");i3GEO.util.criaBox();atualizaconfluence=function(){if(!$i("wdocai")){i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()");return}var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoconfluence")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaconfluence()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizaconfluence()")}}},{iddiv:"lentei",tipo:"",dica:$trad("d18"),funcaoonclick:function(){if(i3GEO.navega.lente.ESTAATIVA=="nao"){i3GEO.navega.lente.inicia()}else i3GEO.navega.lente.desativa()}},{iddiv:"encolheFerramentas",tipo:"",dica:$trad("d19"),funcaoonclick:function(){i3GEO.guias.libera()}},{iddiv:"reinicia",tipo:"",dica:$trad("d20"),funcaoonclick:function(){i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.reiniciaMapa(i3GEO.atualiza)}},{iddiv:"mede",tipo:"dinamico",dica:$trad("d21"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("mede");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"distancia","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeDistancia.inicia()}},{iddiv:"area",tipo:"dinamico",dica:$trad("d21a"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("area");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"area","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeArea.inicia()}},{iddiv:"inserexy",tipo:"dinamico",dica:$trad("d22"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inserexy");g_tipoacao="";i3GEO.mapa.dialogo.cliquePonto();if($i("img")){$i("img").title="clique para inserir um ponto";$i("img").style.cursor="crosshair"}}},{iddiv:"inseregrafico",tipo:"dinamico",dica:$trad("d23"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inseregrafico");g_tipoacao="";i3GEO.mapa.dialogo.cliqueGrafico();if($i("img")){$i("img").title="clique para incluir o gráfico";$i("img").style.cursor="pointer"}}},{iddiv:"selecao",tipo:"dinamico",dica:$trad("d24"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("selecao");i3GEO.selecao.janelaOpcoes();if($i("img")){$i("img").title="";$i("img").style.cursor="pointer"}}},{iddiv:"textofid",tipo:"dinamico",dica:$trad("d25"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("textofid");g_tipoacao="";i3GEO.mapa.dialogo.cliqueTexto();if($i("img")){$i("img").title="clique para inserir o texto";$i("img").style.cursor="pointer"}}},{iddiv:"rota",tipo:"",dica:"Rota",funcaoonclick:function(){if(i3GEO.interface.ATUAL!="googlemaps"){alert("Operacao disponivel apenas na interface Google Maps");return}counterClick=1;var parametrosRota=function(overlay,latlng){if(counterClick==1){counterClick++;alert("Clique o ponto de destino da rota");pontoRota1=latlng return}if(counterClick==2){pontoRota2=latlng counterClick=0;GEvent.removeListener(rotaEvento)var janela=i3GEO.janela.cria("300px","300px","","center","","Rota");janela[2].style.overflow="auto";janela[2].style.height="300px";directions=new GDirections(i3GeoMap,janela[2]);var temp=function(){$i("wdoca_corpo").innerHTML="Não foi possível criar a rota"};GEvent.addListener(directions,"error",temp);directions.load("from: "+pontoRota1.lat()+","+pontoRota1.lng()+" to: "+pontoRota2.lat()+","+pontoRota2.lng())}};rotaEvento=GEvent.addListener(i3GeoMap,"click",parametrosRota);alert("Clique o ponto de origem da rota")}}]}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.configura={oMenuData:{menu:[{nome:$trad("s1"),id:"ajudaMenu"},{nome:$trad("s2"),id:"analise"},{nome:$trad("s3"),id:"janelas"},{nome:$trad("s4"),id:"arquivos"},{nome:$trad("d27"),id:"interface"}],submenus:{"ajudaMenu":[{text:$trad("u1"),url:"http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332",target:"_blank"},{text:$trad("u2"),url:"javascript:i3GEO.ajuda.abreDoc()"},{text:$trad("u3"),url:"http://pt.wikibooks.org/wiki/I3geo",target:"_blank"},{text:$trad("u4"),url:"http://mapas.mma.gov.br/wikibooki3geo",target:"_blank"},{text:$trad("u5a"),url:"http://www.softwarepublico.gov.br",target:"_blank"},{text:"i3Geo Blog",url:"http://sistemas.mma.gov.br/blogs/index.php?blog=6",target:"_blank"},{text:"Lista de funções",url:"http://mapas.mma.gov.br/i3geo/ajuda_usuario.php",target:"_blank"}],"analise":[{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u22")+'</b></span>',url:"#"},{text:$trad("u7"),url:"javascript:i3GEO.analise.dialogo.gradePol()"},{text:$trad("u8"),url:"javascript:i3GEO.analise.dialogo.gradePontos()"},{text:$trad("u9"),url:"javascript:i3GEO.analise.dialogo.gradeHex()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u23")+'</b></span>',url:"#"},{text:$trad("u11a"),url:"javascript:i3GEO.analise.dialogo.distanciaptpt()"},{text:$trad("u12"),url:"javascript:i3GEO.analise.dialogo.nptPol()"},{text:$trad("u13"),url:"javascript:i3GEO.analise.dialogo.pontoempoligono()"},{text:$trad("u14"),url:"javascript:i3GEO.analise.dialogo.pontosdistri()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u24")+'</b></span>',url:"#"},{text:$trad("u11"),url:"javascript:i3GEO.analise.dialogo.centroide()"},{text:$trad("u25"),url:"javascript:i3GEO.analise.dialogo.dissolve()"},{text:'<span style=color:gray;text-decoration:underline; ><b>'+$trad("u27")+'</b></span>',url:"#"},{text:$trad("u6"),url:"javascript:i3GEO.analise.dialogo.analisaGeometrias()"},{text:$trad("u10"),url:"javascript:i3GEO.analise.dialogo.buffer()"},{text:$trad("u26"),url:"javascript:i3GEO.analise.dialogo.agrupaElementos()"}],"janelas":[{text:$trad("u15"),url:"javascript:initJanelaZoom('1');initJanelaZoom('2')"},{text:$trad("u16"),url:"javascript:i3GEO.ajuda.abreJanela()"}],"arquivos":[{text:$trad("u17"),url:"javascript:i3GEO.mapa.dialogo.salvaMapa()"},{text:$trad("u18"),url:"javascript:i3GEO.mapa.dialogo.carregaMapa()"},{text:$trad("u19"),url:"javascript:i3GEO.gadgets.quadros.listaImagens()"},{text:$trad("u20"),url:"javascript:i3GEO.mapa.dialogo.convertews()"},{text:$trad("u20a"),url:"javascript:i3GEO.mapa.dialogo.convertekml()"},{text:$trad("u21"),url:"../geradordelinks.htm"}],"interface":[{text:"Normal",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/geral.htm?'+i3GEO.configura.sid"},{text:"Google Maps",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/googlemaps.phtml?'+i3GEO.configura.sid"},{text:"Google Earth",url:"javascript:window.location = i3GEO.configura.locaplic+'/aplicmap/googleearth.phtml?'+i3GEO.configura.sid"}]}},tipoimagem:"nenhum",tipotip:"balao",funcaoTip:"verificaTipDefault()",funcaoIdentifica:"cliqueIdentificaDefault()",diminuixM:13,diminuixN:11,diminuiyM:106,diminuiyN:103,map3d:"",embedLegenda:"nao",templateLegenda:"",mashuppar:"",sid:"",locaplic:"",mapaRefDisplay:"block",visual:"default",cursores:{"identifica":{ff:"pointer",ie:"pointer"},"pan":{ff:"/imagens/cursores/pan.png",ie:"/imagens/cursores/pan.cur"},"area":{ff:"/imagens/cursores/area.png",ie:"crosshair"},"distancia":{ff:"/imagens/cursores/distancia.png",ie:"crosshair"},"zoom":{ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"},"contexto":{ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"},"identifica_contexto":{ff:"pointer",ie:"pointer"},"pan_contexto":{ff:"/imagens/cursores/pan_contexto.png",ie:"/imagens/cursores/pan_contexto.cur"},"zoom_contexto":{ff:"/imagens/cursores/zoom_contexto.png",ie:"/imagens/cursores/zoom_contexto.cur"}},listaDePropriedadesDoMapa:{"propriedades":[{text:"p2",url:"javascript:i3GEO.mapa.dialogo.tipoimagem()"},{text:"p3",url:"javascript:i3GEO.mapa.dialogo.opcoesLegenda()"},{text:"p4",url:"javascript:i3GEO.mapa.dialogo.opcoesEscala()"},{text:"p5",url:"javascript:i3GEO.mapa.dialogo.tamanho()"},{text:"p6",url:"javascript:i3GEO.navega.entorno.ativaDesativa()"},{text:"p7",url:"javascript:i3GEO.mapa.ativaLogo()"},{text:"p8",url:"javascript:i3GEO.mapa.dialogo.queryMap()"},{text:"p9",url:"javascript:i3GEO.mapa.dialogo.corFundo()"},{text:"p10",url:"javascript:i3GEO.mapa.dialogo.gradeCoord()"},{text:"p11",url:"javascript:i3GEO.mapa.dialogo.template()"},{text:"p12",url:"javascript:i3GEO.mapa.dialogo.autoredesenha()"}]},tempoAplicar:4000,tempoMouseParado:3500,iniciaJanelaMensagens:true,mostraRosaDosVentos:"nao",liberaGuias:"nao",entorno:"nao",funcoesBotoes:{"botoes":[{iddiv:"historicozoom",tipo:"",dica:$trad("d1"),constroiconteudo:'i3GEO.gadgets.mostraHistoricoZoom()'},{iddiv:"zoomtot",tipo:"",dica:$trad("d2"),funcaoonclick:function(){i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,i3GEO.parametros.extentTotal);marcadorZoom=""}},{iddiv:"zoomli",tipo:"dinamico",dica:$trad("d3"),funcaoonclick:function(){var temp="zoom";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="zoom_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic);if(!$i("i3geoboxZoom"))i3GEO.navega.zoomBox.criaBox();g_operacao='navega';g_tipoacao='zoomli';i3GEO.barraDeBotoes.ativaIcone("zoomli");marcadorZoom="";if(i3GEO.eventos.MOUSEDOWN.toString().search("i3GEO.navega.zoomBox.inicia()")<0){i3GEO.eventos.MOUSEDOWN.push("i3GEO.navega.zoomBox.inicia()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}}},{iddiv:"pan",tipo:"dinamico",dica:$trad("d4"),funcaoonclick:function(){g_tipoacao='pan';g_operacao='navega';i3GEO.barraDeBotoes.ativaIcone("pan");if($i(i3GEO.interface.IDMAPA)){$i(i3GEO.interface.IDMAPA).title="";var temp="pan";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="pan_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.interface.IDMAPA,i3GEO.configura.locaplic)}marcadorZoom="";panMapaInicia=function(exy){if($i("img")&&(g_tipoacao=="pan")){try{if(navm){var k=event.button}else{var k=exy.button}if(k==2){return}}catch(h){}g_panM="sim";if($i("corpoMapa")){leftinicial=parseInt($i(i3GEO.interface.IDCORPO).style.left);topinicial=parseInt($i(i3GEO.interface.IDCORPO).style.top)}clicinicialx=objposicaocursor.imgx;clicinicialy=objposicaocursor.imgy;ddinicialx=objposicaocursor.ddx;ddinicialy=objposicaocursor.ddy;boxrefObj=$i("boxref");if(boxrefObj){proporcaoBox=i3GEO.parametros.w/parseInt(boxrefObj.style.width);boxrefObjLeft=parseInt(boxrefObj.style.left);boxrefObjTop=parseInt(boxrefObj.style.top)}}};panMapaDesloca=function(){if($i(i3GEO.interface.IDMAPA)&&(g_panM=="sim")){var nx=objposicaocursor.telax-leftinicial-clicinicialx;var ny=objposicaocursor.telay-topinicial-clicinicialy;if(i3GEO.configura.entorno=="nao"){var l=0;if(parseInt($i("i3geo").style.left)){var l=parseInt($i("i3geo").style.left)}$i(i3GEO.interface.IDMAPA).style.left=nx-l;var t=0;if(parseInt($i("i3geo").style.top)){var t=parseInt($i("i3geo").style.top)}$i(i3GEO.interface.IDMAPA).style.top=ny-t;if(boxrefObj){boxrefObj.style.left=boxrefObjLeft-(nx/proporcaoBox);boxrefObj.style.top=boxrefObjTop-(ny/proporcaoBox)}}else{$left("img",i3GEO.parametros.w*-1+nx);$left("imgS",i3GEO.parametros.w*-1+nx);$left("imgL",i3GEO.parametros.w+nx);$left("imgO",i3GEO.parametros.w*-3+nx);$left("imgN",i3GEO.parametros.w*-1+nx);$top("img",i3GEO.parametros.h*-1+ny);$top("imgS",i3GEO.parametros.h*-1+ny);$top("imgL",i3GEO.parametros.h*-1+ny);$top("imgN",i3GEO.parametros.h*-1+ny);$top("imgO",i3GEO.parametros.h*-1+ny)}}};panMapaTermina=function(){if(g_tipoacao=="pan"){marcadorZoom="";g_panM="nao";var res=i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.parametros.mapexten,i3GEO.configura.tipoimagem);if(res==false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)}}};if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()")<0){i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()")<0){i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()")<0){i3GEO.eventos.MOUSEUP.push("panMapaTermina()")}}},{iddiv:"zoomiauto",tipo:"",dica:$trad("d5"),funcaoonclick:function(){i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"zoomoauto",tipo:"",dica:$trad("d6"),funcaoonclick:function(){i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);marcadorZoom=""}},{iddiv:"identifica",tipo:"dinamico",dica:$trad("d7"),funcaoonclick:function(){if($i("img")){$i("img").title="";var temp="identifica";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="identifica_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic)}i3GEO.barraDeBotoes.ativaIcone("identifica");g_tipoacao='identifica';g_operacao='identifica';cliqueIdentifica=function(){cliqueIdentificaDefault=function(){if(g_tipoacao=="identifica"){i3GEO.eventos.MOUSEPARADO.remove("verificaTip()");var janela=i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+i3GEO.parametros.mapscale,"","","Identifica <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=70' > </a>");var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()");i3GEO.barraDeBotoes.ativaBotoes()};if(i3GEO.interface.ATUAL!="googlemaps")YAHOO.util.Event.addListener(janela[0].close,"click",temp)}};if(g_operacao=="identifica"){eval(i3GEO.configura.funcaoIdentifica)}};verificaTip=function(){if(g_operacao!="identifica"){return}if($i("marcaIdentifica")){return}verificaTipDefault=function(){var ntemas=i3GEO.arvoreDeCamadas.CAMADAS.length;var etiquetas=false;for(var j=0;j<ntemas;j++){if(i3GEO.arvoreDeCamadas.CAMADAS[j].etiquetas!=""){var etiquetas=true}}if(etiquetas==false){return}if($i("img")){$i("img").style.cursor="wait"}var retorna=function(retorno){var i=$i("i3geo_rosa");if(i){i.style.display="none"}var mostra=false;try{var retorno=retorno.data;if($i("img")){$i("img").title=""}if(retorno!=""){var res="";var temas=retorno.split("!");var tema=temas.length-1;if(tema>=0){do{var titulo=temas[tema].split("@");if(i3GEO.configura.tipotip=="completo"||i3GEO.configura.tipotip=="balao"){res+="<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>"}var ocorrencias=titulo[1].split("*");var ocorrencia=ocorrencias.length-1;if(ocorrencia>=0){do{if(ocorrencias[ocorrencia]!=""){var pares=ocorrencias[ocorrencia].split("##");var paresi=pares.length;for(var par=0;par<paresi;par++){var valores=pares[par].split("#");if(i3GEO.configura.tipotip=="completo"||i3GEO.configura.tipotip=="balao"){res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'>"+valores[0]+" <i>"+valores[1]+"</i></span><br>";var mostra=true}else{res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'><i>"+valores[1]+"</i></span><br>";var mostra=true}}}}while(ocorrencia--)}}while(tema--)}if(!mostra){$i("tip").style.display="none";return}else{if(i3GEO.configura.tipotip!="balao"){var n=i3GEO.janela.tip();$i(n).style.textAlign="left";$i(n).innerHTML+=res}else{i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px");i3GEO.util.posicionaImagemNoMapa("marcaIdentifica");balloon=new Balloon;balloon.delayTime=0;var res="<div style=text-align:left >"+res+"</div>";balloon.showTooltip($i("marcaIdentifica"),res);$i('marcaIdentifica').onclick=$i("closeButton").onclick}}}if($i("img")){var temp="zoom";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="identifica_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic)}}catch(e){if($i("img")){var temp="identifica";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="identifica_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic)}}};i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5")};if(g_operacao=="identifica"){eval(i3GEO.configura.funcaoTip)}};if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()")<0){i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()")}if(i3GEO.eventos.MOUSEPARADO.toString().search("verificaTip()")<0){i3GEO.eventos.MOUSEPARADO.push("verificaTip()")}}},{iddiv:"exten",tipo:"",dica:$trad("d8"),funcaoonclick:function(){i3GEO.janela.cria("450px","340px",i3GEO.configura.locaplic+"/ferramentas/mostraexten/index.htm","","","Extensão geográfica <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=55' > </a>")}},{iddiv:"referencia",tipo:"",dica:$trad("d9"),funcaoonclick:function(){i3GEO.maparef.inicia()}},{iddiv:"wiki",tipo:"",dica:$trad("d11"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm","","","Wiki <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=73' > </a>");atualizawiki=function(){if(!$i("wdocai")){i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()");return}var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadowiki")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/wiki/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizawiki()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizawiki()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizawiki()")}}},{iddiv:"buscafotos",tipo:"",dica:"Fotos",funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("550px","400px",i3GEO.configura.locaplic+"/ferramentas/buscafotos/index.htm","","","Fotos <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=74' > </a>");i3GEO.util.criaPin()}},{iddiv:"imprimir",tipo:"",dica:$trad("d12"),funcaoonclick:function(){i3GEO.janela.cria("320px","180px",i3GEO.configura.locaplic+"/ferramentas/imprimir/index.htm","","","Imprimir <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=49' > </a>")}},{iddiv:"ondeestou",tipo:"",dica:$trad("d13"),funcaoonclick:function(){i3GEO.navega.zoomIP(i3GEO.configura.locaplic,i3GEO.configura.sid)}},{iddiv:"v3d",tipo:"",dica:$trad("d14"),funcaoonclick:function(){i3GEO.janela.cria("400px","200px",i3GEO.configura.locaplic+"/ferramentas/3d/index.htm","","","3d <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=69' > </a>")}},{iddiv:"google",tipo:"",dica:$trad("d15"),funcaoonclick:function(){i3GEO.util.criaBox();g_operacao="navega";if(navn){i3GEO.janela.cria((i3GEO.parametros.w/2)+40+"px",(i3GEO.parametros.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>")}else{i3GEO.janela.cria("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>")}atualizagoogle=function(){try{if(navn){if($i("wdocai")){var doc=$i("wdocai").contentDocument}}else{if(document.frames("wdocai")){var doc=document.frames("wdocai").document}}if(window.parent.frames["wdocai"].panTogoogle){window.parent.frames["wdocai"].panTogoogle()}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()")}}},{iddiv:"scielo",tipo:"",dica:$trad("d16"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("450px","190px",i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm","","","Scielo");atualizascielo=function(){try{var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoscielo")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/scielo/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()")}}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizascielo()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizascielo()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizascielo()")}}},{iddiv:"confluence",tipo:"",dica:$trad("d17"),funcaoonclick:function(){g_operacao="navega";i3GEO.janela.cria("250px","190px",i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm","","","Confluence <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=8&idajuda=75' > </a>");i3GEO.util.criaBox();atualizaconfluence=function(){if(!$i("wdocai")){i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()");return}var docel=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(docel.getElementById("resultadoconfluence")){$i("wdocai").src=i3GEO.configura.locaplic+"/ferramentas/confluence/index.htm"}else{i3GEO.eventos.NAVEGAMAPA.remove("atualizaconfluence()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaconfluence()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizaconfluence()")}}},{iddiv:"lentei",tipo:"",dica:$trad("d18"),funcaoonclick:function(){if(i3GEO.navega.lente.ESTAATIVA=="nao"){i3GEO.navega.lente.inicia()}else i3GEO.navega.lente.desativa()}},{iddiv:"encolheFerramentas",tipo:"",dica:$trad("d19"),funcaoonclick:function(){i3GEO.guias.libera()}},{iddiv:"reinicia",tipo:"",dica:$trad("d20"),funcaoonclick:function(){i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.reiniciaMapa(i3GEO.atualiza)}},{iddiv:"mede",tipo:"dinamico",dica:$trad("d21"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("mede");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"distancia","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeDistancia.inicia()}},{iddiv:"area",tipo:"dinamico",dica:$trad("d21a"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("area");if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"area","img",i3GEO.configura.locaplic)}g_tipoacao="";i3GEO.analise.medeArea.inicia()}},{iddiv:"inserexy",tipo:"dinamico",dica:$trad("d22"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inserexy");g_tipoacao="";i3GEO.mapa.dialogo.cliquePonto();if($i("img")){$i("img").title="clique para inserir um ponto";$i("img").style.cursor="crosshair"}}},{iddiv:"inseregrafico",tipo:"dinamico",dica:$trad("d23"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("inseregrafico");g_tipoacao="";i3GEO.mapa.dialogo.cliqueGrafico();if($i("img")){$i("img").title="clique para incluir o gráfico";$i("img").style.cursor="pointer"}}},{iddiv:"selecao",tipo:"dinamico",dica:$trad("d24"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("selecao");i3GEO.selecao.janelaOpcoes();if($i("img")){$i("img").title="";$i("img").style.cursor="pointer"}}},{iddiv:"textofid",tipo:"dinamico",dica:$trad("d25"),funcaoonclick:function(){i3GEO.barraDeBotoes.ativaIcone("textofid");g_tipoacao="";i3GEO.mapa.dialogo.cliqueTexto();if($i("img")){$i("img").title="clique para inserir o texto";$i("img").style.cursor="pointer"}}},{iddiv:"rota",tipo:"",dica:"Rota",funcaoonclick:function(){if(i3GEO.interface.ATUAL!="googlemaps"){alert("Operacao disponivel apenas na interface Google Maps");return}counterClick=1;var parametrosRota=function(overlay,latlng){if(counterClick==1){counterClick++;alert("Clique o ponto de destino da rota");pontoRota1=latlng return}if(counterClick==2){pontoRota2=latlng counterClick=0;GEvent.removeListener(rotaEvento)var janela=i3GEO.janela.cria("300px","300px","","center","","Rota");janela[2].style.overflow="auto";janela[2].style.height="300px";directions=new GDirections(i3GeoMap,janela[2]);var temp=function(){$i("wdoca_corpo").innerHTML="Não foi possível criar a rota"};GEvent.addListener(directions,"error",temp);directions.load("from: "+pontoRota1.lat()+","+pontoRota1.lng()+" to: "+pontoRota2.lat()+","+pontoRota2.lng())}};rotaEvento=GEvent.addListener(i3GeoMap,"click",parametrosRota);alert("Clique o ponto de origem da rota")}}]}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/compactados/classe_eventos_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}objposicaocursor={ddx:"",ddy:"",dmsx:"",dmsy:"",telax:"",telay:"",imgx:"",imgy:"",refx:"",refy:""};i3GEO.eventos={NAVEGAMAPA:new Array("atualizaEscalaNumerica()"),MOUSEPARADO:new Array("i3GEO.navega.mostraRosaDosVentos()"),MOUSEMOVE:new Array(),MOUSEDOWN:new Array(),MOUSEUP:new Array(),MOUSECLIQUE:new Array("i3GEO.eventos.cliqueCapturaPt()"),TIMERPARADO:"",mouseParado:function(){try{clearTimeout(i3GEO.eventos.TIMERPARADO)}catch(e){i3GEO.eventos.TIMERPARADO=""}try{if(i3GEO.eventos.MOUSEPARADO.length>0&&objposicaocursor.imgy>0&&objposicaocursor.imgx>0){var f=i3GEO.eventos.MOUSEPARADO.length-1;if(f>=0){do{if(objposicaocursor.imgx>0){eval(i3GEO.eventos.MOUSEPARADO[f])}}while(f--)}}}catch(e){}},navegaMapa:function(){if(i3GEO.eventos.NAVEGAMAPA.length>0){var f=i3GEO.eventos.NAVEGAMAPA.length-1;if(f>=0){do{var temp=i3GEO.eventos.NAVEGAMAPA[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.NAVEGAMAPA[f])}}while(f--)}}},mousemoveMapa:function(){if(i3GEO.eventos.MOUSEMOVE.length>0){var f=i3GEO.eventos.MOUSEMOVE.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEMOVE[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEMOVE[f])}}while(f--)}}},mousedownMapa:function(){if(i3GEO.eventos.MOUSEDOWN.length>0){var f=i3GEO.eventos.MOUSEDOWN.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEDOWN[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEDOWN[f])}}while(f--)}}},mouseupMapa:function(){if(i3GEO.eventos.MOUSEUP.length>0){var f=i3GEO.eventos.MOUSEUP.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEUP[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEUP[f])}}while(f--)}}},mousecliqueMapa:function(){if(i3GEO.eventos.MOUSECLIQUE.length>0){var f=i3GEO.eventos.MOUSECLIQUE.length-1;if(f>=0){do{eval(i3GEO.eventos.MOUSECLIQUE[f])}while(f--)}}},posicaoMouseMapa:function(e){if(i3GEO.interface.ATUAL=="googlemaps"){return}if(!e)var e=window.event;if(e.target){var targ=e.target}else if(e.srcElement)var targ=e.srcElement;if(targ.id==""&&$i(i3GEO.interface.IDMAPA)){var targ=$i(i3GEO.interface.IDMAPA)}try{if(g_panM!='undefined'&&g_panM=="sim"){var pos=i3GEO.util.pegaPosicaoObjeto(targ.parentNode)}else{var pos=i3GEO.util.pegaPosicaoObjeto(targ)}if((i3GEO.configura.entorno=="sim")&&(g_panM=="sim")){pos[0]=pos[0]-i3GEO.parametros.w;pos[1]=pos[1]-i3GEO.parametros.h}}catch(m){var pos=i3GEO.util.pegaPosicaoObjeto(targ)}var mousex=0;var mousey=0;if(e.pageX||e.pageY){var mousex=e.pageX;var mousey=e.pageY}else if(e.clientX||e.clientY){var mousex=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;var mousey=e.clientY+document.body.scrollTop+document.documentElement.scrollTop}var xfig=mousex-pos[0];var yfig=mousey-pos[1];var xreffig=xfig;var yreffig=yfig;var xtela=mousex;var ytela=mousey;var c=i3GEO.parametros.pixelsize;var ex=i3GEO.parametros.mapexten;try{if(targ.id=="imagemReferencia"){var c=i3GEO.parametros.celularef;var ex=i3GEO.parametros.extentref;var r=$i("i3geo_rosa");if(r)r.style.display="none"}}catch(e){i3GEO.parametros.celularef=0}var teladd=i3GEO.calculo.tela2dd(xfig,yfig,c,ex);var teladms=i3GEO.calculo.dd2dms(teladd[0],teladd[1]);objposicaocursor={ddx:teladd[0],ddy:teladd[1],dmsx:teladms[0],dmsy:teladms[1],telax:xtela,telay:ytela,imgx:xfig,imgy:yfig,refx:xreffig,refy:yreffig}},ativa:function(docMapa){docMapa.onmouseover=function(){this.onmousemove=function(exy){i3GEO.eventos.posicaoMouseMapa(exy);try{try{clearTimeout(i3GEO.eventos.TIMERPARADO)}catch(e){var a=e}i3GEO.eventos.TIMERPARADO=setTimeout('i3GEO.eventos.mouseParado()',i3GEO.configura.tempoMouseParado)}catch(e){var e=""}try{i3GEO.eventos.mousemoveMapa()}catch(e){var e=""}}};docMapa.onmouseout=function(){try{objmapaparado="parar"}catch(e){var e=""}};docMapa.onmousedown=function(exy){try{i3GEO.eventos.posicaoMouseMapa(exy);i3GEO.eventos.mousedownMapa()}catch(e){var e=""}};docMapa.onclick=function(){try{i3GEO.eventos.mousecliqueMapa()}catch(e){var e=""}};docMapa.onmouseup=function(){try{i3GEO.eventos.mouseupMapa()}catch(e){var e=""}}},cliqueCapturaPt:function(){if(g_tipoacao!="capturaponto"){return}else{if($i("wdocai")){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument}try{var x=objposicaocursor.dmsx.split(" ");var y=objposicaocursor.dmsy.split(" ");if(doc.getElementById("ixg")){doc.getElementById("ixg").value=x[0]}if(doc.getElementById("ixm")){doc.getElementById("ixm").value=x[1]}if(doc.getElementById("ixs")){doc.getElementById("ixs").value=x[2]}if(doc.getElementById("iyg")){doc.getElementById("iyg").value=y[0]}if(doc.getElementById("iym")){doc.getElementById("iym").value=y[1]}if(doc.getElementById("iys")){doc.getElementById("iys").value=y[2]}}catch(m){}}}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}objposicaocursor={ddx:"",ddy:"",dmsx:"",dmsy:"",telax:"",telay:"",imgx:"",imgy:"",refx:"",refy:""};i3GEO.eventos={NAVEGAMAPA:new Array("atualizaEscalaNumerica()"),MOUSEPARADO:new Array("i3GEO.navega.mostraRosaDosVentos()"),MOUSEMOVE:new Array(),MOUSEDOWN:new Array(),MOUSEUP:new Array(),MOUSECLIQUE:new Array("i3GEO.eventos.cliqueCapturaPt()"),TIMERPARADO:"",mouseParado:function(){try{clearTimeout(i3GEO.eventos.TIMERPARADO)}catch(e){i3GEO.eventos.TIMERPARADO=""}try{if(i3GEO.eventos.MOUSEPARADO.length>0&&objposicaocursor.imgy>0&&objposicaocursor.imgx>0){var f=i3GEO.eventos.MOUSEPARADO.length-1;if(f>=0){do{if(objposicaocursor.imgx>0){eval(i3GEO.eventos.MOUSEPARADO[f])}}while(f--)}}}catch(e){}},navegaMapa:function(){if(i3GEO.eventos.NAVEGAMAPA.length>0){var f=i3GEO.eventos.NAVEGAMAPA.length-1;if(f>=0){do{var temp=i3GEO.eventos.NAVEGAMAPA[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.NAVEGAMAPA[f])}}while(f--)}}},mousemoveMapa:function(){if(i3GEO.eventos.MOUSEMOVE.length>0){var f=i3GEO.eventos.MOUSEMOVE.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEMOVE[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEMOVE[f])}}while(f--)}}},mousedownMapa:function(){if(i3GEO.eventos.MOUSEDOWN.length>0){var f=i3GEO.eventos.MOUSEDOWN.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEDOWN[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEDOWN[f])}}while(f--)}}},mouseupMapa:function(){if(i3GEO.eventos.MOUSEUP.length>0){var f=i3GEO.eventos.MOUSEUP.length-1;if(f>=0){do{var temp=i3GEO.eventos.MOUSEUP[f].replace("()","");if(eval('typeof '+temp)=='function'){eval(i3GEO.eventos.MOUSEUP[f])}}while(f--)}}},mousecliqueMapa:function(exy){if(i3GEO.eventos.MOUSECLIQUE.length>0){var f=i3GEO.eventos.MOUSECLIQUE.length-1;if(f>=0){do{eval(i3GEO.eventos.MOUSECLIQUE[f])}while(f--)}}},posicaoMouseMapa:function(e){if(i3GEO.interface.ATUAL=="googlemaps"){return}if(!e)var e=window.event;if(e.target){var targ=e.target}else if(e.srcElement)var targ=e.srcElement;if(targ.id==""&&$i(i3GEO.interface.IDMAPA)){var targ=$i(i3GEO.interface.IDMAPA)}try{if(g_panM!='undefined'&&g_panM=="sim"){var pos=i3GEO.util.pegaPosicaoObjeto(targ.parentNode)}else{var pos=i3GEO.util.pegaPosicaoObjeto(targ)}if((i3GEO.configura.entorno=="sim")&&(g_panM=="sim")){pos[0]=pos[0]-i3GEO.parametros.w;pos[1]=pos[1]-i3GEO.parametros.h}}catch(m){var pos=i3GEO.util.pegaPosicaoObjeto(targ)}var mousex=0;var mousey=0;if(e.pageX||e.pageY){var mousex=e.pageX;var mousey=e.pageY}else if(e.clientX||e.clientY){var mousex=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;var mousey=e.clientY+document.body.scrollTop+document.documentElement.scrollTop}var xfig=mousex-pos[0];var yfig=mousey-pos[1];var xreffig=xfig;var yreffig=yfig;var xtela=mousex;var ytela=mousey;var c=i3GEO.parametros.pixelsize;var ex=i3GEO.parametros.mapexten;try{if(targ.id=="imagemReferencia"){var c=i3GEO.parametros.celularef;var ex=i3GEO.parametros.extentref;var r=$i("i3geo_rosa");if(r)r.style.display="none"}}catch(e){i3GEO.parametros.celularef=0}var teladd=i3GEO.calculo.tela2dd(xfig,yfig,c,ex);var teladms=i3GEO.calculo.dd2dms(teladd[0],teladd[1]);objposicaocursor={ddx:teladd[0],ddy:teladd[1],dmsx:teladms[0],dmsy:teladms[1],telax:xtela,telay:ytela,imgx:xfig,imgy:yfig,refx:xreffig,refy:yreffig}},ativa:function(docMapa){docMapa.onmouseover=function(){this.onmousemove=function(exy){i3GEO.eventos.posicaoMouseMapa(exy);try{try{clearTimeout(i3GEO.eventos.TIMERPARADO)}catch(e){var a=e}i3GEO.eventos.TIMERPARADO=setTimeout('i3GEO.eventos.mouseParado()',i3GEO.configura.tempoMouseParado)}catch(e){var e=""}try{i3GEO.eventos.mousemoveMapa()}catch(e){var e=""}}};docMapa.onmouseout=function(){try{objmapaparado="parar"}catch(e){var e=""}};docMapa.onmousedown=function(exy){try{i3GEO.eventos.posicaoMouseMapa(exy);if(navm){var k=event.button}else{var k=exy.button}if(k!=2)i3GEO.eventos.mousedownMapa()}catch(e){var e=""}};docMapa.onclick=function(exy){try{if(navm){var k=event.button}else{var k=exy.button}if(k!=2)i3GEO.eventos.mousecliqueMapa()}catch(e){var e=""}};docMapa.onmouseup=function(exy){try{if(navm){var k=event.button}else{var k=exy.button}if(k!=2)i3GEO.eventos.mouseupMapa()}catch(e){var e=""}}},cliqueCapturaPt:function(){if(g_tipoacao!="capturaponto"){return}else{if($i("wdocai")){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument}try{var x=objposicaocursor.dmsx.split(" ");var y=objposicaocursor.dmsy.split(" ");if(doc.getElementById("ixg")){doc.getElementById("ixg").value=x[0]}if(doc.getElementById("ixm")){doc.getElementById("ixm").value=x[1]}if(doc.getElementById("ixs")){doc.getElementById("ixs").value=x[2]}if(doc.getElementById("iyg")){doc.getElementById("iyg").value=y[0]}if(doc.getElementById("iym")){doc.getElementById("iym").value=y[1]}if(doc.getElementById("iys")){doc.getElementById("iys").value=y[2]}}catch(m){}}}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/compactados/classe_interface_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.interface={BARRABOTOESTOP:12,BARRABOTOESLEFT:3,ATUAL:"padrao",IDCORPO:"corpoMapa",IDMAPA:"",redesenha:function(){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".redesenha()")},cria:function(w,h){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".cria("+w+","+h+")")},inicia:function(w,h){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".inicia()")},ativaBotoes:function(){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".ativaBotoes()")},padrao:{redesenha:function(){$i("img").onload=function(){var imagem=$i("img");imagem.onload="";i3GEO.gadgets.quadros.grava("imagem",i3GEO.parametros.mapimagem);i3GEO.gadgets.quadros.grava("extensao",i3GEO.parametros.mapexten);var temp=function(retorno){eval(retorno.data);i3GEO.gadgets.quadros.grava("legenda",legimagem)};i3GEO.mapa.legendaIMAGEM.obtem(temp);if($i("imgtemp")){i3GEO.util.desaparece("imgtemp",50,5,true)}i3GEO.util.aparece("img",50,5);i3GEO.janela.fechaAguarde("ajaxCorpoMapa")};if(!$i("imgtemp")){var ndiv=document.createElement("div");ndiv.id="imgtemp";ndiv.style.position="absolute";ndiv.style.border="1px solid blue";document.getElementById("corpoMapa").appendChild(ndiv)}if(g_tipoacao=="pan"&&i3GEO.barraDeBotoes.BOTAOCLICADO=="pan"){$i("imgtemp").style.left=parseInt($i("img").style.left);$i("imgtemp").style.top=parseInt($i("img").style.top);$i("imgtemp").style.width=i3GEO.parametros.w;$i("imgtemp").style.height=i3GEO.parametros.h}$i("imgtemp").style.backgroundImage='url("'+$i("img").src+'")';$i("imgtemp").style.display="block";var i=$i("img");i.style.display="none";i.style.left=0;i.style.top=0;i.src=i3GEO.parametros.mapimagem},cria:function(){var ins="<table>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgN' /></td><td class=verdeclaro ></td></tr>";ins+="<tr><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgL' /></td><td class=verdeclaro ><input style='position:relative;top:0px;left:0px'' type=image src='' id='img' /></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgO' /></td></tr>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>";ins+="</table>";$i(i3GEO.interface.IDCORPO).innerHTML=ins;i3GEO.interface.IDMAPA="img"},inicia:function(){if($i("contemImg")){var elemento="contemImg"}else{var elemento="img"}i3GEO.mapa.ajustaPosicao(elemento);var i=$i("img");i.style.width=i3GEO.parametros.w+"px";i.style.height=i3GEO.parametros.h+"px";var estilo=$i(i3GEO.interface.IDCORPO).style;estilo.width=i3GEO.parametros.w+"px";estilo.height=i3GEO.parametros.h+"px";estilo.clip='rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')';objmapaparado="nao";i3GEO.gadgets.mostraMenuSuspenso();i3GEO.eventos.ativa(i);i3GEO.gadgets.mostraCoordenadasGEO();i3GEO.gadgets.mostraCoordenadasUTM();i3GEO.gadgets.mostraEscalaNumerica();i3GEO.gadgets.mostraEscalaGrafica();i3GEO.gadgets.visual.inicia();i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens);i3GEO.interface.padrao.ativaBotoes();i3GEO.idioma.mostraSeletor();if(i3GEO.configura.mapaRefDisplay!="none"){if(i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay=i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")}if(i3GEO.configura.mapaRefDisplay=="block"){i3GEO.maparef.inicia()}}},ativaBotoes:function(){var imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO));if($i("barraDeBotoes1")){var x1=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT;var y1=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes2")){var x2=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT;var y2=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes1")&&$i("barraDeBotoes2")){var x1=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT+40}if($i("barraDeBotoes1"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1);if($i("barraDeBotoes2"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);i3GEO.barraDeBotoes.ativaBotoes();if(document.getElementById("botao3d")){if(i3GEO.configura.map3d==""){document.getElementById("botao3d").style.display="none"}}}},flamingo:{redesenha:function(){var w=parseInt($i("flamingo").style.width);if(w==i3GEO.parametros.w){$i("flamingo").style.height=parseInt($i("flamingo").style.height)+1}else{$i("flamingo").style.height=parseInt($i("flamingo").style.height)-1}i3GEO.janela.fechaAguarde()},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("flamingo");if(!f){var ins='<div id=flamingo style="width:0px;height:0px;text-align:left;background-image:url(/"'+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg/")"></div>';i.innerHTML=ins}var f=$i("flamingo");f.style.width=w;f.style.height=h;i3GEO.interface.IDMAPA="flamingo"}},inicia:function(){var monta=function(retorno){$i("flamingo").style.height=i3GEO.parametros.h+45;childPopups=new Array();childPopupNr=0;var so=new SWFObject(i3GEO.configura.locaplic+"/pacotes/flamingo/flamingo/flamingo.swf?config="+retorno.data,"flamingoi","100%","100%","8","#eaeaea");so.addParam("wmode","transparent");so.write("flamingo")}i3GEO.php.flamingo(monta);i3GEO.eventos.ativa($i("flamingo"));i3GEO.maparef.atualiza();if(i3GEO.configura.mapaRefDisplay!="none"){if(i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay=i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")}if(i3GEO.configura.mapaRefDisplay=="block"){i3GEO.maparef.inicia()}}},ativaBotoes:function(){}},openlayers:{redesenha:function(){if($i("openlayers_OpenLayers_Container")){var no=$i("openlayers_OpenLayers_Container");var divs1=no.getElementsByTagName("div");var n1=divs1.length;for(a=0;a<n1;a++){var divs2=divs1[a].getElementsByTagName("div");var n2=divs2.length;for(b=0;b<n2;b++){var imgs=divs2[b].getElementsByTagName("img");var nimg=imgs.length;for(c=0;c<nimg;c++){imgs[c].src+="&x"}}}}i3GEO.janela.fechaAguarde()},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("openlayers");if(!f){var ins='<div id=openlayers style="width:0px;height:0px;text-align:left;background-image:url('+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg)"></div>';i.innerHTML=ins}var f=$i("openlayers");f.style.width=w;f.style.height=h}i3GEO.interface.IDMAPA="openlayers"},inicia:function(){var montaMapa=function(){var url=window.location.protocol+"//"+window.location.host+i3GEO.parametros.cgi+"?";url+="map="+i3GEO.parametros.mapfile+"&mode=map&SRS=epsg:4326&";i3geoOL=new OpenLayers.Map('openlayers',{controls:[]});i3geoOLlayer=new OpenLayers.Layer.MapServer("Temas I3Geo",url,{layers:'estadosl'},{'buffer':1},{isBaseLayer:true,opacity:1});i3geoOLlayer.setVisibility(true);i3geoOL.addLayer(i3geoOLlayer);i3geoOL.events.register("mousemove",i3geoOL,function(e){if(navm){var p=new OpenLayers.Pixel(e.x,e.y)}else{var p=e.xy}var lonlat=i3geoOL.getLonLatFromViewPortPx(p);var d=i3GEO.calculo.dd2dms(lonlat.lon,lonlat.lat);try{objposicaomouse.x=p.x;objposicaomouse.y=p.y;objposicaocursor.ddx=lonlat.lon;objposicaocursor.ddy=lonlat.lat;objposicaocursor.telax=p.x;objposicaocursor.telay=p.y;var dc=$i("i3geo");if($i("openlayers_OpenLayers_Container")){var dc=$i("openlayers_OpenLayers_Container")}while(dc.offsetParent){dc=dc.offsetParent;objposicaocursor.telax=objposicaocursor.telax+dc.offsetLeft;objposicaocursor.telay=objposicaocursor.telay+dc.offsetTop}}catch(e){}});var pz=new OpenLayers.Control.PanZoomBar({numZoomLevels:5});i3geoOL.addControl(pz);pz.div.style.zIndex=5000;var navc=new OpenLayers.Control.NavToolbar();i3geoOL.addControl(navc);navc.div.style.left="8px";navc.div.style.top="-20px";navc.div.onclick=function(){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan","img",i3GEO.configura.locaplic);g_operacao="navega"};zb=new OpenLayers.Control.ZoomToMaxExtent();var botoesadic=new OpenLayers.Control.Panel();i3geoOL.addControl(new OpenLayers.Control.LayerSwitcher());var m=i3GEO.parametros.mapexten.split(" ");var b=new OpenLayers.Bounds(m[0],m[1],m[2],m[3]);i3geoOL.zoomToExtent(b);i3geoOL.addControl(new OpenLayers.Control.Scale("escalanumerica"));i3geoOL.addControl(new OpenLayers.Control.KeyboardDefaults());i3GEO.eventos.ativa($i("openlayers"));var pos=i3GEO.util.pegaPosicaoObjeto($i("openlayers"));if($i("aguarde")){$top("aguarde",pos[1]);$left("aguarde",pos[0])}};i3GEO.php.openlayers(montaMapa)},ativaBotoes:function(){}},googlemaps:{OPACIDADE:0.8,TIPOMAPA:"G_PHYSICAL_MAP",redesenha:function(){if(i3GeoMap!=""){posfixo=posfixo+"&";if(tile==false){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS()+posfixo,i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap)}else{i3GeoMap.removeOverlay(i3GEOTileO);var i3GEOTile=new GTileLayer(null,0,18,{tileUrlTemplate:i3GEO.interface.googlemaps.criaTile()+posfixo,isPng:true,opacity:i3GEO.interface.googlemaps.OPACIDADE});i3GEOTileO=new GTileLayerOverlay(i3GEOTile);i3GeoMap.addOverlay(i3GEOTileO)}}var n=i3GEO.mapa.GEOXML.length;for(i=0;i<n;i++){i3GEO.mapa.criaNoArvoreGoogle(i3GEO.mapa.GEOXML[i],i3GEO.mapa.GEOXML[i])}},cria:function(w,h){posfixo="&";var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("googlemapsdiv");if(!f){var ins='<div id=googlemapsdiv style="width:0px;height:0px;text-align:left;background-image:url('+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg)"></div>';i.innerHTML=ins}var f=$i("googlemapsdiv");f.style.width=w;f.style.height=h}i3GeoMap="";i3GEO.interface.IDMAPA="googlemapsdiv"},inicia:function(){tile=false;var ver=i3GEO.parametros.versaomscompleta.split(".");if(parseInt(i3GEO.parametros.versaoms)>=5&&parseInt(ver[1])>1){tile=true}var pol=i3GEO.parametros.mapexten;var ret=pol.split(" ");var pt1=(((ret[0]*-1)-(ret[2]*-1))/2)+ret[0]*1;var pt2=(((ret[1]-ret[3])/2)*-1)+ret[1]*1;i3GeoMap=new GMap2($i(i3GEO.interface.IDMAPA));i3GeoMap.addMapType(G_PHYSICAL_MAP);i3GeoMap.setMapType(eval(i3GEO.interface.googlemaps.TIPOMAPA));i3GeoMap.addControl(new GLargeMapControl());i3GeoMap.addControl(new GMapTypeControl());var bottomLeft=new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(0,40));i3GeoMap.addControl(new GScaleControl(),bottomLeft);var bottomRight=new GControlPosition(G_ANCHOR_BOTTOM_RIGHT);i3GeoMap.addControl(new GOverviewMapControl(),bottomRight);i3GeoMap.setCenter(new GLatLng(pt2,pt1),4);if(tile==false){wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);GEvent.addListener(i3GeoMap,"zoomend",function(){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);i3GEO.interface.googlemaps.recalcPar();g_operacao="";g_tipoacao=""});GEvent.addListener(i3GeoMap,"dragend",function(){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);i3GEO.interface.googlemaps.recalcPar()});GEvent.addListener(i3GeoMap,"dragstart",function(){g_operacao="";g_tipoacao=""})}else{var i3GEOTile=new GTileLayer(null,0,18,{tileUrlTemplate:i3GEO.interface.googlemaps.criaTile(),isPng:true,opacity:i3GEO.interface.googlemaps.OPACIDADE});i3GEOTileO=new GTileLayerOverlay(i3GEOTile);i3GeoMap.addOverlay(i3GEOTileO);var myMapType=new GMapType([i3GEOTile],new GMercatorProjection(18),'i3Geo');i3GeoMap.addMapType(myMapType);GEvent.addListener(i3GeoMap,"dragstart",function(){g_operacao="";g_tipoacao=""});GEvent.addListener(i3GeoMap,"dragend",function(){i3GEO.interface.googlemaps.recalcPar()});GEvent.addListener(i3GeoMap,"zoomend",function(){i3GEO.interface.googlemaps.recalcPar();g_operacao="";g_tipoacao=""})}i3GEO.interface.googlemaps.ativaBotoes();i3GEO.eventos.ativa($i(i3GEO.interface.IDMAPA));i3GEO.gadgets.mostraCoordenadasGEO();i3GEO.gadgets.mostraMenuSuspenso();i3GEO.gadgets.mostraInserirKml();var pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDMAPA));GEvent.addListener(i3GeoMap,"mousemove",function(ponto){var teladms=i3GEO.calculo.dd2dms(ponto.lng(),ponto.lat());var tela=i3GeoMap.fromLatLngToContainerPixel(ponto);objposicaocursor={ddx:ponto.lng(),ddy:ponto.lat(),dmsx:teladms[0],dmsy:teladms[1],imgx:tela.x,imgy:tela.y,telax:tela.x+pos[0],telay:tela.y+pos[1]}});g_operacao="";g_tipoacao="";if(i3GEO.parametros.kmlurl!=""){i3GEO.mapa.insereKml(true,i3GEO.parametros.kmlurl)}},bbox:function(){var bd=i3GeoMap.getBounds();var so=bd.getSouthWest();var ne=bd.getNorthEast();var bbox=so.lng()+" "+so.lat()+" "+ne.lng()+" "+ne.lat();return(bbox)},criaWMS:function(){var cgi=i3GEO.configura.locaplic+"/classesphp/parse_cgi.php?g_sid="+i3GEO.configura.sid;var parametros="&map_size="+parseInt($i(i3GEO.interface.IDMAPA).style.width);parametros+=","+parseInt($i(i3GEO.interface.IDMAPA).style.height);parametros+="&mapext="+i3GEO.interface.googlemaps.bbox();parametros+="&map_imagecolor=-1 -1 -1&map_transparent=on";return(cgi+parametros)},criaTile:function(){var cgi=i3GEO.util.protocolo()+"://"+window.location.host+i3GEO.parametros.cgi+"?";var parametros="map="+i3GEO.parametros.mapfile;parametros+='&mode=tile';parametros+='&tilemode=gmap';parametros+='&tile={X}+{Y}+{Z}';return(cgi+parametros)},ativaBotoes:function(){var imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO));if($i("barraDeBotoes2")){var x2=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT+70;var y2=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes2"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);i3GEO.barraDeBotoes.ativaBotoes()},mudaOpacidade:function(valor){i3GEO.interface.googlemaps.OPACIDADE=valor/200;i3GEO.interface.googlemaps.redesenha()},recalcPar:function(){g_operacao="";g_tipoacao="";var bounds=i3GeoMap.getBounds();var sw=bounds.getSouthWest();var ne=bounds.getNorthEast();i3GEO.parametros.mapexten=sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat()}},googleearth:{redesenha:function(){try{linki3geo.setHref(linki3geo.getHref()+"&")}catch(e){}},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var i3GeoMap3d=document.createElement("div");i3GeoMap3d.style.width=w;i3GeoMap3d.style.height=h+45;i.style.height=h+45;i3GeoMap3d.id="i3GeoMap3d";i.appendChild(i3GeoMap3d)}i3GEO.interface.IDMAPA="i3GeoMap3d";google.load("earth","1");var i3GeoMap=null},inicia:function(){google.earth.createInstance("i3GeoMap3d",i3GEO.interface.googleearth.iniciaGE,i3GEO.interface.googleearth.falha)},iniciaGE:function(object){i3GeoMap=object;i3GeoMap.getWindow().setVisibility(true);kmlUrl=i3GEO.configura.locaplic+"/pacotes/kmlmapserver/kmlservice.php?map="+i3GEO.parametros.mapfile+"&typename=estadosl&request=kml&mode=map&"linki3geo=i3GeoMap.createLink('');linki3geo.setHref(kmlUrl);nl=i3GeoMap.createNetworkLink('');nl.setLink(linki3geo);nl.setFlyToView(true);i3GeoMap.getFeatures().appendChild(nl);var options=i3GeoMap.getOptions();options.setMouseNavigationEnabled(true);options.setStatusBarVisibility(true);options.setOverviewMapVisibility(true);options.setScaleLegendVisibility(true);i3GeoMap.getNavigationControl().setVisibility(i3GeoMap.VISIBILITY_SHOW)},falha:function(){alert("Falhou. Vc precisa do plugin instalado")},ativaBotoes:function(){}}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.interface={BARRABOTOESTOP:12,BARRABOTOESLEFT:3,ATUAL:"padrao",IDCORPO:"corpoMapa",IDMAPA:"",ATIVAMENUCONTEXTO:false,redesenha:function(){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".redesenha()")},cria:function(w,h){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".cria("+w+","+h+")")},inicia:function(w,h){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".inicia()")},ativaBotoes:function(){eval("i3GEO.interface."+i3GEO.interface.ATUAL+".ativaBotoes()")},padrao:{redesenha:function(){$i("img").onload=function(){var imagem=$i("img");imagem.onload="";i3GEO.gadgets.quadros.grava("imagem",i3GEO.parametros.mapimagem);i3GEO.gadgets.quadros.grava("extensao",i3GEO.parametros.mapexten);var temp=function(retorno){eval(retorno.data);i3GEO.gadgets.quadros.grava("legenda",legimagem)};i3GEO.mapa.legendaIMAGEM.obtem(temp);if($i("imgtemp")){i3GEO.util.desaparece("imgtemp",50,5,true)}i3GEO.util.aparece("img",50,5);i3GEO.janela.fechaAguarde("ajaxCorpoMapa")};if(!$i("imgtemp")){var ndiv=document.createElement("div");ndiv.id="imgtemp";ndiv.style.position="absolute";ndiv.style.border="1px solid blue";document.getElementById("corpoMapa").appendChild(ndiv)}if(g_tipoacao=="pan"&&i3GEO.barraDeBotoes.BOTAOCLICADO=="pan"){$i("imgtemp").style.left=parseInt($i("img").style.left);$i("imgtemp").style.top=parseInt($i("img").style.top);$i("imgtemp").style.width=i3GEO.parametros.w;$i("imgtemp").style.height=i3GEO.parametros.h}$i("imgtemp").style.backgroundImage='url("'+$i("img").src+'")';$i("imgtemp").style.display="block";var i=$i("img");i.style.display="none";i.style.left=0;i.style.top=0;i.src=i3GEO.parametros.mapimagem},cria:function(){var ins="<table>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgN' /></td><td class=verdeclaro ></td></tr>";ins+="<tr><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgL' /></td><td class=verdeclaro ><input style='position:relative;top:0px;left:0px'' type=image src='' id='img' /></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgO' /></td></tr>";ins+="<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>";ins+="</table>";$i(i3GEO.interface.IDCORPO).innerHTML=ins;i3GEO.interface.IDMAPA="img"},ativaMenuContexto:function(){var temp=$i("contexto_"+i3GEO.interface.IDMAPA);if(temp){temp.parentNode.removeChild(temp)}function executar(a,b,c){eval(c)};var oFieldContextMenuItemData=[{text:" <span class='container-close'></span>"},{text:"<img class='rosamais' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Aproxima</span>",onclick:{fn:executar,obj:"i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);"}},{text:"<img class='rosamenos' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Afasta</span>",onclick:{fn:executar,obj:"i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);"}},{text:"<img class='rosanorte' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Norte</span>",onclick:{fn:executar,obj:"i3GEO.navega.panFixo('','','norte','','','');"}},{text:"<img class='rosasul' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Sul</span>",onclick:{fn:executar,obj:"i3GEO.navega.panFixo('','','sul','','','');"}},{text:"<img class='rosaleste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Leste</span>",onclick:{fn:executar,obj:"i3GEO.navega.panFixo('','','leste','','','');"}},{text:"<img class='rosaoeste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Oeste</span>",onclick:{fn:executar,obj:"i3GEO.navega.panFixo('','','oeste','','','');"}},{text:"Captura",onclick:{fn:executar,obj:"i3GEO.gadgets.quadros.listaImagens();"}}];var oFieldContextMenu=new YAHOO.widget.ContextMenu("contexto_"+i3GEO.interface.IDMAPA,{trigger:i3GEO.interface.IDMAPA,itemdata:oFieldContextMenuItemData,lazyload:true});var onFieldMenuRender=function(){eval("var id = 'contexto_"+i3GEO.interface.IDMAPA+"'");$i(id).style.zIndex=50000};oFieldContextMenu.subscribe("render",onFieldMenuRender)},inicia:function(){if($i("contemImg")){var elemento="contemImg"}else{var elemento="img"}i3GEO.mapa.ajustaPosicao(elemento);var i=$i("img");i.style.width=i3GEO.parametros.w+"px";i.style.height=i3GEO.parametros.h+"px";var estilo=$i(i3GEO.interface.IDCORPO).style;estilo.width=i3GEO.parametros.w+"px";estilo.height=i3GEO.parametros.h+"px";estilo.clip='rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')';objmapaparado="nao";i3GEO.gadgets.mostraMenuSuspenso();i3GEO.eventos.ativa(i);i3GEO.gadgets.mostraCoordenadasGEO();i3GEO.gadgets.mostraCoordenadasUTM();i3GEO.gadgets.mostraEscalaNumerica();i3GEO.gadgets.mostraEscalaGrafica();i3GEO.gadgets.visual.inicia();i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens);i3GEO.interface.padrao.ativaBotoes();i3GEO.idioma.mostraSeletor();if(i3GEO.configura.mapaRefDisplay!="none"){if(i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay=i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")}if(i3GEO.configura.mapaRefDisplay=="block"){i3GEO.maparef.inicia()}}},ativaBotoes:function(){var imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO));if($i("barraDeBotoes1")){var x1=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT;var y1=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes2")){var x2=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT;var y2=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes1")&&$i("barraDeBotoes2")){var x1=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT+40}if($i("barraDeBotoes1"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1);if($i("barraDeBotoes2"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);i3GEO.barraDeBotoes.ativaBotoes();if(document.getElementById("botao3d")){if(i3GEO.configura.map3d==""){document.getElementById("botao3d").style.display="none"}}if(i3GEO.interface.ATIVAMENUCONTEXTO)i3GEO.interface.padrao.ativaMenuContexto()}},flamingo:{redesenha:function(){var w=parseInt($i("flamingo").style.width);if(w==i3GEO.parametros.w){$i("flamingo").style.height=parseInt($i("flamingo").style.height)+1}else{$i("flamingo").style.height=parseInt($i("flamingo").style.height)-1}i3GEO.janela.fechaAguarde()},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("flamingo");if(!f){var ins='<div id=flamingo style="width:0px;height:0px;text-align:left;background-image:url(/"'+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg/")"></div>';i.innerHTML=ins}var f=$i("flamingo");f.style.width=w;f.style.height=h;i3GEO.interface.IDMAPA="flamingo"}},inicia:function(){var monta=function(retorno){$i("flamingo").style.height=i3GEO.parametros.h+45;childPopups=new Array();childPopupNr=0;var so=new SWFObject(i3GEO.configura.locaplic+"/pacotes/flamingo/flamingo/flamingo.swf?config="+retorno.data,"flamingoi","100%","100%","8","#eaeaea");so.addParam("wmode","transparent");so.write("flamingo")}i3GEO.php.flamingo(monta);i3GEO.eventos.ativa($i("flamingo"));i3GEO.maparef.atualiza();if(i3GEO.configura.mapaRefDisplay!="none"){if(i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay=i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")}if(i3GEO.configura.mapaRefDisplay=="block"){i3GEO.maparef.inicia()}}},ativaBotoes:function(){}},openlayers:{redesenha:function(){if($i("openlayers_OpenLayers_Container")){var no=$i("openlayers_OpenLayers_Container");var divs1=no.getElementsByTagName("div");var n1=divs1.length;for(a=0;a<n1;a++){var divs2=divs1[a].getElementsByTagName("div");var n2=divs2.length;for(b=0;b<n2;b++){var imgs=divs2[b].getElementsByTagName("img");var nimg=imgs.length;for(c=0;c<nimg;c++){imgs[c].src+="&x"}}}}i3GEO.janela.fechaAguarde()},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("openlayers");if(!f){var ins='<div id=openlayers style="width:0px;height:0px;text-align:left;background-image:url('+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg)"></div>';i.innerHTML=ins}var f=$i("openlayers");f.style.width=w;f.style.height=h}i3GEO.interface.IDMAPA="openlayers"},inicia:function(){var montaMapa=function(){var url=window.location.protocol+"//"+window.location.host+i3GEO.parametros.cgi+"?";url+="map="+i3GEO.parametros.mapfile+"&mode=map&SRS=epsg:4326&";i3geoOL=new OpenLayers.Map('openlayers',{controls:[]});i3geoOLlayer=new OpenLayers.Layer.MapServer("Temas I3Geo",url,{layers:'estadosl'},{'buffer':1},{isBaseLayer:true,opacity:1});i3geoOLlayer.setVisibility(true);i3geoOL.addLayer(i3geoOLlayer);i3geoOL.events.register("mousemove",i3geoOL,function(e){if(navm){var p=new OpenLayers.Pixel(e.x,e.y)}else{var p=e.xy}var lonlat=i3geoOL.getLonLatFromViewPortPx(p);var d=i3GEO.calculo.dd2dms(lonlat.lon,lonlat.lat);try{objposicaomouse.x=p.x;objposicaomouse.y=p.y;objposicaocursor.ddx=lonlat.lon;objposicaocursor.ddy=lonlat.lat;objposicaocursor.telax=p.x;objposicaocursor.telay=p.y;var dc=$i("i3geo");if($i("openlayers_OpenLayers_Container")){var dc=$i("openlayers_OpenLayers_Container")}while(dc.offsetParent){dc=dc.offsetParent;objposicaocursor.telax=objposicaocursor.telax+dc.offsetLeft;objposicaocursor.telay=objposicaocursor.telay+dc.offsetTop}}catch(e){}});var pz=new OpenLayers.Control.PanZoomBar({numZoomLevels:5});i3geoOL.addControl(pz);pz.div.style.zIndex=5000;var navc=new OpenLayers.Control.NavToolbar();i3geoOL.addControl(navc);navc.div.style.left="8px";navc.div.style.top="-20px";navc.div.onclick=function(){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan","img",i3GEO.configura.locaplic);g_operacao="navega"};zb=new OpenLayers.Control.ZoomToMaxExtent();var botoesadic=new OpenLayers.Control.Panel();i3geoOL.addControl(new OpenLayers.Control.LayerSwitcher());var m=i3GEO.parametros.mapexten.split(" ");var b=new OpenLayers.Bounds(m[0],m[1],m[2],m[3]);i3geoOL.zoomToExtent(b);i3geoOL.addControl(new OpenLayers.Control.Scale("escalanumerica"));i3geoOL.addControl(new OpenLayers.Control.KeyboardDefaults());i3GEO.eventos.ativa($i("openlayers"));var pos=i3GEO.util.pegaPosicaoObjeto($i("openlayers"));if($i("aguarde")){$top("aguarde",pos[1]);$left("aguarde",pos[0])}};i3GEO.php.openlayers(montaMapa)},ativaBotoes:function(){}},googlemaps:{OPACIDADE:0.8,TIPOMAPA:"G_PHYSICAL_MAP",redesenha:function(){if(i3GeoMap!=""){posfixo=posfixo+"&";if(tile==false){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS()+posfixo,i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap)}else{i3GeoMap.removeOverlay(i3GEOTileO);var i3GEOTile=new GTileLayer(null,0,18,{tileUrlTemplate:i3GEO.interface.googlemaps.criaTile()+posfixo,isPng:true,opacity:i3GEO.interface.googlemaps.OPACIDADE});i3GEOTileO=new GTileLayerOverlay(i3GEOTile);i3GeoMap.addOverlay(i3GEOTileO)}}var n=i3GEO.mapa.GEOXML.length;for(i=0;i<n;i++){i3GEO.mapa.criaNoArvoreGoogle(i3GEO.mapa.GEOXML[i],i3GEO.mapa.GEOXML[i])}},cria:function(w,h){posfixo="&";var i=$i(i3GEO.interface.IDCORPO);if(i){var f=$i("googlemapsdiv");if(!f){var ins='<div id=googlemapsdiv style="width:0px;height:0px;text-align:left;background-image:url('+i3GEO.configura.locaplic+'/imagens/i3geo1bw.jpg)"></div>';i.innerHTML=ins}var f=$i("googlemapsdiv");f.style.width=w;f.style.height=h}i3GeoMap="";i3GEO.interface.IDMAPA="googlemapsdiv"},inicia:function(){tile=false;var ver=i3GEO.parametros.versaomscompleta.split(".");if(parseInt(i3GEO.parametros.versaoms)>=5&&parseInt(ver[1])>1){tile=true}var pol=i3GEO.parametros.mapexten;var ret=pol.split(" ");var pt1=(((ret[0]*-1)-(ret[2]*-1))/2)+ret[0]*1;var pt2=(((ret[1]-ret[3])/2)*-1)+ret[1]*1;i3GeoMap=new GMap2($i(i3GEO.interface.IDMAPA));i3GeoMap.addMapType(G_PHYSICAL_MAP);i3GeoMap.setMapType(eval(i3GEO.interface.googlemaps.TIPOMAPA));i3GeoMap.addControl(new GLargeMapControl());i3GeoMap.addControl(new GMapTypeControl());var bottomLeft=new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(0,40));i3GeoMap.addControl(new GScaleControl(),bottomLeft);var bottomRight=new GControlPosition(G_ANCHOR_BOTTOM_RIGHT);i3GeoMap.addControl(new GOverviewMapControl(),bottomRight);i3GeoMap.setCenter(new GLatLng(pt2,pt1),4);if(tile==false){wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);GEvent.addListener(i3GeoMap,"zoomend",function(){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);i3GEO.interface.googlemaps.recalcPar();g_operacao="";g_tipoacao=""});GEvent.addListener(i3GeoMap,"dragend",function(){i3GeoMap.removeOverlay(wmsmap);wmsmap=new GGroundOverlay(i3GEO.interface.googlemaps.criaWMS(),i3GeoMap.getBounds());i3GeoMap.addOverlay(wmsmap);i3GEO.interface.googlemaps.recalcPar()});GEvent.addListener(i3GeoMap,"dragstart",function(){g_operacao="";g_tipoacao=""})}else{var i3GEOTile=new GTileLayer(null,0,18,{tileUrlTemplate:i3GEO.interface.googlemaps.criaTile(),isPng:true,opacity:i3GEO.interface.googlemaps.OPACIDADE});i3GEOTileO=new GTileLayerOverlay(i3GEOTile);i3GeoMap.addOverlay(i3GEOTileO);var myMapType=new GMapType([i3GEOTile],new GMercatorProjection(18),'i3Geo');i3GeoMap.addMapType(myMapType);GEvent.addListener(i3GeoMap,"dragstart",function(){g_operacao="";g_tipoacao=""});GEvent.addListener(i3GeoMap,"dragend",function(){i3GEO.interface.googlemaps.recalcPar()});GEvent.addListener(i3GeoMap,"zoomend",function(){i3GEO.interface.googlemaps.recalcPar();g_operacao="";g_tipoacao=""})}i3GEO.interface.googlemaps.ativaBotoes();i3GEO.eventos.ativa($i(i3GEO.interface.IDMAPA));i3GEO.gadgets.mostraCoordenadasGEO();i3GEO.gadgets.mostraMenuSuspenso();i3GEO.gadgets.mostraInserirKml();var pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDMAPA));GEvent.addListener(i3GeoMap,"mousemove",function(ponto){var teladms=i3GEO.calculo.dd2dms(ponto.lng(),ponto.lat());var tela=i3GeoMap.fromLatLngToContainerPixel(ponto);objposicaocursor={ddx:ponto.lng(),ddy:ponto.lat(),dmsx:teladms[0],dmsy:teladms[1],imgx:tela.x,imgy:tela.y,telax:tela.x+pos[0],telay:tela.y+pos[1]}});g_operacao="";g_tipoacao="";if(i3GEO.parametros.kmlurl!=""){i3GEO.mapa.insereKml(true,i3GEO.parametros.kmlurl)}},bbox:function(){var bd=i3GeoMap.getBounds();var so=bd.getSouthWest();var ne=bd.getNorthEast();var bbox=so.lng()+" "+so.lat()+" "+ne.lng()+" "+ne.lat();return(bbox)},criaWMS:function(){var cgi=i3GEO.configura.locaplic+"/classesphp/parse_cgi.php?g_sid="+i3GEO.configura.sid;var parametros="&map_size="+parseInt($i(i3GEO.interface.IDMAPA).style.width);parametros+=","+parseInt($i(i3GEO.interface.IDMAPA).style.height);parametros+="&mapext="+i3GEO.interface.googlemaps.bbox();parametros+="&map_imagecolor=-1 -1 -1&map_transparent=on";return(cgi+parametros)},criaTile:function(){var cgi=i3GEO.util.protocolo()+"://"+window.location.host+i3GEO.parametros.cgi+"?";var parametros="map="+i3GEO.parametros.mapfile;parametros+='&mode=tile';parametros+='&tilemode=gmap';parametros+='&tile={X}+{Y}+{Z}';return(cgi+parametros)},ativaBotoes:function(){var imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO));if($i("barraDeBotoes2")){var x2=imagemxy[0]+i3GEO.interface.BARRABOTOESLEFT+70;var y2=imagemxy[1]+i3GEO.interface.BARRABOTOESTOP}if($i("barraDeBotoes2"))i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2);i3GEO.barraDeBotoes.ativaBotoes()},mudaOpacidade:function(valor){i3GEO.interface.googlemaps.OPACIDADE=valor/200;i3GEO.interface.googlemaps.redesenha()},recalcPar:function(){g_operacao="";g_tipoacao="";var bounds=i3GeoMap.getBounds();var sw=bounds.getSouthWest();var ne=bounds.getNorthEast();i3GEO.parametros.mapexten=sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat()}},googleearth:{redesenha:function(){try{linki3geo.setHref(linki3geo.getHref()+"&")}catch(e){}},cria:function(w,h){var i=$i(i3GEO.interface.IDCORPO);if(i){var i3GeoMap3d=document.createElement("div");i3GeoMap3d.style.width=w;i3GeoMap3d.style.height=h+45;i.style.height=h+45;i3GeoMap3d.id="i3GeoMap3d";i.appendChild(i3GeoMap3d)}i3GEO.interface.IDMAPA="i3GeoMap3d";google.load("earth","1");var i3GeoMap=null},inicia:function(){google.earth.createInstance("i3GeoMap3d",i3GEO.interface.googleearth.iniciaGE,i3GEO.interface.googleearth.falha)},iniciaGE:function(object){i3GeoMap=object;i3GeoMap.getWindow().setVisibility(true);kmlUrl=i3GEO.configura.locaplic+"/pacotes/kmlmapserver/kmlservice.php?map="+i3GEO.parametros.mapfile+"&typename=estadosl&request=kml&mode=map&"linki3geo=i3GeoMap.createLink('');linki3geo.setHref(kmlUrl);nl=i3GeoMap.createNetworkLink('');nl.setLink(linki3geo);nl.setFlyToView(true);i3GeoMap.getFeatures().appendChild(nl);var options=i3GeoMap.getOptions();options.setMouseNavigationEnabled(true);options.setStatusBarVisibility(true);options.setOverviewMapVisibility(true);options.setScaleLegendVisibility(true);i3GeoMap.getNavigationControl().setVisibility(i3GeoMap.VISIBILITY_SHOW)},falha:function(){alert("Falhou. Vc precisa do plugin instalado")},ativaBotoes:function(){}}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/compactados/classe_navega_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.navega={FATORZOOM:2,zoomin:function(locaplic,sid){if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.aproxima(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomout:function(locaplic,sid){if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.afasta(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomponto:function(locaplic,sid,x,y){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.zoomponto(i3GEO.atualiza,x,y)},zoompontoIMG:function(locaplic,sid,x,y){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.pan(i3GEO.atualiza,"","",x,y)},xy2xy:function(locaplic,sid,xi,yi,xf,yf,ext,tipoimagem){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}var disty=(yi*-1)+yf;var distx=(xi*-1)+xf;var ex=ext.split(" ");var novoxi=(ex[0]*1)-distx;var novoxf=(ex[2]*1)-distx;var novoyi=(ex[1]*1)-disty;var novoyf=(ex[3]*1)-disty;if((distx==0)&&(disty==0)){return false}else{var nex=novoxi+" "+novoyi+" "+novoxf+" "+novoyf;i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,tipoimagem,nex);return true}},localizaIP:function(locaplic,sid,funcao){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.php.localizaIP(funcao)},zoomIP:function(locaplic,sid){try{if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}var mostraIP=function(retorno){if(retorno.data.latitude!=null){i3GEO.navega.zoomponto(locaplic,sid,retorno.data.longitude,retorno.data.latitude)}else{alert("Nao foi possivel identificar a localizacao.")}};i3GEO.navega.localizaIP(locaplic,sid,mostraIP)}catch(e){var e=""}},zoomExt:function(locaplic,sid,tipoimagem,ext){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}if(tipoimagem==""){var tipoimagem="nenhum"}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.mudaext(i3GEO.atualiza,tipoimagem,ext)},aplicaEscala:function(locaplic,sid,escala){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.mudaescala(i3GEO.atualiza,escala)},panFixo:function(locaplic,sid,direcao,w,h,escala){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}if(direcao=="norte"){var y=h/6;var x=w/2}if(direcao=="sul"){var y=h-(h/6);var x=w/2}if(direcao=="leste"){var x=w-(w/6);var y=h/2}if(direcao=="oeste"){var x=w/6;var y=h/2}if(direcao=="nordeste"){var y=h/6;var x=w-(w/6)}if(direcao=="sudeste"){var y=h-(h/6);var x=w-(w/6)}if(direcao=="noroeste"){var y=h/6;var x=w/6}if(direcao=="sudoeste"){var y=h-(h/6);var x=w/6}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.pan(i3GEO.atualiza,escala,tipo,x,y)},mostraRosaDosVentos:function(){try{if(i3GEO.configura.mostraRosaDosVentos=="nao"){return}if(g_tipoacao=="area"){return}}catch(e){};if(objposicaocursor.imgx<10||objposicaocursor.imgy<10||objposicaocursor.imgy>(i3GEO.parametros.h-10)){return}if(!$i("i3geo_rosa")){var novoel=document.createElement("div");novoel.id="i3geo_rosa";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navn){novoel.style.opacity=".7"}else{novoel.style.filter="alpha(opacity=70)"}document.body.appendChild(novoel)}var setas="<table id='rosaV' >";setas+="<tr onclick=\"javascript:i3GEO.configura.mostraRosaDosVentos='nao'\"><td></td><td></td><td style=cursor:pointer >x</td></tr><tr>";setas+="<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><table><tr>";setas+="<td><img class='rosamais' title='aproxima' onclick=\"i3GEO.navega.zoomin('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="<td><img class='rosamenos' title='afasta' onclick=\"i3GEO.navega.zoomout('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="</tr></table></td>";setas+="<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr></table>";var i=$i("i3geo_rosa");i.innerHTML=setas;i.style.top=objposicaocursor.telay-27;i.style.left=objposicaocursor.telax-27;i.style.display="block";var escondeRosa=function(){var i=$i("i3geo_rosa");i.style.display="none";YAHOO.util.Event.removeListener(escondeRosa)}if($i("img"))YAHOO.util.Event.addListener($i("img"),"mousemove",escondeRosa);i3GEO.ajuda.mostraJanela('Clique nas pontas da rosa para navegar no mapa. Clique em x para parar de mostrar essa opção.')},autoRedesenho:{INTERVALO:0,ID:"tempoRedesenho",ativa:function(id){if(arguments.length==0){var id="tempoRedesenho"}i3GEO.navega.autoRedesenho.ID=id;if(($i(id))&&i3GEO.navega.autoRedesenho.INTERVALO>0){$i(id).style.display="block"}if(i3GEO.navega.autoRedesenho.INTERVALO>0){i3GEO.navega.tempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.redesenha()',i3GEO.navega.autoRedesenho.INTERVALO)}if(($i(id))&&(i3GEO.navega.autoRedesenho.INTERVALO>0)){$i(id).innerHTML=i3GEO.navega.autoRedesenho.INTERVALO/1000;i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},desativa:function(){i3GEO.navega.autoRedesenho.INTERVALO=0;clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.navega.tempoRedesenho="";i3GEO.navega.contaTempoRedesenho="";if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).style.display="none"}},redesenha:function(){clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.atualiza("");i3GEO.navega.autoRedesenho.ativa(i3GEO.navega.autoRedesenho.ID)},contagem:function(){if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).innerHTML=parseInt($i(i3GEO.navega.autoRedesenho.ID).innerHTML)-1}i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},zoomBox:{inicia:function(){if(g_tipoacao!='zoomli'){return}if(!$i("i3geoboxZoom"))i3GEO.navega.zoomBox.criaBox();var i=$i("i3geoboxZoom").style;i.width=0;i.height=0;i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+g_postpx;i.top=objposicaocursor.telay+g_postpx;boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.zoomBox.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.zoomBox.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}},criaBox:function(){if(!$i("i3geoboxZoom")){var novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxZoom";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=.25}novoel.style.backgroundColor="gray";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b=$i("i3geoboxZoom").style;var wb=parseInt(b.width);var hb=parseInt(b.height);if(navm){if(wb>2){b.width=wb-2}if(hb>2){b.height=hb-2}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.navega.zoomBox.termina()};document.body.appendChild(novoel);i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic);if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic)}}},desloca:function(){if(g_tipoacao!='zoomli'){return}var bxs=$i("i3geoboxZoom").style;if(bxs.display!="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){if(g_tipoacao!='zoomli'){i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");return}try{var valor=i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);var v=valor[0];var x1=valor[1];var y1=valor[2];var x2=valor[3];var y2=valor[4];var limpa=function(){var bxs=$i("i3geoboxZoom").style;bxs.display="none";bxs.visibility="hidden";bxs.width=0;bxs.height=0};if((x1==x2)||(y1==y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,v)}catch(e){limpa.call();return}}},entorno:{ativaDesativa:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}if(i3GEO.configura.entorno=="sim"){var letras=["L","O","N","S"];for(var l=0;l<4;l++){if($i("img"+letras[l])){$i("img"+letras[l]).style.display="none";$i("img"+letras[l]).src=""}}$left("img",0);$top("img",0);i3GEO.configura.entorno="nao";alert("Entorno desativado");$i("img").style.visibility="visible";$i("img").style.display="block"}else{i3GEO.navega.entorno.geraURL();var letras=["L","O","N","S"];for(var l=0;l<4;l++){if($i("img"+letras[l])){$i("img"+letras[l]).style.width=i3GEO.parametros.w;$i("img"+letras[l]).style.height=i3GEO.parametros.h;$i("img"+letras[l]).style.display="block"}}i3GEO.configura.entorno="sim";i3GEO.navega.entorno.ajustaPosicao();alert("Entorno ativado. o desenho do mapa pode demorar mais.")}},geraURL:function(){var nny=(i3GEO.parametros.h/2)*-1;var nnx=i3GEO.parametros.w/2;var sy=i3GEO.parametros.h+(i3GEO.parametros.h/2);var sx=i3GEO.parametros.w/2;var lx=i3GEO.parametros.w+(i3GEO.parametros.w/2);var ly=i3GEO.parametros.h/2;var ox=(parseInt(i3GEO.parametros.w/2))*-1;var oy=i3GEO.parametros.h/2;var u=window.location.protocol+"\/\/"+window.location.host+i3GEO.parametros.cgi+"?map="+i3GEO.parametros.mapfile;u+="&mode=map&imgext="+i3GEO.parametros.mapexten+"&mapsize="+nnx+" "+oy;var sul=u+"&imgxy="+sx/2+" "+sy/2;var norte=u+"&imgxy="+nnx/2+" "+nny/2;var leste=u+"&imgxy="+lx/2+" "+ly/2;var oeste=u+"&imgxy="+ox/2+" "+oy/2;$i("imgS").src=sul;$i("imgN").src=norte;$i("imgL").src=leste;$i("imgO").src=oeste},ajustaPosicao:function(){$left("img",i3GEO.parametros.w*-1);$left("imgS",i3GEO.parametros.w*-1);$left("imgL",i3GEO.parametros.w);$left("imgO",i3GEO.parametros.w*-3);$left("imgN",i3GEO.parametros.w*-1);$top("img",i3GEO.parametros.h*-1);$top("imgS",i3GEO.parametros.h*-1);$top("imgL",i3GEO.parametros.h*-1);$top("imgN",i3GEO.parametros.h*-1);$top("imgO",i3GEO.parametros.h*-1)}},lente:{ESTAATIVA:"nao",POSICAOX:0,POSICAOY:0,inicia:function(){if(!$i("lente")){var novoel=document.createElement("div");novoel.id='lente';novoel.style.clip='rect(0px,0px,0px,0px)';var novoimg=document.createElement("img");novoimg.src="";novoimg.id='lenteimg';novoel.appendChild(novoimg);document.body.appendChild(novoel);var novoel=document.createElement("div");novoel.id='boxlente';document.body.appendChild(novoel)}with($i('boxlente').style){borderWidth='1'+g_postpx;borderColor="red";display="block"}$i("lente").style.display="block";i3GEO.navega.lente.ESTAATIVA="sim";i3GEO.navega.lente.atualiza();if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.lente.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.lente.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.lente.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.lente.movimenta()")}},atualiza:function(){var temp=function(retorno){try{var retorno=retorno.data;if(retorno=="erro"){alert("A lente nao pode ser criada");return}var volta=retorno.split(",");var nimg=volta[2];var olente=$i('lente');var oboxlente=$i('boxlente');var olenteimg=$i('lenteimg');olenteimg.src=nimg;olenteimg.style.width=volta[0]*1.5;olenteimg.style.height=volta[1]*1.5;olente.style.zIndex=1000;olenteimg.style.zIndex=1000;oboxlente.style.zIndex=1000;var pos=i3GEO.util.pegaPosicaoObjeto($i("corpoMapa"));eval("olente.style."+g_tipoleft+" = pos[0] + i3GEO.navega.lente.POSICAOX + g_postpx");eval("olente.style."+g_tipotop+" = pos[1] + i3GEO.navega.lente.POSICAOY + g_postpx");eval("oboxlente.style."+g_tipoleft+" = pos[0] + i3GEO.navega.lente.POSICAOX + g_postpx");eval("oboxlente.style."+g_tipotop+" = pos[1] + i3GEO.navega.lente.POSICAOY + g_postpx");oboxlente.style.display='block';oboxlente.style.visibility='visible';olente.style.display='block';olente.style.visibility='visible';i3GEO.janela.fechaAguarde("ajaxabrelente")}catch(e){i3GEO.janela.fechaAguarde()}};if(i3GEO.navega.lente.ESTAATIVA=="sim"){i3GEO.janela.abreAguarde("ajaxabrelente",$trad("o1"));i3GEO.php.aplicaResolucao(temp,1.5)}else{i3GEO.navega.lente.desativa()}},desativa:function(){$i("lente").style.display="none";$i("boxlente").style.display="none";$i('boxlente').style.borderWidth=0;i3GEO.navega.lente.ESTAATIVA="nao";i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.lente.movimenta()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.lente.atualiza()")},movimenta:function(){try{if(i3GEO.navega.lente.ESTAATIVA="sim"){if($i("lente").style.visibility=="visible")var pos=i3GEO.util.pegaPosicaoObjeto($i("img"));var esq=(objposicaocursor.telax-pos[0])*2.25;var topo=(objposicaocursor.telay-pos[1])*2.25;var clipt="rect("+(topo-40)+" "+(esq+40)+" "+(topo+40)+" "+(esq-40)+")";var i=$i("lente").style;i.clip=clipt;eval("i."+g_tipotop+"= (pos[1] - (topo - 40)) + g_postpx");eval("i."+g_tipoleft+"= (pos[0] - (esq - 40)) + g_postpx")}}catch(e){}}},destacaTema:{TAMANHO:75,ESTAATIVO:"nao",TEMA:"",inicia:function(tema){if(!$i("img_d")){var novoel=document.createElement("div");novoel.id="div_d";novoel.style.zIndex=5000;document.body.appendChild(novoel);$i("div_d").innerHTML="<input style='position:relative;top:0px;left:0px'' type=image src='' id='img_d' />";$i("div_d").style.left=parseInt($i("corpoMapa").style.left);$i("div_d").style.top=parseInt($i("corpoMapa").style.top);$i("img_d").style.left=0;$i("img_d").style.top=0;$i("img_d").style.width=i3GEO.parametros.w;$i("img_d").style.height=i3GEO.parametros.h;$i("div_d").style.clip='rect(0 75 75 0)';var novoeli=document.createElement("div");novoeli.id="div_di";novoel.appendChild(novoeli);$i("div_di").innerHTML="<p style='position:absolute;top:0px;left:0px'>+-</p>"}i3GEO.navega.destacaTema.TEMA=tema;i3GEO.navega.destacaTema.ESTAATIVO="sim";i3GEO.navega.destacaTema.atualiza();var janela=i3GEO.janela.cria(150,0,"","center","center","Parar destaque ","ativadesativaDestaque");YAHOO.util.Event.addListener(janela[0].close,"click",i3GEO.navega.destacaTema.desativa);if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.destacaTema.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.destacaTema.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.destacaTema.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()")}},atualiza:function(){if(i3GEO.navega.destacaTema.ESTAATIVO=="nao"){return}var temp=function(retorno){var retorno=retorno.data;var m=new Image();m.src=retorno;$i("div_d").innerHTML="";$i("div_d").style.display="block";var novoel=document.createElement("input");novoel.id="img_d";novoel.style.position="relative";novoel.style.top="0px";novoel.style.left="0px";novoel.type="image";novoel.src=m.src;novoel.style.display="block";$i("div_d").appendChild(novoel);i3GEO.janela.fechaAguarde("ajaxdestaca")};i3GEO.janela.abreAguarde("ajaxdestaca","Aguarde...gerando imagem");i3GEO.php.geradestaque(temp,i3GEO.navega.destacaTema.TEMA)},desativa:function(){i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.destacaTema.atualiza()");i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()");i3GEO.navega.destacaTema.ESTAATIVO="nao";document.body.removeChild($i("div_d"))},movimenta:function(){if(i3GEO.navega.destacaTema.ESTAATIVO=="sim")$i("div_d").style.clip='rect('+(objposicaocursor.imgy-i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx-10)+" "+(objposicaocursor.imgy-10)+" "+(objposicaocursor.imgx-i3GEO.navega.destacaTema.TAMANHO)+')'}}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.navega={FATORZOOM:2,zoomin:function(locaplic,sid){if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.aproxima(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomout:function(locaplic,sid){if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.afasta(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomponto:function(locaplic,sid,x,y){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.zoomponto(i3GEO.atualiza,x,y)},zoompontoIMG:function(locaplic,sid,x,y){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.pan(i3GEO.atualiza,"","",x,y)},xy2xy:function(locaplic,sid,xi,yi,xf,yf,ext,tipoimagem){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}var disty=(yi*-1)+yf;var distx=(xi*-1)+xf;var ex=ext.split(" ");var novoxi=(ex[0]*1)-distx;var novoxf=(ex[2]*1)-distx;var novoyi=(ex[1]*1)-disty;var novoyf=(ex[3]*1)-disty;if((distx==0)&&(disty==0)){return false}else{var nex=novoxi+" "+novoyi+" "+novoxf+" "+novoyf;i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,tipoimagem,nex);return true}},localizaIP:function(locaplic,sid,funcao){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.php.localizaIP(funcao)},zoomIP:function(locaplic,sid){try{if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}var mostraIP=function(retorno){if(retorno.data.latitude!=null){i3GEO.navega.zoomponto(locaplic,sid,retorno.data.longitude,retorno.data.latitude)}else{alert("Nao foi possivel identificar a localizacao.")}};i3GEO.navega.localizaIP(locaplic,sid,mostraIP)}catch(e){var e=""}},zoomExt:function(locaplic,sid,tipoimagem,ext){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}if(tipoimagem==""){var tipoimagem="nenhum"}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.mudaext(i3GEO.atualiza,tipoimagem,ext)},aplicaEscala:function(locaplic,sid,escala){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.mudaescala(i3GEO.atualiza,escala)},panFixo:function(locaplic,sid,direcao,w,h,escala){if(locaplic!=""){i3GEO.configura.locaplic=locaplic}if(sid!=""){i3GEO.configura.sid=sid}if(w==""){var w=i3GEO.parametros.w}if(h==""){var h=i3GEO.parametros.h}if(escala==""){var escala=i3GEO.parametros.mapscale}if(direcao=="norte"){var y=h/6;var x=w/2}if(direcao=="sul"){var y=h-(h/6);var x=w/2}if(direcao=="leste"){var x=w-(w/6);var y=h/2}if(direcao=="oeste"){var x=w/6;var y=h/2}if(direcao=="nordeste"){var y=h/6;var x=w-(w/6)}if(direcao=="sudeste"){var y=h-(h/6);var x=w-(w/6)}if(direcao=="noroeste"){var y=h/6;var x=w/6}if(direcao=="sudoeste"){var y=h-(h/6);var x=w/6}i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.pan(i3GEO.atualiza,escala,"",x,y)},mostraRosaDosVentos:function(){try{if(i3GEO.configura.mostraRosaDosVentos=="nao"){return}if(g_tipoacao=="area"){return}}catch(e){};if(objposicaocursor.imgx<10||objposicaocursor.imgy<10||objposicaocursor.imgy>(i3GEO.parametros.h-10)){return}if(!$i("i3geo_rosa")){var novoel=document.createElement("div");novoel.id="i3geo_rosa";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navn){novoel.style.opacity=".7"}else{novoel.style.filter="alpha(opacity=70)"}document.body.appendChild(novoel)}var setas="<table id='rosaV' >";setas+="<tr onclick=\"javascript:i3GEO.configura.mostraRosaDosVentos='nao'\"><td></td><td></td><td style=cursor:pointer >x</td></tr><tr>";setas+="<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><table><tr>";setas+="<td><img class='rosamais' title='aproxima' onclick=\"i3GEO.navega.zoomin('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="<td><img class='rosamenos' title='afasta' onclick=\"i3GEO.navega.zoomout('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="</tr></table></td>";setas+="<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr></table>";var i=$i("i3geo_rosa");i.innerHTML=setas;i.style.top=objposicaocursor.telay-27;i.style.left=objposicaocursor.telax-27;i.style.display="block";var escondeRosa=function(){var i=$i("i3geo_rosa");i.style.display="none";YAHOO.util.Event.removeListener(escondeRosa)}if($i("img"))YAHOO.util.Event.addListener($i("img"),"mousemove",escondeRosa);i3GEO.ajuda.mostraJanela('Clique nas pontas da rosa para navegar no mapa. Clique em x para parar de mostrar essa opção.')},autoRedesenho:{INTERVALO:0,ID:"tempoRedesenho",ativa:function(id){if(arguments.length==0){var id="tempoRedesenho"}i3GEO.navega.autoRedesenho.ID=id;if(($i(id))&&i3GEO.navega.autoRedesenho.INTERVALO>0){$i(id).style.display="block"}if(i3GEO.navega.autoRedesenho.INTERVALO>0){i3GEO.navega.tempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.redesenha()',i3GEO.navega.autoRedesenho.INTERVALO)}if(($i(id))&&(i3GEO.navega.autoRedesenho.INTERVALO>0)){$i(id).innerHTML=i3GEO.navega.autoRedesenho.INTERVALO/1000;i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},desativa:function(){i3GEO.navega.autoRedesenho.INTERVALO=0;clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.navega.tempoRedesenho="";i3GEO.navega.contaTempoRedesenho="";if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).style.display="none"}},redesenha:function(){clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.atualiza("");i3GEO.navega.autoRedesenho.ativa(i3GEO.navega.autoRedesenho.ID)},contagem:function(){if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).innerHTML=parseInt($i(i3GEO.navega.autoRedesenho.ID).innerHTML)-1}i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},zoomBox:{inicia:function(){if(g_tipoacao!='zoomli'){return}if(!$i("i3geoboxZoom"))i3GEO.navega.zoomBox.criaBox();var i=$i("i3geoboxZoom").style;i.width=0;i.height=0;i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+g_postpx;i.top=objposicaocursor.telay+g_postpx;boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.zoomBox.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.zoomBox.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}},criaBox:function(){if(!$i("i3geoboxZoom")){var novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxZoom";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=.25}novoel.style.backgroundColor="gray";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b=$i("i3geoboxZoom").style;var wb=parseInt(b.width);var hb=parseInt(b.height);if(navm){if(wb>2){b.width=wb-2}if(hb>2){b.height=hb-2}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.navega.zoomBox.termina()};document.body.appendChild(novoel);if(i3GEO.interface.ATUAL=="padrao"){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic);var temp="zoom";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="zoom_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic)}}},desloca:function(){if(g_tipoacao!='zoomli'){return}var bxs=$i("i3geoboxZoom").style;if(bxs.display!="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){if(g_tipoacao!='zoomli'){i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");return}try{var valor=i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);var v=valor[0];var x1=valor[1];var y1=valor[2];var x2=valor[3];var y2=valor[4];var limpa=function(){var bxs=$i("i3geoboxZoom").style;bxs.display="none";bxs.visibility="hidden";bxs.width=0;bxs.height=0};if((x1==x2)||(y1==y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,i3GEO.configura.tipoimagem,v)}catch(e){limpa.call();return}}},entorno:{ativaDesativa:function(){if(i3GEO.parametros.mapfile==""){alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return}if(i3GEO.configura.entorno=="sim"){var letras=["L","O","N","S"];for(var l=0;l<4;l++){if($i("img"+letras[l])){$i("img"+letras[l]).style.display="none";$i("img"+letras[l]).src=""}}$left("img",0);$top("img",0);i3GEO.configura.entorno="nao";alert("Entorno desativado");$i("img").style.visibility="visible";$i("img").style.display="block"}else{i3GEO.navega.entorno.geraURL();var letras=["L","O","N","S"];for(var l=0;l<4;l++){if($i("img"+letras[l])){$i("img"+letras[l]).style.width=i3GEO.parametros.w;$i("img"+letras[l]).style.height=i3GEO.parametros.h;$i("img"+letras[l]).style.display="block"}}i3GEO.configura.entorno="sim";i3GEO.navega.entorno.ajustaPosicao();alert("Entorno ativado. o desenho do mapa pode demorar mais.")}},geraURL:function(){var nny=(i3GEO.parametros.h/2)*-1;var nnx=i3GEO.parametros.w/2;var sy=i3GEO.parametros.h+(i3GEO.parametros.h/2);var sx=i3GEO.parametros.w/2;var lx=i3GEO.parametros.w+(i3GEO.parametros.w/2);var ly=i3GEO.parametros.h/2;var ox=(parseInt(i3GEO.parametros.w/2))*-1;var oy=i3GEO.parametros.h/2;var u=window.location.protocol+"\/\/"+window.location.host+i3GEO.parametros.cgi+"?map="+i3GEO.parametros.mapfile;u+="&mode=map&imgext="+i3GEO.parametros.mapexten+"&mapsize="+nnx+" "+oy;var sul=u+"&imgxy="+sx/2+" "+sy/2;var norte=u+"&imgxy="+nnx/2+" "+nny/2;var leste=u+"&imgxy="+lx/2+" "+ly/2;var oeste=u+"&imgxy="+ox/2+" "+oy/2;$i("imgS").src=sul;$i("imgN").src=norte;$i("imgL").src=leste;$i("imgO").src=oeste},ajustaPosicao:function(){$left("img",i3GEO.parametros.w*-1);$left("imgS",i3GEO.parametros.w*-1);$left("imgL",i3GEO.parametros.w);$left("imgO",i3GEO.parametros.w*-3);$left("imgN",i3GEO.parametros.w*-1);$top("img",i3GEO.parametros.h*-1);$top("imgS",i3GEO.parametros.h*-1);$top("imgL",i3GEO.parametros.h*-1);$top("imgN",i3GEO.parametros.h*-1);$top("imgO",i3GEO.parametros.h*-1)}},lente:{ESTAATIVA:"nao",POSICAOX:0,POSICAOY:0,inicia:function(){if(!$i("lente")){var novoel=document.createElement("div");novoel.id='lente';novoel.style.clip='rect(0px,0px,0px,0px)';var novoimg=document.createElement("img");novoimg.src="";novoimg.id='lenteimg';novoel.appendChild(novoimg);document.body.appendChild(novoel);var novoel=document.createElement("div");novoel.id='boxlente';document.body.appendChild(novoel)}with($i('boxlente').style){borderWidth='1'+g_postpx;borderColor="red";display="block"}$i("lente").style.display="block";i3GEO.navega.lente.ESTAATIVA="sim";i3GEO.navega.lente.atualiza();if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.lente.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.lente.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.lente.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.lente.movimenta()")}},atualiza:function(){var temp=function(retorno){try{var retorno=retorno.data;if(retorno=="erro"){alert("A lente nao pode ser criada");return}var volta=retorno.split(",");var nimg=volta[2];var olente=$i('lente');var oboxlente=$i('boxlente');var olenteimg=$i('lenteimg');olenteimg.src=nimg;olenteimg.style.width=volta[0]*1.5;olenteimg.style.height=volta[1]*1.5;olente.style.zIndex=1000;olenteimg.style.zIndex=1000;oboxlente.style.zIndex=1000;var pos=i3GEO.util.pegaPosicaoObjeto($i("corpoMapa"));eval("olente.style."+g_tipoleft+" = pos[0] + i3GEO.navega.lente.POSICAOX + g_postpx");eval("olente.style."+g_tipotop+" = pos[1] + i3GEO.navega.lente.POSICAOY + g_postpx");eval("oboxlente.style."+g_tipoleft+" = pos[0] + i3GEO.navega.lente.POSICAOX + g_postpx");eval("oboxlente.style."+g_tipotop+" = pos[1] + i3GEO.navega.lente.POSICAOY + g_postpx");oboxlente.style.display='block';oboxlente.style.visibility='visible';olente.style.display='block';olente.style.visibility='visible';i3GEO.janela.fechaAguarde("ajaxabrelente")}catch(e){i3GEO.janela.fechaAguarde()}};if(i3GEO.navega.lente.ESTAATIVA=="sim"){i3GEO.janela.abreAguarde("ajaxabrelente",$trad("o1"));i3GEO.php.aplicaResolucao(temp,1.5)}else{i3GEO.navega.lente.desativa()}},desativa:function(){$i("lente").style.display="none";$i("boxlente").style.display="none";$i('boxlente').style.borderWidth=0;i3GEO.navega.lente.ESTAATIVA="nao";i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.lente.movimenta()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.lente.atualiza()")},movimenta:function(){try{if(i3GEO.navega.lente.ESTAATIVA="sim"){if($i("lente").style.visibility=="visible")var pos=i3GEO.util.pegaPosicaoObjeto($i("img"));var esq=(objposicaocursor.telax-pos[0])*2.25;var topo=(objposicaocursor.telay-pos[1])*2.25;var clipt="rect("+(topo-40)+" "+(esq+40)+" "+(topo+40)+" "+(esq-40)+")";var i=$i("lente").style;i.clip=clipt;eval("i."+g_tipotop+"= (pos[1] - (topo - 40)) + g_postpx");eval("i."+g_tipoleft+"= (pos[0] - (esq - 40)) + g_postpx")}}catch(e){}}},destacaTema:{TAMANHO:75,ESTAATIVO:"nao",TEMA:"",inicia:function(tema){if(!$i("img_d")){var novoel=document.createElement("div");novoel.id="div_d";novoel.style.zIndex=5000;document.body.appendChild(novoel);$i("div_d").innerHTML="<input style='position:relative;top:0px;left:0px'' type=image src='' id='img_d' />";$i("div_d").style.left=parseInt($i("corpoMapa").style.left);$i("div_d").style.top=parseInt($i("corpoMapa").style.top);$i("img_d").style.left=0;$i("img_d").style.top=0;$i("img_d").style.width=i3GEO.parametros.w;$i("img_d").style.height=i3GEO.parametros.h;$i("div_d").style.clip='rect(0 75 75 0)';var novoeli=document.createElement("div");novoeli.id="div_di";novoel.appendChild(novoeli);$i("div_di").innerHTML="<p style='position:absolute;top:0px;left:0px'>+-</p>"}i3GEO.navega.destacaTema.TEMA=tema;i3GEO.navega.destacaTema.ESTAATIVO="sim";i3GEO.navega.destacaTema.atualiza();var janela=i3GEO.janela.cria(150,0,"","center","center","Parar destaque ","ativadesativaDestaque");YAHOO.util.Event.addListener(janela[0].close,"click",i3GEO.navega.destacaTema.desativa);if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.destacaTema.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.destacaTema.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.destacaTema.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()")}},atualiza:function(){if(i3GEO.navega.destacaTema.ESTAATIVO=="nao"){return}var temp=function(retorno){var retorno=retorno.data;var m=new Image();m.src=retorno;$i("div_d").innerHTML="";$i("div_d").style.display="block";var novoel=document.createElement("input");novoel.id="img_d";novoel.style.position="relative";novoel.style.top="0px";novoel.style.left="0px";novoel.type="image";novoel.src=m.src;novoel.style.display="block";$i("div_d").appendChild(novoel);i3GEO.janela.fechaAguarde("ajaxdestaca")};i3GEO.janela.abreAguarde("ajaxdestaca","Aguarde...gerando imagem");i3GEO.php.geradestaque(temp,i3GEO.navega.destacaTema.TEMA)},desativa:function(){i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.destacaTema.atualiza()");i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()");i3GEO.navega.destacaTema.ESTAATIVO="nao";document.body.removeChild($i("div_d"))},movimenta:function(){if(i3GEO.navega.destacaTema.ESTAATIVO=="sim")$i("div_d").style.clip='rect('+(objposicaocursor.imgy-i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx-10)+" "+(objposicaocursor.imgy-10)+" "+(objposicaocursor.imgx-i3GEO.navega.destacaTema.TAMANHO)+')'}}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/compactados/classe_selecao_compacto.js
1 | -if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.selecao={porxy:function(tema,tipo,tolerancia){var retorna=function(retorno){i3GEO.atualiza(retorno)};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.selecaopt(retorna,tema,objposicaocursor.ddx+" "+objposicaocursor.ddy,tipo,tolerancia)},porbox:function(tema,tipo,box){var retorna=function(retorno){i3GEO.atualiza(retorno)};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.selecaobox(retorna,tema,tipo,box)},janelaOpcoes:function(){g_tipoacao="selecao";i3GEO.temaAtivo="";var janela=i3GEO.janela.cria("430px","320px",i3GEO.configura.locaplic+'/ferramentas/selecao/index.htm',"","","Seleção <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=48a' > </a>");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.selecao.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.selecao.clique()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.selecao.atualizaGrafico()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.selecao.atualizaGrafico()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.selecao.clique()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.selecao.atualizaGrafico()");try{i3GEO.desenho.richdraw.fecha()}catch(e){}if($i("pontosins")){document.body.removeChild($i("pontosins"))}i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)},atualizaGrafico:function(){if(g_tipoacao=="selecao"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(doc.getElementById("guia5obj")){if(doc.getElementById("guia5obj").style.display=="block"){if(window.parent.frames["wdocai"].atualizaGrafico){window.parent.frames["wdocai"].atualizaGrafico()}}}}},clique:function(){if(g_tipoacao=="selecao"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tipo="adiciona";if(doc.getElementById("tipoOperacao")){var tipo=doc.getElementById("tipoOperacao").value}if(i3GEO.temaAtivo==""){alert("Nenhum tema ativo");return}var tolerancia=doc.getElementById("toleranciapt").value;if((tipo!="limpa")&&(tipo!="inverte")){i3GEO.selecao.porxy(i3GEO.temaAtivo,tipo,tolerancia)}}},box:{inicia:function(){if(g_tipoacao!='selecaobox'){return}if(!$i("i3geoboxSel"))i3GEO.selecao.box.criaBox();var i=$i("i3geoboxSel").style;i.width=0;i.height=0;i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+g_postpx;i.top=objposicaocursor.telay+g_postpx;boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.selecao.box.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.selecao.box.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.selecao.box.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.selecao.box.termina()")}},criaBox:function(){if(!$i("i3geoboxSel")){var novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxSel";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=.25}novoel.style.backgroundColor="yellow";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b=$i("i3geoboxSel").style;var wb=parseInt(b.width);var hb=parseInt(b.height);if(navm){if(wb>2){b.width=wb-2}if(hb>2){b.height=hb-2}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.selecao.box.termina()};document.body.appendChild(novoel)}i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxSel",i3GEO.configura.locaplic);if($i("img")){$i("img").title="";i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic)}},desloca:function(){if(g_tipoacao!='selecaobox'){return}var bxs=$i("i3geoboxSel").style;if(bxs.display!="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){if(g_tipoacao!='selecaobox'){return}try{var valor=i3GEO.calculo.rect2ext("i3geoboxSel",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);var v=valor[0];var x1=valor[1];var y1=valor[2];var x2=valor[3];var y2=valor[4];var limpa=function(){var bxs=$i("i3geoboxSel").style;bxs.display="none";bxs.visibility="hidden";bxs.width=0;bxs.height=0};if((x1==x2)||(y1==y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.selecao.box.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.selecao.box.termina()");var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tipo="adiciona";if(doc.getElementById("tipoOperacao")){var tipo=doc.getElementById("tipoOperacao").value}if((tipo!="limpa")&&(tipo!="inverte")){i3GEO.selecao.porbox(i3GEO.temaAtivo,tipo,v)}}catch(e){limpa.call();return}}},poligono:{inicia:function(){try{i3GEO.desenho.richdraw.fecha()}catch(e){}i3GEO.util.insereMarca.limpa()g_tipoacao="selecaopoli";alert("Clique no mapa para desenhar o polígono.")i3GEO.desenho.criaContainerRichdraw();i3GEO.desenho.richdraw.lineColor="red";i3GEO.desenho.richdraw.lineWidth="2px";i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.selecao.clique()");if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.selecao.poligono.move()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.selecao.poligono.move()")}if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.selecao.poligono.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.selecao.poligono.clique()")}},move:function(){if(g_tipoacao=="selecaopoli"){var n=pontosdistobj.xpt.length;if(n>0){var d=i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);if(i3GEO.parametros.mapscale>500000){var d=parseInt(d)}else{d=d+"";d=d.split(".");var decimal=d[1].substr(0,3);d=d[0]+"."+decimal;d=d*1}var da=d+pontosdistobj.dist[n-1];if(navn){i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhastemp,0)}i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhas[n-1],n)}}},clique:function(){if(g_tipoacao!="selecaopoli"){return}var n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(n==0){try{if(navn){pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1)}else{pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(i3GEO.parametros.w/2),pontosdistobj.yimg[0])}}catch(e){}}try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n],pontosdistobj.yimg[n],pontosdistobj.ximg[n],pontosdistobj.yimg[n])}else{pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n])}}catch(e){}if(n>0){var d=parseInt(i3GEO.util.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy));pontosdistobj.dist[n]=d+pontosdistobj.dist[n-1]}i3GEO.util.insereMarca.cria(objposicaocursor.telax,objposicaocursor.telay,i3GEO.selecao.poligono.termina,"pontospoli")},termina:function(){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var pontos=pontosdistobj;i3GEO.desenho.richdraw.fecha();var n=pontos.xpt.length;i3GEO.temaAtivo=doc.getElementById("comboTemas").value;var xs=pontos.xpt.toString(",");var ys=pontos.ypt.toString(",");var retorna=function(){i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.atualiza("")};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=selecaoPoli";var cp=new cpaint();cp.set_transfer_mode('POST');cp.set_response_type("JSON");cp.call(p,"selecaoPoli",retorna,xs,ys,doc.getElementById("comboTemas").value,doc.getElementById("tipoOperacao").value)}}}; | |
2 | 1 | \ No newline at end of file |
2 | +if(typeof(i3GEO)=='undefined'){i3GEO=new Array()}i3GEO.selecao={porxy:function(tema,tipo,tolerancia){var retorna=function(retorno){i3GEO.atualiza(retorno)};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.selecaopt(retorna,tema,objposicaocursor.ddx+" "+objposicaocursor.ddy,tipo,tolerancia)},porbox:function(tema,tipo,box){var retorna=function(retorno){i3GEO.atualiza(retorno)};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.php.selecaobox(retorna,tema,tipo,box)},janelaOpcoes:function(){g_tipoacao="selecao";i3GEO.temaAtivo="";var janela=i3GEO.janela.cria("430px","320px",i3GEO.configura.locaplic+'/ferramentas/selecao/index.htm',"","","Seleção <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=48a' > </a>");if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.selecao.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.selecao.clique()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.selecao.atualizaGrafico()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.selecao.atualizaGrafico()")}var temp=function(){i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.selecao.clique()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.selecao.atualizaGrafico()");try{i3GEO.desenho.richdraw.fecha()}catch(e){}if($i("pontosins")){document.body.removeChild($i("pontosins"))}i3GEO.barraDeBotoes.ativaBotoes()};YAHOO.util.Event.addListener(janela[0].close,"click",temp)},atualizaGrafico:function(){if(g_tipoacao=="selecao"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;if(doc.getElementById("guia5obj")){if(doc.getElementById("guia5obj").style.display=="block"){if(window.parent.frames["wdocai"].atualizaGrafico){window.parent.frames["wdocai"].atualizaGrafico()}}}}},clique:function(){if(g_tipoacao=="selecao"){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tipo="adiciona";if(doc.getElementById("tipoOperacao")){var tipo=doc.getElementById("tipoOperacao").value}if(i3GEO.temaAtivo==""){alert("Nenhum tema ativo");return}var tolerancia=doc.getElementById("toleranciapt").value;if((tipo!="limpa")&&(tipo!="inverte")){i3GEO.selecao.porxy(i3GEO.temaAtivo,tipo,tolerancia)}}},box:{inicia:function(){if(g_tipoacao!='selecaobox'){return}if(!$i("i3geoboxSel"))i3GEO.selecao.box.criaBox();var i=$i("i3geoboxSel").style;i.width=0;i.height=0;i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+g_postpx;i.top=objposicaocursor.telay+g_postpx;boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.selecao.box.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.selecao.box.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.selecao.box.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.selecao.box.termina()")}},criaBox:function(){if(!$i("i3geoboxSel")){var novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxSel";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=.25}novoel.style.backgroundColor="yellow";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b=$i("i3geoboxSel").style;var wb=parseInt(b.width);var hb=parseInt(b.height);if(navm){if(wb>2){b.width=wb-2}if(hb>2){b.height=hb-2}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.selecao.box.termina()};document.body.appendChild(novoel)}i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxSel",i3GEO.configura.locaplic);if($i("img")){$i("img").title="";var temp="zoom";if(i3GEO.interface.ATIVAMENUCONTEXTO)var temp="zoom_contexto";i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic)}},desloca:function(){if(g_tipoacao!='selecaobox'){return}var bxs=$i("i3geoboxSel").style;if(bxs.display!="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){if(g_tipoacao!='selecaobox'){return}try{var valor=i3GEO.calculo.rect2ext("i3geoboxSel",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);var v=valor[0];var x1=valor[1];var y1=valor[2];var x2=valor[3];var y2=valor[4];var limpa=function(){var bxs=$i("i3geoboxSel").style;bxs.display="none";bxs.visibility="hidden";bxs.width=0;bxs.height=0};if((x1==x2)||(y1==y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.selecao.box.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.selecao.box.termina()");var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var tipo="adiciona";if(doc.getElementById("tipoOperacao")){var tipo=doc.getElementById("tipoOperacao").value}if((tipo!="limpa")&&(tipo!="inverte")){i3GEO.selecao.porbox(i3GEO.temaAtivo,tipo,v)}}catch(e){limpa.call();return}}},poligono:{inicia:function(){try{i3GEO.desenho.richdraw.fecha()}catch(e){}i3GEO.util.insereMarca.limpa()g_tipoacao="selecaopoli";alert("Clique no mapa para desenhar o polígono.")i3GEO.desenho.criaContainerRichdraw();i3GEO.desenho.richdraw.lineColor="red";i3GEO.desenho.richdraw.lineWidth="2px";i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.selecao.clique()");if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.selecao.poligono.move()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.selecao.poligono.move()")}if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.selecao.poligono.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.selecao.poligono.clique()")}},move:function(){if(g_tipoacao=="selecaopoli"){var n=pontosdistobj.xpt.length;if(n>0){var d=i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);if(i3GEO.parametros.mapscale>500000){var d=parseInt(d)}else{d=d+"";d=d.split(".");var decimal=d[1].substr(0,3);d=d[0]+"."+decimal;d=d*1}var da=d+pontosdistobj.dist[n-1];if(navn){i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhastemp,0)}i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhas[n-1],n)}}},clique:function(){if(g_tipoacao!="selecaopoli"){return}var n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(n==0){try{if(navn){pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1)}else{pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(i3GEO.parametros.w/2),pontosdistobj.yimg[0])}}catch(e){}}try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n],pontosdistobj.yimg[n],pontosdistobj.ximg[n],pontosdistobj.yimg[n])}else{pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n])}}catch(e){}if(n>0){var d=parseInt(i3GEO.util.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy));pontosdistobj.dist[n]=d+pontosdistobj.dist[n-1]}i3GEO.util.insereMarca.cria(objposicaocursor.telax,objposicaocursor.telay,i3GEO.selecao.poligono.termina,"pontospoli")},termina:function(){var doc=(navm)?document.frames("wdocai").document:$i("wdocai").contentDocument;var pontos=pontosdistobj;i3GEO.desenho.richdraw.fecha();var n=pontos.xpt.length;i3GEO.temaAtivo=doc.getElementById("comboTemas").value;var xs=pontos.xpt.toString(",");var ys=pontos.ypt.toString(",");var retorna=function(){i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1"));i3GEO.atualiza("")};i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=selecaoPoli";var cp=new cpaint();cp.set_transfer_mode('POST');cp.set_response_type("JSON");cp.call(p,"selecaoPoli",retorna,xs,ys,doc.getElementById("comboTemas").value,doc.getElementById("tipoOperacao").value)}}}; | |
3 | 3 | \ No newline at end of file | ... | ... |
classesjs/i3geo_tudo_compacto.js
... | ... | @@ -7660,7 +7660,13 @@ i3GEO.configura = { |
7660 | 7660 | "zoom": |
7661 | 7661 | {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"}, |
7662 | 7662 | "contexto": |
7663 | - {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"} | |
7663 | + {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"}, | |
7664 | + "identifica_contexto": | |
7665 | + {ff:"pointer",ie:"pointer"}, | |
7666 | + "pan_contexto": | |
7667 | + {ff:"/imagens/cursores/pan_contexto.png",ie:"/imagens/cursores/pan_contexto.cur"}, | |
7668 | + "zoom_contexto": | |
7669 | + {ff:"/imagens/cursores/zoom_contexto.png",ie:"/imagens/cursores/zoom_contexto.cur"} | |
7664 | 7670 | }, |
7665 | 7671 | /* |
7666 | 7672 | Variable: listaDePropriedadesDoMapa |
... | ... | @@ -7799,7 +7805,10 @@ i3GEO.configura = { |
7799 | 7805 | tipo:"dinamico", |
7800 | 7806 | dica:$trad("d3"), |
7801 | 7807 | funcaoonclick:function(){ |
7802 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
7808 | + var temp = "zoom"; | |
7809 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7810 | + var temp = "zoom_contexto"; | |
7811 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
7803 | 7812 | if(!$i("i3geoboxZoom")) |
7804 | 7813 | i3GEO.navega.zoomBox.criaBox(); |
7805 | 7814 | g_operacao='navega'; |
... | ... | @@ -7823,11 +7832,22 @@ i3GEO.configura = { |
7823 | 7832 | i3GEO.barraDeBotoes.ativaIcone("pan"); |
7824 | 7833 | if($i(i3GEO.interface.IDMAPA)){ |
7825 | 7834 | $i(i3GEO.interface.IDMAPA).title = ""; |
7826 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
7835 | + var temp = "pan"; | |
7836 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7837 | + var temp = "pan_contexto"; | |
7838 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
7827 | 7839 | } |
7828 | 7840 | marcadorZoom = ""; |
7829 | - panMapaInicia = function(){ | |
7841 | + panMapaInicia = function(exy){ | |
7830 | 7842 | if ($i("img") && (g_tipoacao == "pan")){ |
7843 | + try{ | |
7844 | + if(navm) | |
7845 | + {var k = event.button;} | |
7846 | + else | |
7847 | + {var k = exy.button;} | |
7848 | + if(k == 2){return;} | |
7849 | + } | |
7850 | + catch(h){} | |
7831 | 7851 | g_panM = "sim"; |
7832 | 7852 | if($i("corpoMapa")){ |
7833 | 7853 | leftinicial = parseInt($i(i3GEO.interface.IDCORPO).style.left); |
... | ... | @@ -7925,7 +7945,10 @@ i3GEO.configura = { |
7925 | 7945 | { |
7926 | 7946 | if($i("img")){ |
7927 | 7947 | $i("img").title = ""; |
7928 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic); | |
7948 | + var temp = "identifica"; | |
7949 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7950 | + var temp = "identifica_contexto"; | |
7951 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
7929 | 7952 | } |
7930 | 7953 | i3GEO.barraDeBotoes.ativaIcone("identifica"); |
7931 | 7954 | g_tipoacao='identifica'; |
... | ... | @@ -8012,7 +8035,6 @@ i3GEO.configura = { |
8012 | 8035 | //i3GEO.janela.tip("<img id='marcaIdentifica' src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); |
8013 | 8036 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); |
8014 | 8037 | i3GEO.util.posicionaImagemNoMapa("marcaIdentifica"); |
8015 | - | |
8016 | 8038 | balloon = new Balloon; |
8017 | 8039 | balloon.delayTime = 0; |
8018 | 8040 | var res = "<div style=text-align:left >"+res+"</div>"; |
... | ... | @@ -8021,9 +8043,21 @@ i3GEO.configura = { |
8021 | 8043 | } |
8022 | 8044 | } |
8023 | 8045 | } |
8024 | - if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);} | |
8046 | + if($i("img")){ | |
8047 | + var temp = "zoom"; | |
8048 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
8049 | + var temp = "identifica_contexto"; | |
8050 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
8051 | + } | |
8052 | + } | |
8053 | + catch(e){ | |
8054 | + if($i("img")){ | |
8055 | + var temp = "identifica"; | |
8056 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
8057 | + var temp = "identifica_contexto"; | |
8058 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
8059 | + } | |
8025 | 8060 | } |
8026 | - catch(e){if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);}} | |
8027 | 8061 | }; |
8028 | 8062 | i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5"); |
8029 | 8063 | }; |
... | ... | @@ -10575,6 +10609,18 @@ i3GEO.interface = { |
10575 | 10609 | */ |
10576 | 10610 | IDMAPA: "", |
10577 | 10611 | /* |
10612 | + Property: ATIVAMENUCONTEXTO | |
10613 | + | |
10614 | + Indica se o menu de contexto deve ser ativado | |
10615 | + | |
10616 | + Type: | |
10617 | + {Boolean} | |
10618 | + | |
10619 | + Default: | |
10620 | + {true} | |
10621 | + */ | |
10622 | + ATIVAMENUCONTEXTO: false, | |
10623 | + /* | |
10578 | 10624 | Function: redesenha |
10579 | 10625 | |
10580 | 10626 | Aplica o método redesenha da interface atual |
... | ... | @@ -10663,8 +10709,46 @@ i3GEO.interface = { |
10663 | 10709 | ins += "<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>"; |
10664 | 10710 | ins += "</table>"; |
10665 | 10711 | $i(i3GEO.interface.IDCORPO).innerHTML = ins; |
10666 | - i3GEO.interface.IDMAPA = "img"; | |
10712 | + i3GEO.interface.IDMAPA = "img"; | |
10667 | 10713 | }, |
10714 | + /* | |
10715 | + Function: ativaMenuContexto | |
10716 | + | |
10717 | + Ativa o menu de contexto acionado com o botão direito do mouse | |
10718 | + | |
10719 | + */ | |
10720 | + ativaMenuContexto: function(){ | |
10721 | + //remove o menu de contexto se existir | |
10722 | + var temp = $i("contexto_"+i3GEO.interface.IDMAPA); | |
10723 | + if(temp){ | |
10724 | + temp.parentNode.removeChild(temp); | |
10725 | + } | |
10726 | + function executar(a,b,c){ | |
10727 | + eval(c); | |
10728 | + }; | |
10729 | + var oFieldContextMenuItemData = [ | |
10730 | + { text: " <span class='container-close'></span>"}, | |
10731 | + { text: "<img class='rosamais' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Aproxima</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
10732 | + { text: "<img class='rosamenos' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Afasta</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
10733 | + { text: "<img class='rosanorte' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Norte</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','norte','','','');" } }, | |
10734 | + { text: "<img class='rosasul' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Sul</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','sul','','','');" } }, | |
10735 | + { text: "<img class='rosaleste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Leste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','leste','','','');" } }, | |
10736 | + { text: "<img class='rosaoeste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Oeste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','oeste','','','');" } }, | |
10737 | + { text: "Captura", onclick: { fn: executar, obj: "i3GEO.gadgets.quadros.listaImagens();" } } | |
10738 | + ]; | |
10739 | + var oFieldContextMenu = new YAHOO.widget.ContextMenu( | |
10740 | + "contexto_"+i3GEO.interface.IDMAPA,{ | |
10741 | + trigger: i3GEO.interface.IDMAPA, | |
10742 | + itemdata: oFieldContextMenuItemData, | |
10743 | + lazyload: true | |
10744 | + } | |
10745 | + ); | |
10746 | + var onFieldMenuRender = function(){ | |
10747 | + eval("var id = 'contexto_"+i3GEO.interface.IDMAPA+"'"); | |
10748 | + $i(id).style.zIndex = 50000; | |
10749 | + }; | |
10750 | + oFieldContextMenu.subscribe("render", onFieldMenuRender); | |
10751 | + }, | |
10668 | 10752 | inicia:function(){ |
10669 | 10753 | if ($i("contemImg")) |
10670 | 10754 | {var elemento = "contemImg";} |
... | ... | @@ -10719,6 +10803,8 @@ i3GEO.interface = { |
10719 | 10803 | { |
10720 | 10804 | if (i3GEO.configura.map3d == ""){document.getElementById("botao3d").style.display="none";} |
10721 | 10805 | } |
10806 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
10807 | + i3GEO.interface.padrao.ativaMenuContexto(); | |
10722 | 10808 | } |
10723 | 10809 | }, |
10724 | 10810 | /* |
... | ... | @@ -15381,6 +15467,9 @@ i3GEO.navega = { |
15381 | 15467 | //YAHOO.log("panfixo", "i3geo"); |
15382 | 15468 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
15383 | 15469 | if(sid != ""){i3GEO.configura.sid = sid;} |
15470 | + if(w == ""){var w = i3GEO.parametros.w;} | |
15471 | + if(h == ""){var h = i3GEO.parametros.h;} | |
15472 | + if(escala == ""){var escala = i3GEO.parametros.mapscale;} | |
15384 | 15473 | if (direcao == "norte"){ |
15385 | 15474 | var y = h / 6; |
15386 | 15475 | var x = w / 2; |
... | ... | @@ -15414,7 +15503,7 @@ i3GEO.navega = { |
15414 | 15503 | var x = w / 6; |
15415 | 15504 | } |
15416 | 15505 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
15417 | - i3GEO.php.pan(i3GEO.atualiza,escala,tipo,x,y); | |
15506 | + i3GEO.php.pan(i3GEO.atualiza,escala,"",x,y); | |
15418 | 15507 | }, |
15419 | 15508 | /* |
15420 | 15509 | Function: mostraRosaDosVentos |
... | ... | @@ -15624,10 +15713,14 @@ i3GEO.navega = { |
15624 | 15713 | }; |
15625 | 15714 | novoel.onmouseup = function(){i3GEO.navega.zoomBox.termina()}; |
15626 | 15715 | document.body.appendChild(novoel); |
15627 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
15628 | - if($i("img")){ | |
15716 | + | |
15717 | + if(i3GEO.interface.ATUAL == "padrao"){ | |
15629 | 15718 | $i("img").title = ""; |
15630 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
15719 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
15720 | + var temp = "zoom"; | |
15721 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
15722 | + var temp = "zoom_contexto"; | |
15723 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
15631 | 15724 | } |
15632 | 15725 | } |
15633 | 15726 | }, |
... | ... | @@ -16259,7 +16352,10 @@ i3GEO.selecao = { |
16259 | 16352 | i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxSel",i3GEO.configura.locaplic); |
16260 | 16353 | if($i("img")){ |
16261 | 16354 | $i("img").title = ""; |
16262 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
16355 | + var temp = "zoom"; | |
16356 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
16357 | + var temp = "zoom_contexto"; | |
16358 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
16263 | 16359 | } |
16264 | 16360 | }, |
16265 | 16361 | /* |
... | ... | @@ -16697,7 +16793,7 @@ i3GEO.eventos = { |
16697 | 16793 | |
16698 | 16794 | Executa as funções armazenadas em MOUSECLIQUE. |
16699 | 16795 | */ |
16700 | - mousecliqueMapa: function(){ | |
16796 | + mousecliqueMapa: function(exy){ | |
16701 | 16797 | if (i3GEO.eventos.MOUSECLIQUE.length > 0){ |
16702 | 16798 | var f = i3GEO.eventos.MOUSECLIQUE.length-1; |
16703 | 16799 | if (f >= 0){ |
... | ... | @@ -16866,18 +16962,35 @@ i3GEO.eventos = { |
16866 | 16962 | docMapa.onmousedown = function(exy){ |
16867 | 16963 | try{ |
16868 | 16964 | i3GEO.eventos.posicaoMouseMapa(exy); |
16965 | + if(navm) | |
16966 | + {var k = event.button;} | |
16967 | + else | |
16968 | + {var k = exy.button;} | |
16969 | + if(k != 2) | |
16869 | 16970 | i3GEO.eventos.mousedownMapa(); |
16870 | 16971 | } |
16871 | 16972 | catch(e){var e = "";} |
16872 | 16973 | }; |
16873 | - docMapa.onclick = function(){ | |
16874 | - try | |
16875 | - {i3GEO.eventos.mousecliqueMapa();} | |
16974 | + docMapa.onclick = function(exy){ | |
16975 | + try{ | |
16976 | + if(navm) | |
16977 | + {var k = event.button;} | |
16978 | + else | |
16979 | + {var k = exy.button;} | |
16980 | + if(k != 2) | |
16981 | + i3GEO.eventos.mousecliqueMapa(); | |
16982 | + } | |
16876 | 16983 | catch(e){var e = "";} |
16877 | 16984 | }; |
16878 | - docMapa.onmouseup = function(){ | |
16879 | - try | |
16880 | - {i3GEO.eventos.mouseupMapa();} | |
16985 | + docMapa.onmouseup = function(exy){ | |
16986 | + try{ | |
16987 | + if(navm) | |
16988 | + {var k = event.button;} | |
16989 | + else | |
16990 | + {var k = exy.button;} | |
16991 | + if(k != 2) | |
16992 | + i3GEO.eventos.mouseupMapa(); | |
16993 | + } | |
16881 | 16994 | catch(e){var e = "";} |
16882 | 16995 | }; |
16883 | 16996 | }, |
... | ... | @@ -18865,7 +18978,7 @@ i3GEO.barraDeBotoes = { |
18865 | 18978 | eval(c) |
18866 | 18979 | }; |
18867 | 18980 | var oFieldContextMenuItemData = [ |
18868 | - { text: "<b>Fechar</b>"}, | |
18981 | + { text: " <span class='container-close'></span>"}, | |
18869 | 18982 | { text: "Fechar barra", onclick: { fn: executar, obj: "i3GEO.barraDeBotoes.fecha('"+idbarra+"')" } }, |
18870 | 18983 | { text: "Barra normal", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=false;i3GEO.barraDeBotoes.PERMITEFECHAR=true;i3GEO.barraDeBotoes.PERMITEDESLOCAR=true;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, |
18871 | 18984 | { text: "Barra fixa", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=true;i3GEO.barraDeBotoes.PERMITEFECHAR=false;i3GEO.barraDeBotoes.PERMITEDESLOCAR=false;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, | ... | ... |
classesjs/i3geo_tudo_compacto.js.php
... | ... | @@ -7660,7 +7660,13 @@ i3GEO.configura = { |
7660 | 7660 | "zoom": |
7661 | 7661 | {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"}, |
7662 | 7662 | "contexto": |
7663 | - {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"} | |
7663 | + {ff:"/imagens/cursores/contexto.png",ie:"/imagens/cursores/contexto.cur"}, | |
7664 | + "identifica_contexto": | |
7665 | + {ff:"pointer",ie:"pointer"}, | |
7666 | + "pan_contexto": | |
7667 | + {ff:"/imagens/cursores/pan_contexto.png",ie:"/imagens/cursores/pan_contexto.cur"}, | |
7668 | + "zoom_contexto": | |
7669 | + {ff:"/imagens/cursores/zoom_contexto.png",ie:"/imagens/cursores/zoom_contexto.cur"} | |
7664 | 7670 | }, |
7665 | 7671 | /* |
7666 | 7672 | Variable: listaDePropriedadesDoMapa |
... | ... | @@ -7799,7 +7805,10 @@ i3GEO.configura = { |
7799 | 7805 | tipo:"dinamico", |
7800 | 7806 | dica:$trad("d3"), |
7801 | 7807 | funcaoonclick:function(){ |
7802 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
7808 | + var temp = "zoom"; | |
7809 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7810 | + var temp = "zoom_contexto"; | |
7811 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
7803 | 7812 | if(!$i("i3geoboxZoom")) |
7804 | 7813 | i3GEO.navega.zoomBox.criaBox(); |
7805 | 7814 | g_operacao='navega'; |
... | ... | @@ -7823,11 +7832,22 @@ i3GEO.configura = { |
7823 | 7832 | i3GEO.barraDeBotoes.ativaIcone("pan"); |
7824 | 7833 | if($i(i3GEO.interface.IDMAPA)){ |
7825 | 7834 | $i(i3GEO.interface.IDMAPA).title = ""; |
7826 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
7835 | + var temp = "pan"; | |
7836 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7837 | + var temp = "pan_contexto"; | |
7838 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.interface.IDMAPA,i3GEO.configura.locaplic); | |
7827 | 7839 | } |
7828 | 7840 | marcadorZoom = ""; |
7829 | - panMapaInicia = function(){ | |
7841 | + panMapaInicia = function(exy){ | |
7830 | 7842 | if ($i("img") && (g_tipoacao == "pan")){ |
7843 | + try{ | |
7844 | + if(navm) | |
7845 | + {var k = event.button;} | |
7846 | + else | |
7847 | + {var k = exy.button;} | |
7848 | + if(k == 2){return;} | |
7849 | + } | |
7850 | + catch(h){} | |
7831 | 7851 | g_panM = "sim"; |
7832 | 7852 | if($i("corpoMapa")){ |
7833 | 7853 | leftinicial = parseInt($i(i3GEO.interface.IDCORPO).style.left); |
... | ... | @@ -7925,7 +7945,10 @@ i3GEO.configura = { |
7925 | 7945 | { |
7926 | 7946 | if($i("img")){ |
7927 | 7947 | $i("img").title = ""; |
7928 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic); | |
7948 | + var temp = "identifica"; | |
7949 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
7950 | + var temp = "identifica_contexto"; | |
7951 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
7929 | 7952 | } |
7930 | 7953 | i3GEO.barraDeBotoes.ativaIcone("identifica"); |
7931 | 7954 | g_tipoacao='identifica'; |
... | ... | @@ -8012,7 +8035,6 @@ i3GEO.configura = { |
8012 | 8035 | //i3GEO.janela.tip("<img id='marcaIdentifica' src='"+i3GEO.configura.locaplic+"/imagens/grabber.gif' />"); |
8013 | 8036 | i3GEO.util.criaPin('marcaIdentifica',i3GEO.configura.locaplic+"/imagens/grabber.gif","12px","12px"); |
8014 | 8037 | i3GEO.util.posicionaImagemNoMapa("marcaIdentifica"); |
8015 | - | |
8016 | 8038 | balloon = new Balloon; |
8017 | 8039 | balloon.delayTime = 0; |
8018 | 8040 | var res = "<div style=text-align:left >"+res+"</div>"; |
... | ... | @@ -8021,9 +8043,21 @@ i3GEO.configura = { |
8021 | 8043 | } |
8022 | 8044 | } |
8023 | 8045 | } |
8024 | - if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);} | |
8046 | + if($i("img")){ | |
8047 | + var temp = "zoom"; | |
8048 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
8049 | + var temp = "identifica_contexto"; | |
8050 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
8051 | + } | |
8052 | + } | |
8053 | + catch(e){ | |
8054 | + if($i("img")){ | |
8055 | + var temp = "identifica"; | |
8056 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
8057 | + var temp = "identifica_contexto"; | |
8058 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
8059 | + } | |
8025 | 8060 | } |
8026 | - catch(e){if($i("img")){i3GEO.util.mudaCursor(i3GEO.configura.cursores,"identifica","img",i3GEO.configura.locaplic);}} | |
8027 | 8061 | }; |
8028 | 8062 | i3GEO.php.identifica(retorna,objposicaocursor.ddx,objposicaocursor.ddy,"5"); |
8029 | 8063 | }; |
... | ... | @@ -10575,6 +10609,18 @@ i3GEO.interface = { |
10575 | 10609 | */ |
10576 | 10610 | IDMAPA: "", |
10577 | 10611 | /* |
10612 | + Property: ATIVAMENUCONTEXTO | |
10613 | + | |
10614 | + Indica se o menu de contexto deve ser ativado | |
10615 | + | |
10616 | + Type: | |
10617 | + {Boolean} | |
10618 | + | |
10619 | + Default: | |
10620 | + {true} | |
10621 | + */ | |
10622 | + ATIVAMENUCONTEXTO: false, | |
10623 | + /* | |
10578 | 10624 | Function: redesenha |
10579 | 10625 | |
10580 | 10626 | Aplica o método redesenha da interface atual |
... | ... | @@ -10663,8 +10709,46 @@ i3GEO.interface = { |
10663 | 10709 | ins += "<tr><td class=verdeclaro ></td><td class=verdeclaro ><input style='display:none;position:relative' type=image src='' id='imgS' /></td><td class=verdeclaro ></td></tr>"; |
10664 | 10710 | ins += "</table>"; |
10665 | 10711 | $i(i3GEO.interface.IDCORPO).innerHTML = ins; |
10666 | - i3GEO.interface.IDMAPA = "img"; | |
10712 | + i3GEO.interface.IDMAPA = "img"; | |
10667 | 10713 | }, |
10714 | + /* | |
10715 | + Function: ativaMenuContexto | |
10716 | + | |
10717 | + Ativa o menu de contexto acionado com o botão direito do mouse | |
10718 | + | |
10719 | + */ | |
10720 | + ativaMenuContexto: function(){ | |
10721 | + //remove o menu de contexto se existir | |
10722 | + var temp = $i("contexto_"+i3GEO.interface.IDMAPA); | |
10723 | + if(temp){ | |
10724 | + temp.parentNode.removeChild(temp); | |
10725 | + } | |
10726 | + function executar(a,b,c){ | |
10727 | + eval(c); | |
10728 | + }; | |
10729 | + var oFieldContextMenuItemData = [ | |
10730 | + { text: " <span class='container-close'></span>"}, | |
10731 | + { text: "<img class='rosamais' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Aproxima</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomin(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
10732 | + { text: "<img class='rosamenos' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-4px;'> Afasta</span>", onclick: { fn: executar, obj: "i3GEO.navega.zoomout(i3GEO.configura.locaplic,i3GEO.configura.sid);" } }, | |
10733 | + { text: "<img class='rosanorte' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Norte</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','norte','','','');" } }, | |
10734 | + { text: "<img class='rosasul' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Sul</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','sul','','','');" } }, | |
10735 | + { text: "<img class='rosaleste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Leste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','leste','','','');" } }, | |
10736 | + { text: "<img class='rosaoeste' style='height:18px;' src='"+$im("branco.gif")+"'><span style='position:relative;top:-7px;'> Oeste</span>", onclick: { fn: executar, obj: "i3GEO.navega.panFixo('','','oeste','','','');" } }, | |
10737 | + { text: "Captura", onclick: { fn: executar, obj: "i3GEO.gadgets.quadros.listaImagens();" } } | |
10738 | + ]; | |
10739 | + var oFieldContextMenu = new YAHOO.widget.ContextMenu( | |
10740 | + "contexto_"+i3GEO.interface.IDMAPA,{ | |
10741 | + trigger: i3GEO.interface.IDMAPA, | |
10742 | + itemdata: oFieldContextMenuItemData, | |
10743 | + lazyload: true | |
10744 | + } | |
10745 | + ); | |
10746 | + var onFieldMenuRender = function(){ | |
10747 | + eval("var id = 'contexto_"+i3GEO.interface.IDMAPA+"'"); | |
10748 | + $i(id).style.zIndex = 50000; | |
10749 | + }; | |
10750 | + oFieldContextMenu.subscribe("render", onFieldMenuRender); | |
10751 | + }, | |
10668 | 10752 | inicia:function(){ |
10669 | 10753 | if ($i("contemImg")) |
10670 | 10754 | {var elemento = "contemImg";} |
... | ... | @@ -10719,6 +10803,8 @@ i3GEO.interface = { |
10719 | 10803 | { |
10720 | 10804 | if (i3GEO.configura.map3d == ""){document.getElementById("botao3d").style.display="none";} |
10721 | 10805 | } |
10806 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
10807 | + i3GEO.interface.padrao.ativaMenuContexto(); | |
10722 | 10808 | } |
10723 | 10809 | }, |
10724 | 10810 | /* |
... | ... | @@ -15381,6 +15467,9 @@ i3GEO.navega = { |
15381 | 15467 | //YAHOO.log("panfixo", "i3geo"); |
15382 | 15468 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
15383 | 15469 | if(sid != ""){i3GEO.configura.sid = sid;} |
15470 | + if(w == ""){var w = i3GEO.parametros.w;} | |
15471 | + if(h == ""){var h = i3GEO.parametros.h;} | |
15472 | + if(escala == ""){var escala = i3GEO.parametros.mapscale;} | |
15384 | 15473 | if (direcao == "norte"){ |
15385 | 15474 | var y = h / 6; |
15386 | 15475 | var x = w / 2; |
... | ... | @@ -15414,7 +15503,7 @@ i3GEO.navega = { |
15414 | 15503 | var x = w / 6; |
15415 | 15504 | } |
15416 | 15505 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
15417 | - i3GEO.php.pan(i3GEO.atualiza,escala,tipo,x,y); | |
15506 | + i3GEO.php.pan(i3GEO.atualiza,escala,"",x,y); | |
15418 | 15507 | }, |
15419 | 15508 | /* |
15420 | 15509 | Function: mostraRosaDosVentos |
... | ... | @@ -15624,10 +15713,14 @@ i3GEO.navega = { |
15624 | 15713 | }; |
15625 | 15714 | novoel.onmouseup = function(){i3GEO.navega.zoomBox.termina()}; |
15626 | 15715 | document.body.appendChild(novoel); |
15627 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
15628 | - if($i("img")){ | |
15716 | + | |
15717 | + if(i3GEO.interface.ATUAL == "padrao"){ | |
15629 | 15718 | $i("img").title = ""; |
15630 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
15719 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxZoom",i3GEO.configura.locaplic); | |
15720 | + var temp = "zoom"; | |
15721 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
15722 | + var temp = "zoom_contexto"; | |
15723 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
15631 | 15724 | } |
15632 | 15725 | } |
15633 | 15726 | }, |
... | ... | @@ -16259,7 +16352,10 @@ i3GEO.selecao = { |
16259 | 16352 | i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","i3geoboxSel",i3GEO.configura.locaplic); |
16260 | 16353 | if($i("img")){ |
16261 | 16354 | $i("img").title = ""; |
16262 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"zoom","img",i3GEO.configura.locaplic); | |
16355 | + var temp = "zoom"; | |
16356 | + if(i3GEO.interface.ATIVAMENUCONTEXTO) | |
16357 | + var temp = "zoom_contexto"; | |
16358 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,"img",i3GEO.configura.locaplic); | |
16263 | 16359 | } |
16264 | 16360 | }, |
16265 | 16361 | /* |
... | ... | @@ -16697,7 +16793,7 @@ i3GEO.eventos = { |
16697 | 16793 | |
16698 | 16794 | Executa as funções armazenadas em MOUSECLIQUE. |
16699 | 16795 | */ |
16700 | - mousecliqueMapa: function(){ | |
16796 | + mousecliqueMapa: function(exy){ | |
16701 | 16797 | if (i3GEO.eventos.MOUSECLIQUE.length > 0){ |
16702 | 16798 | var f = i3GEO.eventos.MOUSECLIQUE.length-1; |
16703 | 16799 | if (f >= 0){ |
... | ... | @@ -16866,18 +16962,35 @@ i3GEO.eventos = { |
16866 | 16962 | docMapa.onmousedown = function(exy){ |
16867 | 16963 | try{ |
16868 | 16964 | i3GEO.eventos.posicaoMouseMapa(exy); |
16965 | + if(navm) | |
16966 | + {var k = event.button;} | |
16967 | + else | |
16968 | + {var k = exy.button;} | |
16969 | + if(k != 2) | |
16869 | 16970 | i3GEO.eventos.mousedownMapa(); |
16870 | 16971 | } |
16871 | 16972 | catch(e){var e = "";} |
16872 | 16973 | }; |
16873 | - docMapa.onclick = function(){ | |
16874 | - try | |
16875 | - {i3GEO.eventos.mousecliqueMapa();} | |
16974 | + docMapa.onclick = function(exy){ | |
16975 | + try{ | |
16976 | + if(navm) | |
16977 | + {var k = event.button;} | |
16978 | + else | |
16979 | + {var k = exy.button;} | |
16980 | + if(k != 2) | |
16981 | + i3GEO.eventos.mousecliqueMapa(); | |
16982 | + } | |
16876 | 16983 | catch(e){var e = "";} |
16877 | 16984 | }; |
16878 | - docMapa.onmouseup = function(){ | |
16879 | - try | |
16880 | - {i3GEO.eventos.mouseupMapa();} | |
16985 | + docMapa.onmouseup = function(exy){ | |
16986 | + try{ | |
16987 | + if(navm) | |
16988 | + {var k = event.button;} | |
16989 | + else | |
16990 | + {var k = exy.button;} | |
16991 | + if(k != 2) | |
16992 | + i3GEO.eventos.mouseupMapa(); | |
16993 | + } | |
16881 | 16994 | catch(e){var e = "";} |
16882 | 16995 | }; |
16883 | 16996 | }, |
... | ... | @@ -18865,7 +18978,7 @@ i3GEO.barraDeBotoes = { |
18865 | 18978 | eval(c) |
18866 | 18979 | }; |
18867 | 18980 | var oFieldContextMenuItemData = [ |
18868 | - { text: "<b>Fechar</b>"}, | |
18981 | + { text: " <span class='container-close'></span>"}, | |
18869 | 18982 | { text: "Fechar barra", onclick: { fn: executar, obj: "i3GEO.barraDeBotoes.fecha('"+idbarra+"')" } }, |
18870 | 18983 | { text: "Barra normal", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=false;i3GEO.barraDeBotoes.PERMITEFECHAR=true;i3GEO.barraDeBotoes.PERMITEDESLOCAR=true;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, |
18871 | 18984 | { text: "Barra fixa", onclick: { fn: executar, obj:"i3GEO.barraDeBotoes.AUTOALTURA=true;i3GEO.barraDeBotoes.PERMITEFECHAR=false;i3GEO.barraDeBotoes.PERMITEDESLOCAR=false;i3GEO.barraDeBotoes.recria('"+idbarra+"')" } }, | ... | ... |
... | ... | @@ -0,0 +1,55 @@ |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
2 | + | |
3 | +<html><head><title>Property Index - i3Geo</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body id=IndexPage onLoad="NDOnLoad()"><script language=JavaScript><!-- | |
4 | +if (browserType) {document.write("<div id=" + browserType + ">");if (browserVer) {document.write("<div id=" + browserVer + ">"); }}// --></script> | |
5 | + | |
6 | +<!-- Generated by Natural Docs, version Development Release 02-10-2007 (1.35 base) --> | |
7 | +<!-- http://www.naturaldocs.org --> | |
8 | + | |
9 | +<!-- saved from url=(0026)http://www.naturaldocs.org --> | |
10 | + | |
11 | + | |
12 | + | |
13 | + | |
14 | +<div id=Index><div class=IPageTitle>Property Index</div><div class=INavigationBar>$#! · 0-9 · <a href="Properties.html#A">A</a> · <a href="Properties.html#B">B</a> · <a href="Properties.html#C">C</a> · <a href="Properties.html#D">D</a> · <a href="Properties.html#E">E</a> · <a href="Properties.html#F">F</a> · <a href="Properties2.html#G">G</a> · H · <a href="Properties2.html#I">I</a> · J · K · <a href="Properties2.html#L">L</a> · <a href="Properties2.html#M">M</a> · <a href="Properties2.html#N">N</a> · <a href="Properties2.html#O">O</a> · <a href="#P">P</a> · <a href="#Q">Q</a> · <a href="#R">R</a> · <a href="#S">S</a> · <a href="#T">T</a> · U · <a href="#V">V</a> · W · X · Y · <a href="#Z">Z</a></div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="P"></a>P</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pan" id=link236 onMouseOver="ShowTip(event, 'tt160', 'link236')" onMouseOut="HideTip('tt160')" class=ISymbol>pan</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegacorfundo" id=link237 onMouseOver="ShowTip(event, 'tt161', 'link237')" onMouseOut="HideTip('tt161')" class=ISymbol>pegacorfundo</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegafiltro" id=link238 onMouseOver="ShowTip(event, 'tt162', 'link238')" onMouseOut="HideTip('tt162')" class=ISymbol>pegafiltro</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/atlas_controle-php.html#pegaListaDeAtlas" id=link239 onMouseOver="ShowTip(event, 'tt163', 'link239')" onMouseOut="HideTip('tt163')" class=ISymbol>pegaListaDeAtlas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegalistadegrupos" id=link240 onMouseOver="ShowTip(event, 'tt164', 'link240')" onMouseOut="HideTip('tt164')" class=ISymbol>pegalistadegrupos</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegalistademenus" id=link241 onMouseOver="ShowTip(event, 'tt165', 'link241')" onMouseOut="HideTip('tt165')" class=ISymbol>pegalistademenus</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/atlas_controle-php.html#pegaListaDePranchas" id=link242 onMouseOver="ShowTip(event, 'tt166', 'link242')" onMouseOut="HideTip('tt166')" class=ISymbol>pegaListaDePranchas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegalistadeSubgrupos" id=link243 onMouseOver="ShowTip(event, 'tt167', 'link243')" onMouseOut="HideTip('tt167')" class=ISymbol>pegalistadeSubgrupos</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegalistadetemas" id=link244 onMouseOver="ShowTip(event, 'tt168', 'link244')" onMouseOut="HideTip('tt168')" class=ISymbol>pegalistadetemas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegaMapas" id=link245 onMouseOver="ShowTip(event, 'tt169', 'link245')" onMouseOut="HideTip('tt169')" class=ISymbol>pegaMapas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegaMensagens" id=link246 onMouseOver="ShowTip(event, 'tt170', 'link246')" onMouseOut="HideTip('tt170')" class=ISymbol>pegaMensagens</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegaParametrosLegImg" id=link247 onMouseOver="ShowTip(event, 'tt171', 'link247')" onMouseOut="HideTip('tt171')" class=ISymbol>pegaParametrosLegImg</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegaquerymapcor" id=link248 onMouseOver="ShowTip(event, 'tt172', 'link248')" onMouseOut="HideTip('tt172')" class=ISymbol>pegaquerymapcor</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pegaSistemas" id=link249 onMouseOver="ShowTip(event, 'tt173', 'link249')" onMouseOut="HideTip('tt173')" class=ISymbol>pegaSistemas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>PERMITEDESLOCAR</span>, <span class=IParent>i3GEO.<span class=HB> </span>barradebotoes</span><div class=ISubIndex><a href="../files/classesjs/classe_barradebotoes-js.html#i3GEO.barradebotoes.PERMITEDESLOCAR" id=link250 onMouseOver="ShowTip(event, 'tt174', 'link250')" onMouseOut="HideTip('tt174')" class=IFile>classesjs\<span class=HB> </span>classe_barradebotoes.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.barradebotoes.PERMITEDESLOCAR" id=link251 onMouseOver="ShowTip(event, 'tt174', 'link251')" onMouseOut="HideTip('tt174')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.barradebotoes.PERMITEDESLOCAR" id=link252 onMouseOver="ShowTip(event, 'tt174', 'link252')" onMouseOut="HideTip('tt174')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>PERMITEFECHAR</span>, <span class=IParent>i3GEO.<span class=HB> </span>barradebotoes</span><div class=ISubIndex><a href="../files/classesjs/classe_barradebotoes-js.html#i3GEO.barradebotoes.PERMITEFECHAR" id=link253 onMouseOver="ShowTip(event, 'tt175', 'link253')" onMouseOut="HideTip('tt175')" class=IFile>classesjs\<span class=HB> </span>classe_barradebotoes.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.barradebotoes.PERMITEFECHAR" id=link254 onMouseOver="ShowTip(event, 'tt175', 'link254')" onMouseOut="HideTip('tt175')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.barradebotoes.PERMITEFECHAR" id=link255 onMouseOver="ShowTip(event, 'tt175', 'link255')" onMouseOut="HideTip('tt175')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#pontoEmPoligono" id=link256 onMouseOver="ShowTip(event, 'tt176', 'link256')" onMouseOut="HideTip('tt176')" class=ISymbol>pontoEmPoligono</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>POSICAOX</span>, <span class=IParent>i3GEO.<span class=HB> </span>navega.<span class=HB> </span>lente</span><div class=ISubIndex><a href="../files/classesjs/classe_navega-js.html#i3GEO.navega.lente.POSICAOX" id=link257 onMouseOver="ShowTip(event, 'tt177', 'link257')" onMouseOut="HideTip('tt177')" class=IFile>classesjs\<span class=HB> </span>classe_navega.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.navega.lente.POSICAOX" id=link258 onMouseOver="ShowTip(event, 'tt177', 'link258')" onMouseOut="HideTip('tt177')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.navega.lente.POSICAOX" id=link259 onMouseOver="ShowTip(event, 'tt177', 'link259')" onMouseOut="HideTip('tt177')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>POSICAOY</span>, <span class=IParent>i3GEO.<span class=HB> </span>navega.<span class=HB> </span>lente</span><div class=ISubIndex><a href="../files/classesjs/classe_navega-js.html#i3GEO.navega.lente.POSICAOY" id=link260 onMouseOver="ShowTip(event, 'tt178', 'link260')" onMouseOut="HideTip('tt178')" class=IFile>classesjs\<span class=HB> </span>classe_navega.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.navega.lente.POSICAOY" id=link261 onMouseOver="ShowTip(event, 'tt178', 'link261')" onMouseOut="HideTip('tt178')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.navega.lente.POSICAOY" id=link262 onMouseOver="ShowTip(event, 'tt178', 'link262')" onMouseOut="HideTip('tt178')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#procurartemas" id=link263 onMouseOver="ShowTip(event, 'tt179', 'link263')" onMouseOut="HideTip('tt179')" class=ISymbol>procurartemas</a></td></tr><tr><td class=IHeading><a name="Q"></a>Q</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#querymapcor" id=link264 onMouseOver="ShowTip(event, 'tt180', 'link264')" onMouseOut="HideTip('tt180')" class=ISymbol>querymapcor</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#recuperamapa" id=link265 onMouseOver="ShowTip(event, 'tt181', 'link265')" onMouseOut="HideTip('tt181')" class=ISymbol>recuperamapa</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#referencia" id=link266 onMouseOver="ShowTip(event, 'tt182', 'link266')" onMouseOut="HideTip('tt182')" class=ISymbol>referencia</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#referenciadinamica" id=link267 onMouseOver="ShowTip(event, 'tt183', 'link267')" onMouseOut="HideTip('tt183')" class=ISymbol>referenciadinamica</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#reiniciaMapa" id=link268 onMouseOver="ShowTip(event, 'tt184', 'link268')" onMouseOut="HideTip('tt184')" class=ISymbol>reiniciaMapa</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#removeEtiquetas" id=link269 onMouseOver="ShowTip(event, 'tt185', 'link269')" onMouseOut="HideTip('tt185')" class=ISymbol>removeEtiquetas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#removergeometrias" id=link270 onMouseOver="ShowTip(event, 'tt186', 'link270')" onMouseOut="HideTip('tt186')" class=ISymbol>removergeometrias</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#reordenatemas" id=link271 onMouseOver="ShowTip(event, 'tt187', 'link271')" onMouseOut="HideTip('tt187')" class=ISymbol>reordenatemas</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>RIGHT</span>, <span class=IParent>i3GEO.<span class=HB> </span>maparef</span><div class=ISubIndex><a href="../files/classesjs/classe_maparef-js.html#i3GEO.maparef.RIGHT" id=link272 onMouseOver="ShowTip(event, 'tt188', 'link272')" onMouseOut="HideTip('tt188')" class=IFile>classesjs\<span class=HB> </span>classe_maparef.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.maparef.RIGHT" id=link273 onMouseOver="ShowTip(event, 'tt188', 'link273')" onMouseOut="HideTip('tt188')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.maparef.RIGHT" id=link274 onMouseOver="ShowTip(event, 'tt188', 'link274')" onMouseOut="HideTip('tt188')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesjs/wscliente-js.html#i3geo_wscliente_configura.rsswms" id=link275 onMouseOver="ShowTip(event, 'tt189', 'link275')" onMouseOut="HideTip('tt189')" class=ISymbol>rsswms</a>, <span class=IParent>i3geo_wscliente_configura</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/classesjs/wscliente-js.html#i3geo_wscliente_configura.rssws" id=link276 onMouseOver="ShowTip(event, 'tt190', 'link276')" onMouseOut="HideTip('tt190')" class=ISymbol>rssws</a>, <span class=IParent>i3geo_wscliente_configura</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaoatrib" id=link277 onMouseOver="ShowTip(event, 'tt191', 'link277')" onMouseOut="HideTip('tt191')" class=ISymbol>selecaoatrib</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaobox" id=link278 onMouseOver="ShowTip(event, 'tt192', 'link278')" onMouseOut="HideTip('tt192')" class=ISymbol>selecaobox</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaoext" id=link279 onMouseOver="ShowTip(event, 'tt193', 'link279')" onMouseOut="HideTip('tt193')" class=ISymbol>selecaoext</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaoPoli" id=link280 onMouseOver="ShowTip(event, 'tt194', 'link280')" onMouseOut="HideTip('tt194')" class=ISymbol>selecaoPoli</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaopt" id=link281 onMouseOver="ShowTip(event, 'tt195', 'link281')" onMouseOut="HideTip('tt195')" class=ISymbol>selecaopt</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#selecaotema" id=link282 onMouseOver="ShowTip(event, 'tt196', 'link282')" onMouseOut="HideTip('tt196')" class=ISymbol>selecaotema</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>SELETORES</span>, <span class=IParent>i3geo.<span class=HB> </span>idioma</span><div class=ISubIndex><a href="../files/classesjs/classe_idioma-js.html#i3geo.idioma.SELETORES" id=link283 onMouseOver="ShowTip(event, 'tt197', 'link283')" onMouseOut="HideTip('tt197')" class=IFile>classesjs\<span class=HB> </span>classe_idioma.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3geo.idioma.SELETORES" id=link284 onMouseOver="ShowTip(event, 'tt197', 'link284')" onMouseOut="HideTip('tt197')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3geo.idioma.SELETORES" id=link285 onMouseOver="ShowTip(event, 'tt197', 'link285')" onMouseOut="HideTip('tt197')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#sobetema" id=link286 onMouseOver="ShowTip(event, 'tt198', 'link286')" onMouseOut="HideTip('tt198')" class=ISymbol>sobetema</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#sphPT2shp" id=link287 onMouseOver="ShowTip(event, 'tt199', 'link287')" onMouseOut="HideTip('tt199')" class=ISymbol>sphPT2shp</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/classesjs/geradordelinks-js.html#i3geo_gl_configura.subgrupo" id=link288 onMouseOver="ShowTip(event, 'tt200', 'link288')" onMouseOut="HideTip('tt200')" class=ISymbol>subgrupo</a>, <span class=IParent>i3geo_gl_configura</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><span class=ISymbol>TAMANHO</span>, <span class=IParent>i3GEO.<span class=HB> </span>navega.<span class=HB> </span>destacaTema</span><div class=ISubIndex><a href="../files/classesjs/classe_navega-js.html#i3GEO.navega.destacaTema.TAMANHO" id=link289 onMouseOver="ShowTip(event, 'tt201', 'link289')" onMouseOut="HideTip('tt201')" class=IFile>classesjs\<span class=HB> </span>classe_navega.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.navega.destacaTema.TAMANHO" id=link290 onMouseOver="ShowTip(event, 'tt201', 'link290')" onMouseOut="HideTip('tt201')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.navega.destacaTema.TAMANHO" id=link291 onMouseOver="ShowTip(event, 'tt201', 'link291')" onMouseOut="HideTip('tt201')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>tema</span><div class=ISubIndex><a href="../files/classesjs/geradordelinks-js.html#i3geo_gl_configura.tema" id=link292 onMouseOver="ShowTip(event, 'tt202', 'link292')" onMouseOut="HideTip('tt202')" class=IParent>i3geo_gl_configura</a><a href="../files/classesjs/wscliente-js.html#i3geo_wscliente_configura.tema" id=link293 onMouseOver="ShowTip(event, 'tt203', 'link293')" onMouseOut="HideTip('tt203')" class=IParent>i3geo_wscliente_configura</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesjs/geradordelinks-js.html#i3geo_gl_configura.temasa" id=link294 onMouseOver="ShowTip(event, 'tt204', 'link294')" onMouseOut="HideTip('tt204')" class=ISymbol>temasa</a>, <span class=IParent>i3geo_gl_configura</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#temaswms" id=link295 onMouseOver="ShowTip(event, 'tt205', 'link295')" onMouseOut="HideTip('tt205')" class=ISymbol>temaswms</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#testaescalagrafica" id=link296 onMouseOver="ShowTip(event, 'tt206', 'link296')" onMouseOut="HideTip('tt206')" class=ISymbol>testaescalagrafica</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#testaLegenda" id=link297 onMouseOver="ShowTip(event, 'tt207', 'link297')" onMouseOut="HideTip('tt207')" class=ISymbol>testaLegenda</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/classesjs/wscliente-js.html#i3geo_wscliente_configura.tipo" id=link298 onMouseOver="ShowTip(event, 'tt208', 'link298')" onMouseOut="HideTip('tt208')" class=ISymbol>tipo</a>, <span class=IParent>i3geo_wscliente_configura</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>TIPOMAPA</span>, <span class=IParent>i3GEO.<span class=HB> </span>interface</span><div class=ISubIndex><a href="../files/classesjs/classe_interface-js.html#i3GEO.interface.TIPOMAPA" id=link299 onMouseOver="ShowTip(event, 'tt209', 'link299')" onMouseOut="HideTip('tt209')" class=IFile>classesjs\<span class=HB> </span>classe_interface.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.interface.TIPOMAPA" id=link300 onMouseOver="ShowTip(event, 'tt209', 'link300')" onMouseOut="HideTip('tt209')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.interface.TIPOMAPA" id=link301 onMouseOver="ShowTip(event, 'tt209', 'link301')" onMouseOut="HideTip('tt209')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><span class=ISymbol>TOP</span>, <span class=IParent>i3GEO.<span class=HB> </span>maparef</span><div class=ISubIndex><a href="../files/classesjs/classe_maparef-js.html#i3GEO.maparef.TOP" id=link302 onMouseOver="ShowTip(event, 'tt210', 'link302')" onMouseOut="HideTip('tt210')" class=IFile>classesjs\<span class=HB> </span>classe_maparef.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.maparef.TOP" id=link303 onMouseOver="ShowTip(event, 'tt210', 'link303')" onMouseOut="HideTip('tt210')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.maparef.TOP" id=link304 onMouseOver="ShowTip(event, 'tt210', 'link304')" onMouseOut="HideTip('tt210')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><span class=ISymbol>TRANSICAOSUAVE</span><div class=ISubIndex><span class=IParent>i3GEO.<span class=HB> </span>ajuda</span><div class=ISubIndex><a href="../files/classesjs/classe_ajuda-js.html#i3GEO.ajuda.TRANSICAOSUAVE" id=link305 onMouseOver="ShowTip(event, 'tt211', 'link305')" onMouseOut="HideTip('tt211')" class=IFile>classesjs\<span class=HB> </span>classe_ajuda.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.ajuda.TRANSICAOSUAVE" id=link306 onMouseOver="ShowTip(event, 'tt211', 'link306')" onMouseOut="HideTip('tt211')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.ajuda.TRANSICAOSUAVE" id=link307 onMouseOver="ShowTip(event, 'tt211', 'link307')" onMouseOut="HideTip('tt211')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div><span class=IParent>i3GEO.<span class=HB> </span>barradebotoes</span><div class=ISubIndex><a href="../files/classesjs/classe_barradebotoes-js.html#i3GEO.barradebotoes.TRANSICAOSUAVE" id=link308 onMouseOver="ShowTip(event, 'tt212', 'link308')" onMouseOut="HideTip('tt212')" class=IFile>classesjs\<span class=HB> </span>classe_barradebotoes.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.barradebotoes.TRANSICAOSUAVE" id=link309 onMouseOver="ShowTip(event, 'tt212', 'link309')" onMouseOut="HideTip('tt212')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.barradebotoes.TRANSICAOSUAVE" id=link310 onMouseOver="ShowTip(event, 'tt212', 'link310')" onMouseOut="HideTip('tt212')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div><span class=IParent>i3GEO.<span class=HB> </span>maparef</span><div class=ISubIndex><a href="../files/classesjs/classe_maparef-js.html#i3GEO.maparef.TRANSICAOSUAVE" id=link311 onMouseOver="ShowTip(event, 'tt213', 'link311')" onMouseOut="HideTip('tt213')" class=IFile>classesjs\<span class=HB> </span>classe_maparef.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js.html#i3GEO.maparef.TRANSICAOSUAVE" id=link312 onMouseOver="ShowTip(event, 'tt213', 'link312')" onMouseOut="HideTip('tt213')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.js</a><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html#i3GEO.maparef.TRANSICAOSUAVE" id=link313 onMouseOver="ShowTip(event, 'tt213', 'link313')" onMouseOut="HideTip('tt213')" class=IFile>classesjs\<span class=HB> </span>i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div></div></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#verPaleta" id=link314 onMouseOver="ShowTip(event, 'tt214', 'link314')" onMouseOut="HideTip('tt214')" class=ISymbol>verPaleta</a></td></tr><tr><td class=IHeading><a name="Z"></a>Z</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#zoomponto" id=link315 onMouseOver="ShowTip(event, 'tt215', 'link315')" onMouseOut="HideTip('tt215')" class=ISymbol>zoomponto</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/classesphp/mapa_controle-php.html#zoomtema" id=link316 onMouseOver="ShowTip(event, 'tt216', 'link316')" onMouseOut="HideTip('tt216')" class=ISymbol>zoomtema</a></td></tr></table> | |
15 | +<!--START_ND_TOOLTIPS--> | |
16 | +<div class=CToolTip id="tt160"><div class=CProperty>Desloca a visualização de um mapa (pan).</div></div><div class=CToolTip id="tt161"><div class=CProperty>Pega a cor do fundo do mapa atual.</div></div><div class=CToolTip id="tt162"><div class=CProperty>Pega a string do filtro de um tema.</div></div><div class=CToolTip id="tt163"><div class=CProperty>Pega a lista de Atlas definida no arquivo xml menutemas/atlas.xml.</div></div><div class=CToolTip id="tt164"><div class=CProperty>Pega a lista de grupos do menu.</div></div><div class=CToolTip id="tt165"><div class=CProperty>Pega a lista de menus para incluir na guia adiciona.</div></div><div class=CToolTip id="tt166"><div class=CProperty>Pega a lista de pranchas de um atlas específico.</div></div><div class=CToolTip id="tt167"><div class=CProperty>Pega a lista de subgrupos de um grupo do menu.</div></div><div class=CToolTip id="tt168"><div class=CProperty>Pega a lista de temas do menu.</div></div><div class=CToolTip id="tt169"><div class=CProperty>Pega a lista de links para outros mapas.</div></div><div class=CToolTip id="tt170"><div class=CProperty>Pega as mensagens do metadata ‘mensagem’.</div></div><div class=CToolTip id="tt171"><div class=CProperty>Pega os parâmetros da legenda embebida no mapa.</div></div><div class=CToolTip id="tt172"><div class=CProperty>Pega a cor de seleção atual.</div></div><div class=CToolTip id="tt173"><div class=CProperty>Pega a lista de sistemas.</div></div><div class=CToolTip id="tt174"><div class=CProperty>Permite deslocar as barras ou não.</div></div><div class=CToolTip id="tt175"><div class=CProperty>Mostra o botão para fechar as barras ou não.</div></div><div class=CToolTip id="tt176"><div class=CProperty>Cruza um tema pontual com temas poligonais ou raster.</div></div><div class=CToolTip id="tt177"><div class=CProperty>Define a posição em x da lente em relação ao corpo do mapa</div></div><div class=CToolTip id="tt178"><div class=CProperty>Define a posição em y da lente em relação ao corpo do mapa</div></div><div class=CToolTip id="tt179"><div class=CProperty>Procura um tema no menu.</div></div><!--END_ND_TOOLTIPS--> | |
17 | + | |
18 | + | |
19 | +<!--START_ND_TOOLTIPS--> | |
20 | +<div class=CToolTip id="tt180"><div class=CProperty>Altera a cor de seleção.</div></div><!--END_ND_TOOLTIPS--> | |
21 | + | |
22 | + | |
23 | +<!--START_ND_TOOLTIPS--> | |
24 | +<div class=CToolTip id="tt181"><div class=CProperty>Recupera o mapfile de segurança.</div></div><div class=CToolTip id="tt182"><div class=CProperty>Gera a imagem do mapa de referência.</div></div><div class=CToolTip id="tt183"><div class=CProperty>Gera a imagem do mapa de referência de forma dinâmica, variando com a escala do mapa atual.</div></div><div class=CToolTip id="tt184"><div class=CProperty>Reinicia um mapa restaurando a cópia de segurança.</div></div><div class=CToolTip id="tt185"><div class=CProperty>Desativa as etiquetas de um tema.</div></div><div class=CToolTip id="tt186"><div class=CProperty>Remove geometrias do diretório temporário.</div></div><div class=CToolTip id="tt187"><div class=CProperty>Reordena os temas baseados na localização de um segundo tema no mapa.</div></div><div class=CToolTip id="tt188"><div class=CProperty>Posição da janela em relação ao lado direito do mapa</div></div><div class=CToolTip id="tt189"><div class=CProperty>Guarda o valor do parâmetro rsswms</div></div><div class=CToolTip id="tt190"><div class=CProperty>Guarda o valor do parâmetro rssws</div></div><!--END_ND_TOOLTIPS--> | |
25 | + | |
26 | + | |
27 | +<!--START_ND_TOOLTIPS--> | |
28 | +<div class=CToolTip id="tt191"><div class=CProperty>Seleciona elementos com base nos atributos.</div></div><div class=CToolTip id="tt192"><div class=CProperty>Seleciona elementos utilizando um retângulo.</div></div><div class=CToolTip id="tt193"><div class=CProperty>Seleciona elementos utilizando a extensão do mapa.</div></div><div class=CToolTip id="tt194"><div class=CProperty>Seleção por poligono (chamado via POST).</div></div><div class=CToolTip id="tt195"><div class=CProperty>Seleciona elementos utilizando um ponto.</div></div><div class=CToolTip id="tt196"><div class=CProperty>Sleciona elementos de um tema com base em outro tema.</div></div><div class=CToolTip id="tt197"><div class=CProperty>Lista os seletores (bandeiras) que serão incluídas no seletor</div></div><div class=CToolTip id="tt198"><div class=CProperty>Sobe um tema na ordem de desenho.</div></div><div class=CToolTip id="tt199"><div class=CProperty>Converte os elementos de um tema em um arquivo shp.</div></div><div class=CToolTip id="tt200"><div class=CProperty>Guarda o valor do parâmetro subgrupo</div></div><!--END_ND_TOOLTIPS--> | |
29 | + | |
30 | + | |
31 | +<!--START_ND_TOOLTIPS--> | |
32 | +<div class=CToolTip id="tt201"><div class=CProperty>Tamanho do box</div></div><div class=CToolTip id="tt202"><div class=CProperty>Guarda o valor do parâmetro tema</div></div><div class=CToolTip id="tt203"><div class=CProperty>Código do tema wms escolhido</div></div><div class=CToolTip id="tt204"><div class=CProperty>Id do elemento HTML onde a lista de temas adicionados, ou seja, os que forem escolhidos pelo usuário, será incluída.</div></div><div class=CToolTip id="tt205"><div class=CProperty>Retorna a lista de camadas de um WMS formatado em HTML.</div></div><div class=CToolTip id="tt206"><div class=CProperty>Testa os novos parâmetros de uma barra de escala.</div></div><div class=CToolTip id="tt207"><div class=CProperty>Testa os parâmetros de definição da legenda inserida no mapa.</div></div><div class=CToolTip id="tt208"><div class=CProperty>Tipo de serviço wms ativo</div></div><div class=CToolTip id="tt209"><div class=CProperty>Tipo de mapa que será usado como default, conforme constantes definidas na API do Google Maps.</div></div><div class=CToolTip id="tt210"><div class=CProperty>Posição da janela em relação ao topo do mapa</div></div><div class=CToolTip id="tt211"><div class=CProperty>Altera a transparência quando o mouse sobrepõe à janela e quando sai</div></div><div class=CToolTip id="tt212"><div class=CProperty>Altera a transparência das barras quando o mouse sobrepõe a barra e quando sai da barra</div></div><div class=CToolTip id="tt213"><div class=CProperty>Altera a transparência quando o mouse sobrepõe ao mapa de referência e quando sai</div></div><!--END_ND_TOOLTIPS--> | |
33 | + | |
34 | + | |
35 | +<!--START_ND_TOOLTIPS--> | |
36 | +<div class=CToolTip id="tt214"><div class=CProperty>Gera cores tendo como base uma cor inicial e uma cor final.</div></div><!--END_ND_TOOLTIPS--> | |
37 | + | |
38 | + | |
39 | +<!--START_ND_TOOLTIPS--> | |
40 | +<div class=CToolTip id="tt215"><div class=CProperty>Desloca o centro do mapa para um ponto específico.</div></div><div class=CToolTip id="tt216"><div class=CProperty>Muda a extensão geográfica do mapa de acordo com a abrangência de um tema.</div></div><!--END_ND_TOOLTIPS--> | |
41 | + | |
42 | +</div><!--Index--> | |
43 | + | |
44 | + | |
45 | +<div id=Footer>Para mais informações veja http://softwarepublico.gov.br · Gerado em 21st May, 2009 · <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> | |
46 | + | |
47 | + | |
48 | +<div id=Menu><div id=MTitle>i3Geo<div id=MSubTitle>Documentação dos códigos</div></div><div class="MFile MEntry"><a href="../files/principal-htm.html">Página principal com a lista de aplicativos do i3geo</a></div><div class="MFile MEntry"><a href="../files/ms_criamapa-php.html">Inicializa o I3Geo via URL ms_criamapa.php</a></div><div class="MFile MEntry"><a href="../files/ms_configura-php.html">Variáveis de inicialização ms_configura.php</a></div><div class="MFile MEntry"><a href="../files/testainstal-php.html">Testa a instalação do I3Geo.</a></div><div class="MFile MEntry"><a href="../files/testamapfile-php.html">Testa um mapfile.</a></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent5')">Programas principais (core)</a><div class=MGroupContent id=MGroupContent5><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent3')">Programas principais em JavaScript (rodam no navegador)</a><div class=MGroupContent id=MGroupContent3><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent1')">Classes</a><div class=MGroupContent id=MGroupContent1><div class="MFile MEntry"><a href="../files/classesjs/classe_i3geo-js.html">i3Geo</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_ajuda-js.html">Ajuda</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_analise-js.html">Análise geográfica</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_arvoredecamadas-js.html">Árvore de camadas</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_arvoredetemas-js.html">Árvore de temas</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_barradebotoes-js.html">Barra de botões</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_calculo-js.html">Cálculos</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_configura-js.html">Configurações gerais</a></div><div class="MFile MEntry"><a href="../files/classesjs/depreciados-js.html">depreciados.js</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_desenho-js.html">Desenho de elementos gráficos</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_eventos-js.html">Eventos</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_gadgets-js.html">Gadgets (objetos marginais do mapa)</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_guias-js.html">Guias</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_idioma-js.html">Idioma</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_interface-js.html">Interface</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_janela-js.html">Janelas</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_mapa-js.html">Mapa</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_maparef-js.html">Mapa de referência</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_navega-js.html">Navegação sobre o mapa</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_php-js.html">PHP</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_selecao-js.html">Seleção de elementos</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_tema-js.html">Temas</a></div><div class="MFile MEntry"><a href="../files/classesjs/classe_util-js.html">Utilitários</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent2')">Aplicativos</a><div class=MGroupContent id=MGroupContent2><div class="MFile MEntry"><a href="../files/classesjs/atlas-js.html">Atlas</a></div><div class="MFile MEntry"><a href="../files/classesjs/wscliente-js.html">Cliente de web services</a></div><div class="MFile MEntry"><a href="../files/classesjs/compactajs-php.html">Compactador de javascript</a></div><div class="MFile MEntry"><a href="../files/classesjs/datadownload-js.html">Data download</a></div><div class="MFile MEntry"><a href="../files/classesjs/geradordelinks-js.html">Gerador de links</a></div><div class="MFile MEntry"><a href="../files/classesjs/i3geo-js.html">i3geo - carregador de javascripts</a></div></div></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent4')">Programas principais em PHP (rodam no servidor)</a><div class=MGroupContent id=MGroupContent4><div class="MFile MEntry"><a href="../files/classesphp/atlas_controle-php.html">atlas_controle.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/carrega_ext-php.html">carrega_ext.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/class-palette-php.html">class.<span class=HB> </span>palette.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_alteraclasse-php.html">classe_alteraclasse.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_analise-php.html">classe_analise.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_atlas-php.html">classe_atlas.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_atributos-php.html">classe_atributos</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_escala-php.html">classe_escala.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_estatistica-php.html">classe_estatistica.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_imagem-php.html">classe_imagem.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_legenda-php.html">classe_legenda.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_mapa-php.html">classe_mapa.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_menutemas-php.html">classe_menutemas.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_navegacao-php.html">classe_navegacao.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_selecao-php.html">classe_selecao.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_shp-php.html">classe_shp.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_temas-php.html">classe_temas.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_toponimia-php.html">classe_toponimia.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/classe_vermultilayer-php.html">classe_vermultilayer.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/flamingoogc-php.html">flamingoogc.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/funcoes_gerais-php.html">funcoes_gerais.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/graficopizza-php.html">graficopizza.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/graficos-php.html">graficos.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/mapa_controle-php.html">mapa_controle.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/mapa_inicia-php.html">mapa_inicia.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/parse_cgi-php.html">parse_cgi.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/pega_variaveis-php.html">pega_variaveis.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/wmswfs-php.html">wmswfs.php</a></div><div class="MFile MEntry"><a href="../files/classesphp/wscliente-php.html">wscliente.php</a></div></div></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent6')">Redirecionadores</a><div class=MGroupContent id=MGroupContent6><div class="MFile MEntry"><a href="../files/index-html.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTML</a></div><div class="MFile MEntry"><a href="../files/index-htm.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTM</a></div><div class="MFile MEntry"><a href="../files/zerocal/index-htm.html">Redirecionador HTM para o ms_criamapa.<span class=HB> </span>php com interface zerocal</a></div><div class="MFile MEntry"><a href="../files/zerocal/index-html.html">Redirecionador HTML para o ms_criamapa.<span class=HB> </span>php com interface zerocal</a></div><div class="MFile MEntry"><a href="../files/hiperbolica-html.html">Redirecionador para o pacotes/<span class=HB> </span>arvorehiper/<span class=HB> </span>index.<span class=HB> </span>php com extensão HTML</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent9')">Aplicativos adicionais</a><div class=MGroupContent id=MGroupContent9><div class="MFile MEntry"><a href="../files/ms_registraip-php.html">ms_registraip.php</a></div><div class="MFile MEntry"><a href="../files/datadownload-htm.html">datadownload.htm</a></div><div class="MFile MEntry"><a href="../files/ogc-htm.html">ogc.htm</a></div><div class="MFile MEntry"><a href="../files/ogc-php.html">ogc.php</a></div><div class="MFile MEntry"><a href="../files/kml-php.html">kml.php</a></div><div class="MFile MEntry"><a href="../files/geradordelinks-htm.html">geradordelinks.htm</a></div><div class="MFile MEntry"><a href="../files/wscliente-htm.html">wscliente.htm</a></div><div class="MFile MEntry"><a href="../files/geraminiatura-php.html">geraminiatura.php</a></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent7')">Atlas</a><div class=MGroupContent id=MGroupContent7><div class="MFile MEntry"><a href="../files/atlas/geral-htm.html">geral.htm</a></div><div class="MFile MEntry"><a href="../files/atlas/index-htm.html">index.htm</a></div><div class="MFile MEntry"><a href="../files/atlas/index-html.html">index.html</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent8')">Mobile</a><div class=MGroupContent id=MGroupContent8><div class="MFile MEntry"><a href="../files/mobile/adicionatema-php.html">adicionatema.php</a></div><div class="MFile MEntry"><a href="../files/mobile/ativatexto-php.html">ativatexto.php</a></div><div class="MFile MEntry"><a href="../files/mobile/desligar-php.html">desligar.php</a></div><div class="MFile MEntry"><a href="../files/mobile/escala-php.html">escala.php</a></div><div class="MFile MEntry"><a href="../files/mobile/identifica-php.html">identifica.php</a></div><div class="MFile MEntry"><a href="../files/mobile/index-htm.html">index.htm</a></div><div class="MFile MEntry"><a href="../files/mobile/index-html.html">index.html</a></div><div class="MFile MEntry"><a href="../files/mobile/index-php.html">index.php</a></div><div class="MFile MEntry"><a href="../files/mobile/inicia-php.html">inicia.php</a></div><div class="MFile MEntry"><a href="../files/mobile/legenda-php.html">legenda.php</a></div><div class="MFile MEntry"><a href="../files/mobile/ligar-php.html">ligar.php</a></div><div class="MFile MEntry"><a href="../files/mobile/localizar-php.html">localizar.php</a></div><div class="MFile MEntry"><a href="../files/mobile/localizarxy-php.html">localizarxy.php</a></div><div class="MFile MEntry"><a href="../files/mobile/mobile-php.html">mobile.php</a></div></div></div><div class="MFile MEntry"><a href="../files/classesjs/zerocal/i3geo-js.html">i3geo.js</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent10')">Configurações administrativas (menus, mapas, etc.)</a><div class=MGroupContent id=MGroupContent10><div class="MFile MEntry"><a href="../files/menutemas/identifica-xml.html">Lista de aplicações de identificação</a></div><div class="MFile MEntry"><a href="../files/menutemas/atlas-xml.html">Lista de Atlas</a></div><div class="MFile MEntry"><a href="../files/menutemas/linksdownload-xml.html">Lista de links para sites de download</a></div><div class="MFile MEntry"><a href="../files/menutemas/mapas-xml.html">Lista de mapas</a></div><div class="MFile MEntry"><a href="../files/menutemas/servicosws-xml.html">Lista de serviços de acesso aos dados.</a></div><div class="MFile MEntry"><a href="../files/menutemas/servicosgeorss-xml.html">Lista de serviços georss</a></div><div class="MFile MEntry"><a href="../files/menutemas/sistemas-xml.html">Lista de sistemas.</a></div><div class="MFile MEntry"><a href="../files/menutemas/menutemas-xml.html">Menu de temas</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent11')">Interfaces HTML e mapfiles de inicialização e configuração</a><div class=MGroupContent id=MGroupContent11><div class="MFile MEntry"><a href="../files/aplicmap/flamingo-htm.html">Flamingo (experimental)</a></div><div class="MFile MEntry"><a href="../files/aplicmap/googleearth-phtml.html">Google Earth (experimental)</a></div><div class="MFile MEntry"><a href="../files/aplicmap/googlemaps-phtml.html">Google Maps (experimental)</a></div><div class="MFile MEntry"><a href="../files/aplicmap/minima-htm.html">Interface minima</a></div><div class="MFile MEntry"><a href="../files/aplicmap/geral-htm.html">Interface normal</a></div><div class="MFile MEntry"><a href="../files/aplicmap/meumapa-htm.html">Interface normal (para exemplos)</a></div><div class="MFile MEntry"><a href="../files/aplicmap/simples1-htm.html">Interface simples 1</a></div><div class="MFile MEntry"><a href="../files/aplicmap/simples2-htm.html">Interface simples 2</a></div><div class="MFile MEntry"><a href="../files/aplicmap/zerocal-htm.html">Interface zerocal</a></div><div class="MFile MEntry"><a href="../files/aplicmap/openlayers-htm.html">OpenLayers (experimental)</a></div><div class="MFile MEntry"><a href="../files/aplicmap/index-htm.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTM</a></div><div class="MFile MEntry"><a href="../files/aplicmap/index-html.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTML</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent12')">Index</a><div class=MGroupContent id=MGroupContent12><div class="MIndex MEntry"><a href="General.html">Everything</a></div><div class="MIndex MEntry"><a href="Classes.html">Classes</a></div><div class="MIndex MEntry"><a href="Files.html">Files</a></div><div class="MIndex MEntry"><a href="Functions.html">Functions</a></div><div class="MIndex MEntry" id=MSelected>Properties</div><div class="MIndex MEntry"><a href="Variables.html">Variables</a></div></div></div><div class="MFile MEntry"><a href="../files/classesjs/i3geo_tudo_compacto-js.html">-</a></div><div class="MFile MEntry"><a href="../files/classesjs/i3geo_tudo_compacto-js-php.html">-</a></div><div class="MFile MEntry"><a href="../files/exemplos/abas-htm.html">abas.htm</a></div><script type="text/javascript"><!-- | |
49 | +var searchPanel = new SearchPanel("searchPanel", "HTML", "../search"); | |
50 | +--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option><option value="Variables">Variables</option></select></div><div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div><script language=JavaScript><!-- | |
51 | +if (document.getElementById){for (var menu = 1; menu < 13; menu++){if (menu != 12){document.getElementById("MGroupContent" + menu).style.display = "none";};};}// --></script></div><!--Menu--> | |
52 | + | |
53 | + | |
54 | +<script language=JavaScript><!-- | |
55 | +if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | |
0 | 56 | \ No newline at end of file | ... | ... |
imagens/cursores/Thumbs.db
No preview for this file type
imagens/cursores/identifica.cur
No preview for this file type
No preview for this file type
383 Bytes
No preview for this file type
518 Bytes
No preview for this file type
516 Bytes
... | ... | @@ -0,0 +1,34 @@ |
1 | +MAP | |
2 | +SYMBOLSET ../symbols/simbolos.sym | |
3 | +FONTSET "../symbols/fontes.txt" | |
4 | + LAYER | |
5 | + CONNECTION "user=geodados password=geodados dbname=geodados host=pgsql1.mma.gov.br port=5432" | |
6 | + CONNECTIONTYPE POSTGIS | |
7 | + DATA "the_geom FROM (select the_geom,gid,convert_to(cd_legenda,'UTF8') as cd_legenda FROM brasil.brareg1) as foo USING UNIQUE gid USING SRID=4291" | |
8 | + LABELITEM "cd_legenda" | |
9 | + METADATA | |
10 | + "CLASSE" "SIM" | |
11 | + "ITENSDESC" "Nome" | |
12 | + "ESCALA" "5000000" | |
13 | + "EXTENSAO" "-75.233614607 -33.7515829981 -27.592958622 5.272156" | |
14 | + "ITENS" "cd_legenda" | |
15 | + "TEMA" "Bioma" | |
16 | + END | |
17 | + NAME "bioma" | |
18 | + STATUS OFF | |
19 | + TEMPLATE "none.htm" | |
20 | + TYPE POLYGON | |
21 | + UNITS METERS | |
22 | + CLASS | |
23 | + NAME "" | |
24 | + STYLE | |
25 | + ANGLE 360 | |
26 | + COLOR 51 127 17 | |
27 | + OPACITY 100 | |
28 | + SYMBOL 0 | |
29 | + END | |
30 | + END | |
31 | + END | |
32 | + | |
33 | +END | |
34 | + | ... | ... |