Commit f587489b9c4c5b07d143af40b1ecca60285cd067

Authored by Edmar Moretti
1 parent cd6b0133

--no commit message

ferramentas/editorol/editorol.js
@@ -1106,12 +1106,14 @@ i3GEO.editorOL = @@ -1106,12 +1106,14 @@ i3GEO.editorOL =
1106 temp.className = "editorOLlinhaItemInactive olButton"; 1106 temp.className = "editorOLlinhaItemInactive olButton";
1107 temp.title = $trad("dlinha"); 1107 temp.title = $trad("dlinha");
1108 temp.onclick = function(){ 1108 temp.onclick = function(){
  1109 + i3GEO.eventos.cliquePerm.desativa();
1109 i3GEO.editorOL.marcaBotao("editorOLlinha"); 1110 i3GEO.editorOL.marcaBotao("editorOLlinha");
1110 var draw = new ol.interaction.Draw({ 1111 var draw = new ol.interaction.Draw({
1111 type : "LineString" 1112 type : "LineString"
1112 }); 1113 });
1113 //adiciona a interacao para poder ser removida 1114 //adiciona a interacao para poder ser removida
1114 i3GEO.editorOL.interacoes.push(draw); 1115 i3GEO.editorOL.interacoes.push(draw);
  1116 + //desativa ol.interaction.DoubleClickZoom
1115 i3GEO.Interface.openlayers.interacoes[0].setActive(false); 1117 i3GEO.Interface.openlayers.interacoes[0].setActive(false);
1116 draw.on("drawend", function(evt) { 1118 draw.on("drawend", function(evt) {
1117 evt.feature.setStyle( 1119 evt.feature.setStyle(
@@ -1138,10 +1140,12 @@ i3GEO.editorOL = @@ -1138,10 +1140,12 @@ i3GEO.editorOL =
1138 } 1140 }
1139 //TODO falta definir imagem 1141 //TODO falta definir imagem
1140 if (botoes.ponto === true) { 1142 if (botoes.ponto === true) {
  1143 + i3GEO.eventos.cliquePerm.desativa();
1141 temp = document.createElement("div"); 1144 temp = document.createElement("div");
1142 temp.className = "editorOLpontoItemInactive olButton"; 1145 temp.className = "editorOLpontoItemInactive olButton";
1143 temp.title = $trad("dponto"); 1146 temp.title = $trad("dponto");
1144 temp.onclick = function(){ 1147 temp.onclick = function(){
  1148 + i3GEO.eventos.cliquePerm.desativa();
1145 i3GEO.editorOL.marcaBotao("editorOLponto"); 1149 i3GEO.editorOL.marcaBotao("editorOLponto");
1146 var draw = new ol.interaction.Draw({ 1150 var draw = new ol.interaction.Draw({
1147 type : "Point" 1151 type : "Point"
@@ -1176,6 +1180,7 @@ i3GEO.editorOL = @@ -1176,6 +1180,7 @@ i3GEO.editorOL =
1176 i3GEOpanelEditor.appendChild(temp); 1180 i3GEOpanelEditor.appendChild(temp);
1177 } 1181 }
1178 if (botoes.poligono === true) { 1182 if (botoes.poligono === true) {
  1183 + i3GEO.eventos.cliquePerm.desativa();
1179 temp = document.createElement("div"); 1184 temp = document.createElement("div");
1180 temp.className = "editorOLpoligonoItemInactive olButton"; 1185 temp.className = "editorOLpoligonoItemInactive olButton";
1181 temp.title = $trad("dpoligono"); 1186 temp.title = $trad("dpoligono");
ferramentas/identifica/index.js
@@ -434,7 +434,7 @@ i3GEOF.identifica = @@ -434,7 +434,7 @@ i3GEOF.identifica =
434 */ 434 */
435 ativaFoco : function(id) { 435 ativaFoco : function(id) {
436 i3GEOF.identifica.listaTemas("ligados"); 436 i3GEOF.identifica.listaTemas("ligados");
437 - i3GEO.util.mudaCursor(i3GEO.configura.cursores, temp, i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); 437 + i3GEO.util.mudaCursor(i3GEO.configura.cursores, "identifica", i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic);
438 // i3GEOF.identifica.mostraImagemPonto(id); 438 // i3GEOF.identifica.mostraImagemPonto(id);
439 }, 439 },
440 mostraImagemPonto : function(id) { 440 mostraImagemPonto : function(id) {
@@ -713,6 +713,7 @@ i3GEO.analise = @@ -713,6 +713,7 @@ i3GEO.analise =
713 * atributo "origem" Os raios e pontos sao sempre removidos 713 * atributo "origem" Os raios e pontos sao sempre removidos
714 */ 714 */
715 fechaJanela : function() { 715 fechaJanela : function() {
  716 + i3GEO.Interface.openlayers.interacoes[0].setActive(false);
716 var m = i3GEO.analise.medeDistancia.openlayers; 717 var m = i3GEO.analise.medeDistancia.openlayers;
717 ol.Observable.unByKey(m.featureListener); 718 ol.Observable.unByKey(m.featureListener);
718 m.featureListener = null; 719 m.featureListener = null;
@@ -1300,6 +1301,7 @@ i3GEO.analise = @@ -1300,6 +1301,7 @@ i3GEO.analise =
1300 * atributo "origem" Os raios e pontos sao sempre removidos 1301 * atributo "origem" Os raios e pontos sao sempre removidos
1301 */ 1302 */
1302 fechaJanela : function() { 1303 fechaJanela : function() {
  1304 + i3GEO.Interface.openlayers.interacoes[0].setActive(true);
1303 var m = i3GEO.analise.medeArea.openlayers; 1305 var m = i3GEO.analise.medeArea.openlayers;
1304 ol.Observable.unByKey(m.featureListener); 1306 ol.Observable.unByKey(m.featureListener);
1305 m.featureListener = null; 1307 m.featureListener = null;
js/configura.js
@@ -1382,6 +1382,7 @@ i3GEO.configura = @@ -1382,6 +1382,7 @@ i3GEO.configura =
1382 i3GEO.util.mudaCursor(i3GEO.configura.cursores, temp, i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); 1382 i3GEO.util.mudaCursor(i3GEO.configura.cursores, temp, i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic);
1383 } 1383 }
1384 i3GEO.barraDeBotoes.ativaIcone("identifica"); 1384 i3GEO.barraDeBotoes.ativaIcone("identifica");
  1385 + i3GEO.eventos.cliquePerm.desativa();
1385 if (i3GEO.eventos.cliquePerm.ativo === false) { 1386 if (i3GEO.eventos.cliquePerm.ativo === false) {
1386 // caso seja um clique para desativar 1387 // caso seja um clique para desativar
1387 if (i3GEO.eventos.MOUSECLIQUE.toString().search(i3GEO.configura.funcaoIdentifica) >= 0) { 1388 if (i3GEO.eventos.MOUSECLIQUE.toString().search(i3GEO.configura.funcaoIdentifica) >= 0) {
@@ -1428,6 +1429,7 @@ i3GEO.configura = @@ -1428,6 +1429,7 @@ i3GEO.configura =
1428 i3GEO.eventos.removeEventos("MOUSECLIQUEPERM",[i3GEO.configura.funcaoIdentifica]); 1429 i3GEO.eventos.removeEventos("MOUSECLIQUEPERM",[i3GEO.configura.funcaoIdentifica]);
1429 i3GEO.eventos.adicionaEventos("MOUSECLIQUEPERM",[i3GEO.configura.funcaoTip]); 1430 i3GEO.eventos.adicionaEventos("MOUSECLIQUEPERM",[i3GEO.configura.funcaoTip]);
1430 } 1431 }
  1432 + i3GEO.eventos.cliquePerm.ativa();
1431 } 1433 }
1432 }, 1434 },
1433 { 1435 {
js/interface.js
@@ -751,6 +751,9 @@ i3GEO.Interface = @@ -751,6 +751,9 @@ i3GEO.Interface =
751 if (p.classeCadeado === "i3GEOiconeAberto") { 751 if (p.classeCadeado === "i3GEOiconeAberto") {
752 removeBaloes(); 752 removeBaloes();
753 } 753 }
  754 + if (i3GEO.eventos.cliquePerm.ativo === false) {
  755 + return;
  756 + }
754 painel = document.createElement("div"); 757 painel = document.createElement("div");
755 painel.style.minWidth = p.minWidth; 758 painel.style.minWidth = p.minWidth;
756 painel.className = "ol-popup"; 759 painel.className = "ol-popup";