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,6 +322,12 @@ i3GEO.barraDeBotoes = { | ||
322 | {String} | 322 | {String} |
323 | */ | 323 | */ |
324 | BOTAOCLICADO: "", | 324 | BOTAOCLICADO: "", |
325 | + ativaPadrao: function(){ | ||
326 | + try{ | ||
327 | + $i(i3GEO.barraDeBotoes.BOTAOPADRAO).onclick.call(); | ||
328 | + } | ||
329 | + catch(e){} | ||
330 | + }, | ||
325 | /* | 331 | /* |
326 | Function: ativaIcone | 332 | Function: ativaIcone |
327 | 333 | ||
@@ -372,7 +378,6 @@ i3GEO.barraDeBotoes = { | @@ -372,7 +378,6 @@ i3GEO.barraDeBotoes = { | ||
372 | } | 378 | } |
373 | } | 379 | } |
374 | } | 380 | } |
375 | - | ||
376 | if(i3GEO.barraDeBotoes.COMPORTAMENTO == "destacado"){ | 381 | if(i3GEO.barraDeBotoes.COMPORTAMENTO == "destacado"){ |
377 | if(ko >= 0){ | 382 | if(ko >= 0){ |
378 | do{ | 383 | do{ |
classesjs/classe_configura.js
@@ -829,11 +829,15 @@ i3GEO.configura = { | @@ -829,11 +829,15 @@ i3GEO.configura = { | ||
829 | g_operacao = "identifica"; | 829 | g_operacao = "identifica"; |
830 | eval(i3GEO.configura.funcaoIdentifica); | 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 | i3GEO.util.posicionaImagemNoMapa("i3GEOmarcaIdentifica"); | 836 | i3GEO.util.posicionaImagemNoMapa("i3GEOmarcaIdentifica"); |
834 | var i = $i("i3GEOmarcaIdentifica"); | 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 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()") < 0) | 842 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("cliqueIdentifica()") < 0) |
839 | {i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()");} | 843 | {i3GEO.eventos.MOUSECLIQUE.push("cliqueIdentifica()");} |
classesjs/classe_util.js
@@ -610,8 +610,10 @@ i3GEO.util = { | @@ -610,8 +610,10 @@ i3GEO.util = { | ||
610 | w {String} - (opcional) largura da imagem | 610 | w {String} - (opcional) largura da imagem |
611 | 611 | ||
612 | h {String} - (opcional) altura da imagem | 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 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaPin()");} | 617 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaPin()");} |
616 | if(arguments.length < 1 || id === ""){ | 618 | if(arguments.length < 1 || id === ""){ |
617 | id = "boxpin"; | 619 | id = "boxpin"; |
@@ -636,6 +638,9 @@ i3GEO.util = { | @@ -636,6 +638,9 @@ i3GEO.util = { | ||
636 | novoel.src = imagem; | 638 | novoel.src = imagem; |
637 | if(id === "boxpin") | 639 | if(id === "boxpin") |
638 | {novoel.onmouseover = function(){$i("boxpin").style.display="none";};} | 640 | {novoel.onmouseover = function(){$i("boxpin").style.display="none";};} |
641 | + else if(mouseover){ | ||
642 | + novoel.onmouseover = mouseover; | ||
643 | + } | ||
639 | document.body.appendChild(novoel); | 644 | document.body.appendChild(novoel); |
640 | i3GEO.util.PINS.push(id); | 645 | i3GEO.util.PINS.push(id); |
641 | } | 646 | } |
ferramentas/inseretxt/index.js.php
@@ -305,6 +305,7 @@ i3GEOF.inseretxt = { | @@ -305,6 +305,7 @@ i3GEOF.inseretxt = { | ||
305 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inseretxt.cria()") < 0) | 305 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inseretxt.cria()") < 0) |
306 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inseretxt.cria()");} | 306 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inseretxt.cria()");} |
307 | temp = function(){ | 307 | temp = function(){ |
308 | + i3GEO.barraDeBotoes.ativaPadrao(); | ||
308 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inseretxt.cria()"); | 309 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inseretxt.cria()"); |
309 | }; | 310 | }; |
310 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 311 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
@@ -315,7 +316,7 @@ i3GEOF.inseretxt = { | @@ -315,7 +316,7 @@ i3GEOF.inseretxt = { | ||
315 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado | 316 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado |
316 | */ | 317 | */ |
317 | ativaFoco: function(){ | 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 | i3GEO.barraDeBotoes.ativaIcone("textofid"); | 320 | i3GEO.barraDeBotoes.ativaIcone("textofid"); |
320 | g_tipoacao=''; | 321 | g_tipoacao=''; |
321 | g_operacao=''; | 322 | g_operacao=''; |
ferramentas/inserexy2/index.js.php
@@ -284,6 +284,7 @@ i3GEOF.inserexy = { | @@ -284,6 +284,7 @@ i3GEOF.inserexy = { | ||
284 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inserexy.adicionaClique()") < 0) | 284 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inserexy.adicionaClique()") < 0) |
285 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inserexy.adicionaClique()");} | 285 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inserexy.adicionaClique()");} |
286 | temp = function(){ | 286 | temp = function(){ |
287 | + i3GEO.barraDeBotoes.ativaPadrao(); | ||
287 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inserexy.adicionaClique()"); | 288 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.inserexy.adicionaClique()"); |
288 | }; | 289 | }; |
289 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 290 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
@@ -294,7 +295,7 @@ i3GEOF.inserexy = { | @@ -294,7 +295,7 @@ i3GEOF.inserexy = { | ||
294 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado | 295 | Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado |
295 | */ | 296 | */ |
296 | ativaFoco: function(){ | 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 | i3GEO.barraDeBotoes.ativaIcone("inserexy"); | 299 | i3GEO.barraDeBotoes.ativaIcone("inserexy"); |
299 | g_tipoacao='inserexy'; | 300 | g_tipoacao='inserexy'; |
300 | g_operacao=''; | 301 | g_operacao=''; |