Commit 87b73a2a95a1fee4af8f54664651050e73107208
1 parent
3f5d53b1
Exists in
master
and in
7 other branches
correção no uso de i3GEO.arvoreDeCamadas.ATIVATEMA
Showing
1 changed file
with
7 additions
and
3 deletions
Show diff stats
classesjs/classe_interface.js
| @@ -672,7 +672,9 @@ i3GEO.Interface = { | @@ -672,7 +672,9 @@ i3GEO.Interface = { | ||
| 672 | i3GEO.Interface.openlayers.OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; | 672 | i3GEO.Interface.openlayers.OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; |
| 673 | } | 673 | } |
| 674 | }; | 674 | }; |
| 675 | - i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.openlayers.ligaDesliga(this);i3GEO.eventos.executaEventos(i3GEO.eventos.ATUALIZAARVORECAMADAS);"; | 675 | + //corrigido na versão 4.7 do i3geo (não tinha o if) |
| 676 | + if(i3GEO.arvoreDeCamadas.ATIVATEMA === "") | ||
| 677 | + {i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.openlayers.ligaDesliga(this);i3GEO.eventos.executaEventos(i3GEO.eventos.ATUALIZAARVORECAMADAS);";} | ||
| 676 | i3GEO.util.multiStep([ | 678 | i3GEO.util.multiStep([ |
| 677 | i3GEO.coordenadas.mostraCoordenadas, | 679 | i3GEO.coordenadas.mostraCoordenadas, |
| 678 | montaMapa, | 680 | montaMapa, |
| @@ -1421,7 +1423,8 @@ i3GEO.Interface = { | @@ -1421,7 +1423,8 @@ i3GEO.Interface = { | ||
| 1421 | if(i3GEO.Interface.STATUS.trocando === false){ | 1423 | if(i3GEO.Interface.STATUS.trocando === false){ |
| 1422 | i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa); | 1424 | i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa); |
| 1423 | } | 1425 | } |
| 1424 | - i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googlemaps.ligaDesliga(this)"; | 1426 | + if(i3GEO.arvoreDeCamadas.ATIVATEMA === "") |
| 1427 | + {i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googlemaps.ligaDesliga(this)";} | ||
| 1425 | i3GEO.arvoreDeCamadas.cria("",i3GEO.arvoreDeCamadas.CAMADAS,i3GEO.configura.sid,i3GEO.configura.locaplic); | 1428 | i3GEO.arvoreDeCamadas.cria("",i3GEO.arvoreDeCamadas.CAMADAS,i3GEO.configura.sid,i3GEO.configura.locaplic); |
| 1426 | if(i3GEO.arvoreDeCamadas.MOSTRALISTAKML === true) | 1429 | if(i3GEO.arvoreDeCamadas.MOSTRALISTAKML === true) |
| 1427 | {i3GEO.Interface.googlemaps.adicionaListaKml();} | 1430 | {i3GEO.Interface.googlemaps.adicionaListaKml();} |
| @@ -2086,7 +2089,8 @@ i3GEO.Interface = { | @@ -2086,7 +2089,8 @@ i3GEO.Interface = { | ||
| 2086 | i3GEO.barraDeBotoes.INCLUIBOTAO.pan = false; | 2089 | i3GEO.barraDeBotoes.INCLUIBOTAO.pan = false; |
| 2087 | i3GEO.barraDeBotoes.INCLUIBOTAO.zoomtot = false; | 2090 | i3GEO.barraDeBotoes.INCLUIBOTAO.zoomtot = false; |
| 2088 | i3GEO.Interface.IDMAPA = "i3GeoMap3d"; | 2091 | i3GEO.Interface.IDMAPA = "i3GeoMap3d"; |
| 2089 | - i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googleearth.ligaDesliga(this)"; | 2092 | + if(i3GEO.arvoreDeCamadas.ATIVATEMA === "") |
| 2093 | + {i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googleearth.ligaDesliga(this)";} | ||
| 2090 | i = $i(i3GEO.Interface.IDCORPO); | 2094 | i = $i(i3GEO.Interface.IDCORPO); |
| 2091 | if(i){ | 2095 | if(i){ |
| 2092 | i3GeoMap3d = document.createElement("div"); | 2096 | i3GeoMap3d = document.createElement("div"); |