Commit 5b3e27d1df2161abfac7e11182eb86b002a399b3
1 parent
4e649644
Exists in
master
and in
7 other branches
Correção na ferramenta de identificação que estava sendo bloqueada pelo ícone in…
…dicativo do local clicado
Showing
5 changed files
with
23 additions
and
7 deletions
Show diff stats
classesjs/classe_barradebotoes.js
| ... | ... | @@ -322,6 +322,12 @@ i3GEO.barraDeBotoes = { |
| 322 | 322 | {String} |
| 323 | 323 | */ |
| 324 | 324 | BOTAOCLICADO: "", |
| 325 | + ativaPadrao: function(){ | |
| 326 | + try{ | |
| 327 | + $i(i3GEO.barraDeBotoes.BOTAOPADRAO).onclick.call(); | |
| 328 | + } | |
| 329 | + catch(e){} | |
| 330 | + }, | |
| 325 | 331 | /* |
| 326 | 332 | Function: ativaIcone |
| 327 | 333 | |
| ... | ... | @@ -372,7 +378,6 @@ i3GEO.barraDeBotoes = { |
| 372 | 378 | } |
| 373 | 379 | } |
| 374 | 380 | } |
| 375 | - | |
| 376 | 381 | if(i3GEO.barraDeBotoes.COMPORTAMENTO == "destacado"){ |
| 377 | 382 | if(ko >= 0){ |
| 378 | 383 | do{ | ... | ... |
classesjs/classe_configura.js
| ... | ... | @@ -829,11 +829,15 @@ i3GEO.configura = { |
| 829 | 829 | g_operacao = "identifica"; |
| 830 | 830 | eval(i3GEO.configura.funcaoIdentifica); |
| 831 | 831 | } |
| 832 | - i3GEO.util.criaPin("i3GEOmarcaIdentifica",i3GEO.configura.locaplic+"/imagens/marcaidentify.png",48,48); | |
| 832 | + var temp = function(){ | |
| 833 | + $i("i3GEOmarcaIdentifica").style.display = "none"; | |
| 834 | + }; | |
| 835 | + i3GEO.util.criaPin("i3GEOmarcaIdentifica",i3GEO.configura.locaplic+"/imagens/marcaidentify.png",48,48,temp); | |
| 833 | 836 | i3GEO.util.posicionaImagemNoMapa("i3GEOmarcaIdentifica"); |
| 834 | 837 | var i = $i("i3GEOmarcaIdentifica"); |
| 835 | - if(i) | |
| 836 | - {i.style.display = "block";} | |
| 838 | + if(i){ | |
| 839 | + i.style.display = "block"; | |
| 840 | + } | |
| 837 | 841 | }; |
| 838 | 842 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()") < 0) |
| 839 | 843 | {i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()");} | ... | ... |
classesjs/classe_util.js
| ... | ... | @@ -610,8 +610,10 @@ i3GEO.util = { |
| 610 | 610 | w {String} - (opcional) largura da imagem |
| 611 | 611 | |
| 612 | 612 | h {String} - (opcional) altura da imagem |
| 613 | + | |
| 614 | + mouseover - função que será executada no evento mouseover | |
| 613 | 615 | */ |
| 614 | - criaPin: function(id,imagem,w,h){ | |
| 616 | + criaPin: function(id,imagem,w,h,mouseover){ | |
| 615 | 617 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaPin()");} |
| 616 | 618 | if(arguments.length < 1 || id === ""){ |
| 617 | 619 | id = "boxpin"; |
| ... | ... | @@ -636,6 +638,9 @@ i3GEO.util = { |
| 636 | 638 | novoel.src = imagem; |
| 637 | 639 | if(id === "boxpin") |
| 638 | 640 | {novoel.onmouseover = function(){$i("boxpin").style.display="none";};} |
| 641 | + else if(mouseover){ | |
| 642 | + novoel.onmouseover = mouseover; | |
| 643 | + } | |
| 639 | 644 | document.body.appendChild(novoel); |
| 640 | 645 | i3GEO.util.PINS.push(id); |
| 641 | 646 | } | ... | ... |
ferramentas/inseretxt/index.js.php
| ... | ... | @@ -305,6 +305,7 @@ i3GEOF.inseretxt = { |
| 305 | 305 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inseretxt.cria()") < 0) |
| 306 | 306 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inseretxt.cria()");} |
| 307 | 307 | temp = function(){ |
| 308 | + i3GEO.barraDeBotoes.ativaPadrao(); | |
| 308 | 309 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inseretxt.cria()"); |
| 309 | 310 | }; |
| 310 | 311 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| ... | ... | @@ -315,7 +316,7 @@ i3GEOF.inseretxt = { |
| 315 | 316 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado |
| 316 | 317 | */ |
| 317 | 318 | ativaFoco: function(){ |
| 318 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pointer",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); | |
| 319 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"crosshair",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); | |
| 319 | 320 | i3GEO.barraDeBotoes.ativaIcone("textofid"); |
| 320 | 321 | g_tipoacao=''; |
| 321 | 322 | g_operacao=''; | ... | ... |
ferramentas/inserexy2/index.js.php
| ... | ... | @@ -284,6 +284,7 @@ i3GEOF.inserexy = { |
| 284 | 284 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inserexy.adicionaClique()") < 0) |
| 285 | 285 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inserexy.adicionaClique()");} |
| 286 | 286 | temp = function(){ |
| 287 | + i3GEO.barraDeBotoes.ativaPadrao(); | |
| 287 | 288 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inserexy.adicionaClique()"); |
| 288 | 289 | }; |
| 289 | 290 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| ... | ... | @@ -294,7 +295,7 @@ i3GEOF.inserexy = { |
| 294 | 295 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado |
| 295 | 296 | */ |
| 296 | 297 | ativaFoco: function(){ |
| 297 | - i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pointer",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); | |
| 298 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"crosshair",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); | |
| 298 | 299 | i3GEO.barraDeBotoes.ativaIcone("inserexy"); |
| 299 | 300 | g_tipoacao='inserexy'; |
| 300 | 301 | g_operacao=''; | ... | ... |