Commit 61ae6b6c7a028d8535e32792c58010eefc61e3b4

Authored by Edmar Moretti
1 parent 560e4134

Revisão dos códigos da interface Google Maps

aplicmap/geral.htm
@@ -215,6 +215,9 @@ i3GEO.barraDeBotoes.AUTO = true //as barras de botões serão construídas automati @@ -215,6 +215,9 @@ i3GEO.barraDeBotoes.AUTO = true //as barras de botões serão construídas automati
215 215
216 i3GEO.idioma.IDSELETOR = "seletorIdiomas" 216 i3GEO.idioma.IDSELETOR = "seletorIdiomas"
217 i3GEO.interface.ATIVAMENUCONTEXTO = true; 217 i3GEO.interface.ATIVAMENUCONTEXTO = true;
  218 +
  219 +//i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml = "";
  220 +
218 i3GEO.inicia(); 221 i3GEO.inicia();
219 // 222 //
220 //inclui um tema via javascript 223 //inclui um tema via javascript
classesjs/classe_arvoredecamadas.js
@@ -596,11 +596,15 @@ i3GEO.arvoreDeCamadas = { @@ -596,11 +596,15 @@ i3GEO.arvoreDeCamadas = {
596 //exclui tema 596 //exclui tema
597 if(DDM.getDDById(id).id === "i3geo_lixeira"){ 597 if(DDM.getDDById(id).id === "i3geo_lixeira"){
598 if(i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true){ 598 if(i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true){
599 - i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1")); 599 + tema = (this.getEl()).id.split("arrastar_")[1];
  600 + i3GEO.tema.exclui(tema);
  601 + /*
  602 + i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1"));
600 tema = (this.getEl()).id.split("arrastar_")[1]; 603 tema = (this.getEl()).id.split("arrastar_")[1];
601 i3GEO.contadorAtualiza++; 604 i3GEO.contadorAtualiza++;
602 i3GEO.php.excluitema(i3GEO.atualiza,tema); 605 i3GEO.php.excluitema(i3GEO.atualiza,tema);
603 i3GEO.mapa.ativaTema(""); 606 i3GEO.mapa.ativaTema("");
  607 + */
604 } 608 }
605 } 609 }
606 //muda ordem de desenho do tema 610 //muda ordem de desenho do tema
@@ -748,9 +752,7 @@ i3GEO.arvoreDeCamadas = { @@ -748,9 +752,7 @@ i3GEO.arvoreDeCamadas = {
748 if(i3GEO.Interface.ATUAL !== "flamingo") 752 if(i3GEO.Interface.ATUAL !== "flamingo")
749 {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node);} 753 {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node);}
750 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t24"),$trad("t25"),'i3GEO.tema.dialogo.toponimia(\"'+ltema.name+'\")',node); 754 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t24"),$trad("t25"),'i3GEO.tema.dialogo.toponimia(\"'+ltema.name+'\")',node);
751 - if(i3GEO.Interface.ATUAL === "padrao"){  
752 - i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node);  
753 - } 755 + i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node);
754 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node); 756 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node);
755 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node); 757 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node);
756 if(i3GEO.parametros.versaoms > 4){ 758 if(i3GEO.parametros.versaoms > 4){
@@ -760,7 +762,9 @@ i3GEO.arvoreDeCamadas = { @@ -760,7 +762,9 @@ i3GEO.arvoreDeCamadas = {
760 if (ltema.type < 4){ 762 if (ltema.type < 4){
761 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node); 763 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node);
762 } 764 }
763 - i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node); 765 + if(i3GEO.Interface.ATUAL !== "googlemaps"){
  766 + i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node);
  767 + }
764 if(i3GEO.Interface.ATUAL !== "padrao"){ 768 if(i3GEO.Interface.ATUAL !== "padrao"){
765 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node); 769 i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t42"),$trad("t42"),'i3GEO.tema.dialogo.cortina(\"'+ltema.name+'\")',node);
766 } 770 }
classesjs/classe_configura.js
@@ -434,9 +434,9 @@ i3GEO.configura = { @@ -434,9 +434,9 @@ i3GEO.configura = {
434 "pan": 434 "pan":
435 {ff:"/imagens/cursores/pan.png",ie:"/imagens/cursores/pan.cur"}, 435 {ff:"/imagens/cursores/pan.png",ie:"/imagens/cursores/pan.cur"},
436 "area": 436 "area":
437 - {ff:"/imagens/cursores/area.png",ie:"crosshair"}, 437 + {ff:"crosshair",ie:"crosshair"},
438 "distancia": 438 "distancia":
439 - {ff:"/imagens/cursores/distancia.png",ie:"crosshair"}, 439 + {ff:"crosshair",ie:"crosshair"},
440 "zoom": 440 "zoom":
441 {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"}, 441 {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"},
442 "contexto": 442 "contexto":
@@ -647,6 +647,7 @@ i3GEO.configura = { @@ -647,6 +647,7 @@ i3GEO.configura = {
647 i3GEO.barraDeBotoes.BOTAOPADRAO = "pan"; 647 i3GEO.barraDeBotoes.BOTAOPADRAO = "pan";
648 if(i3GEO.Interface.ATUAL === "googlemaps"){ 648 if(i3GEO.Interface.ATUAL === "googlemaps"){
649 i3GeoMap.setOptions({draggable:true}); 649 i3GeoMap.setOptions({draggable:true});
  650 + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic);
650 return; 651 return;
651 } 652 }
652 if($i(i3GEO.Interface.IDMAPA)){ 653 if($i(i3GEO.Interface.IDMAPA)){
@@ -791,7 +792,7 @@ i3GEO.configura = { @@ -791,7 +792,7 @@ i3GEO.configura = {
791 if($i(i3GEO.Interface.IDMAPA)){ 792 if($i(i3GEO.Interface.IDMAPA)){
792 $i(i3GEO.Interface.IDMAPA).title = ""; 793 $i(i3GEO.Interface.IDMAPA).title = "";
793 temp = "identifica"; 794 temp = "identifica";
794 - if(i3GEO.Interface.ATIVAMENUCONTEXTO) 795 + if(i3GEO.Interface.ATIVAMENUCONTEXTO && i3GEO.Interface.ATUAL !== "googlemaps")
795 {temp = "identifica_contexto";} 796 {temp = "identifica_contexto";}
796 i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); 797 i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic);
797 } 798 }
classesjs/classe_gadgets.js
@@ -49,7 +49,11 @@ i3GEO.gadgets = { @@ -49,7 +49,11 @@ i3GEO.gadgets = {
49 49
50 Você pode acessar os parâmetros da seguinte forma: 50 Você pode acessar os parâmetros da seguinte forma:
51 51
52 - i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.deslocaEsquerda = 400 52 + i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.deslocaEsquerda = 400;
  53 +
  54 + Para evitar o funcionamento de um gadget experimente utilizar o seguinte exemplo:
  55 +
  56 + i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml = "";
53 57
54 Default: 58 Default:
55 59
@@ -355,8 +359,14 @@ i3GEO.gadgets = { @@ -355,8 +359,14 @@ i3GEO.gadgets = {
355 } 359 }
356 if(arguments.length === 1) 360 if(arguments.length === 1)
357 {e.value = escala;} 361 {e.value = escala;}
358 - else  
359 - {e.value = parseInt(i3GEO.parametros.mapscale,10);} 362 + else{
  363 + if(i3GEO.parametros.mapscale != ""){
  364 + e.value = parseInt(i3GEO.parametros.mapscale,10);
  365 + }
  366 + else{
  367 + e.value = 0;
  368 + }
  369 + }
360 }; 370 };
361 if(!$i("i3geo_escalanum")){ 371 if(!$i("i3geo_escalanum")){
362 i = $inputText(id,"155","i3geo_escalanum",$trad("d10"),"15",parseInt(i3GEO.parametros.mapscale,10)); 372 i = $inputText(id,"155","i3geo_escalanum",$trad("d10"),"15",parseInt(i3GEO.parametros.mapscale,10));
classesjs/classe_interface.js
@@ -1376,19 +1376,25 @@ i3GEO.Interface = { @@ -1376,19 +1376,25 @@ i3GEO.Interface = {
1376 }, 1376 },
1377 recalcPar: function(){ 1377 recalcPar: function(){
1378 try{ 1378 try{
1379 - var bounds,sw,ne; 1379 + var bounds,
  1380 + sw,
  1381 + ne,
  1382 + escalaAtual = i3GEO.parametros.mapscale;
1380 g_operacao = ""; 1383 g_operacao = "";
1381 g_tipoacao = ""; 1384 g_tipoacao = "";
1382 sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,i3GEO.parametros.h)); 1385 sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,i3GEO.parametros.h));
1383 ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(i3GEO.parametros.w,0)); 1386 ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(i3GEO.parametros.w,0));
1384 i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat(); 1387 i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat();
1385 i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala(); 1388 i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala();
  1389 + //alert(i3GEO.parametros.mapscale)
1386 sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,1)); 1390 sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,1));
1387 ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(1,0)); 1391 ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(1,0));
1388 -  
1389 i3GEO.parametros.pixelsize = sw.lng() - ne.lng(); 1392 i3GEO.parametros.pixelsize = sw.lng() - ne.lng();
1390 if(i3GEO.parametros.pixelsize < 0) 1393 if(i3GEO.parametros.pixelsize < 0)
1391 {i3GEO.parametros.pixelsize = i3GEO.parametros.pixelsize * -1;} 1394 {i3GEO.parametros.pixelsize = i3GEO.parametros.pixelsize * -1;}
  1395 +
  1396 + if (i3GEO.parametros.mapscale !== escalaAtual && escalaAtual !== 0)
  1397 + {i3GEO.arvoreDeCamadas.atualizaFarol(i3GEO.parametros.mapscale);}
1392 } 1398 }
1393 catch(e){ 1399 catch(e){
1394 i3GEO.parametros.mapexten = "0 0 0 0"; 1400 i3GEO.parametros.mapexten = "0 0 0 0";
@@ -1422,7 +1428,7 @@ i3GEO.Interface = { @@ -1422,7 +1428,7 @@ i3GEO.Interface = {
1422 i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); 1428 i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne));
1423 }, 1429 },
1424 pan2ponto: function(x,y){ 1430 pan2ponto: function(x,y){
1425 - i3GeoMap.panTo(new google.maps.LatLng(x,y)); 1431 + i3GeoMap.panTo(new google.maps.LatLng(y,x));
1426 }, 1432 },
1427 /* 1433 /*
1428 Function: adicionaKml 1434 Function: adicionaKml
classesjs/classe_tema.js
@@ -50,24 +50,28 @@ i3GEO.tema = { @@ -50,24 +50,28 @@ i3GEO.tema = {
50 //remove o tema do DOM e seus filhos 50 //remove o tema do DOM e seus filhos
51 var layer, 51 var layer,
52 indice, 52 indice,
  53 + p;
  54 + try{
53 p = document.getElementById("idx"+tema).parentNode.parentNode.parentNode; 55 p = document.getElementById("idx"+tema).parentNode.parentNode.parentNode;
54 - do  
55 - {p.removeChild(p.childNodes[0]);}  
56 - while  
57 - (p.childNodes.length > 0);  
58 - p.parentNode.removeChild(p); 56 + do
  57 + {p.removeChild(p.childNodes[0]);}
  58 + while
  59 + (p.childNodes.length > 0);
  60 + p.parentNode.removeChild(p);
  61 + }
  62 + catch(e){}
59 i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); 63 i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));
60 i3GEO.contadorAtualiza++; 64 i3GEO.contadorAtualiza++;
  65 + if(i3GEO.Interface.ATUAL === "googlemaps"){
  66 + indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(tema);
  67 + i3GeoMap.overlayMapTypes.removeAt(indice);
  68 + }
61 i3GEO.php.excluitema(i3GEO.atualiza,tema); 69 i3GEO.php.excluitema(i3GEO.atualiza,tema);
62 i3GEO.mapa.ativaTema(""); 70 i3GEO.mapa.ativaTema("");
63 if(i3GEO.Interface.ATUAL === "openlayers"){ 71 if(i3GEO.Interface.ATUAL === "openlayers"){
64 layer = i3geoOL.getLayersByName(tema)[0]; 72 layer = i3geoOL.getLayersByName(tema)[0];
65 i3geoOL.removeLayer(layer); 73 i3geoOL.removeLayer(layer);
66 } 74 }
67 - if(i3GEO.Interface.ATUAL === "googlemaps"){  
68 - indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(tema);  
69 - i3GeoMap.overlayMapTypes.removeAt(indice);  
70 - }  
71 }, 75 },
72 /* 76 /*
73 Function: fonte 77 Function: fonte
classesjs/classe_util.js
@@ -488,34 +488,45 @@ i3GEO.util = { @@ -488,34 +488,45 @@ i3GEO.util = {
488 i, 488 i,
489 c, 489 c,
490 n, 490 n,
491 - layers; 491 + layers,
  492 + cursor;
492 // 493 //
493 //no caso da interface openlayers, o cursor deve ser definido no estilo 494 //no caso da interface openlayers, o cursor deve ser definido no estilo
494 //do elemento img de cada TILE de cada LAYER 495 //do elemento img de cada TILE de cada LAYER
495 //para achar os img faz-se a busca pela classe css utilizada pelo OpenLayers nos img desse tipo 496 //para achar os img faz-se a busca pela classe css utilizada pelo OpenLayers nos img desse tipo
496 // 497 //
497 - if(i3GEO.Interface.ATUAL === "openlayers"){  
498 - os = YAHOO.util.Dom.getElementsByClassName('olTileImage', 'img');  
499 - }  
500 - else  
501 - {os.push(document.getElementById(idobjeto));}  
502 - n = os.length;  
503 - for(i=0;i<n;i++){  
504 - o = os[i]; 498 + try{
  499 + os.push(document.getElementById(idobjeto));
  500 + if(i3GEO.Interface.ATUAL === "openlayers"){
  501 + os = YAHOO.util.Dom.getElementsByClassName('olTileImage', 'img');
  502 + }
  503 + if(i3GEO.Interface.ATUAL === "googlemaps"){
  504 + os = document.getElementById(idobjeto).firstChild;
  505 + os = os.getElementsByTagName("div");
  506 + }
  507 + n = os.length;
505 if(tipo === "default" || tipo === "pointer" || tipo === "crosshair" || tipo === "help" || tipo === "move" || tipo === "text") 508 if(tipo === "default" || tipo === "pointer" || tipo === "crosshair" || tipo === "help" || tipo === "move" || tipo === "text")
506 - {o.style.cursor = tipo;} 509 + {cursor = tipo;}
507 else{ 510 else{
508 - c = eval("cursores."+tipo+".ie");  
509 - if(o){  
510 - if(navm){  
511 - o.style.cursor = "URL(\""+locaplic+eval("cursores."+tipo+".ie")+"\"),auto";  
512 - }  
513 - else{  
514 - o.style.cursor = "URL(\""+locaplic+eval("cursores."+tipo+".ff")+"\"),auto";  
515 - } 511 + if(navm){
  512 + cursor = "URL(\""+locaplic+eval("cursores."+tipo+".ie")+"\"),auto";
  513 + c = eval("cursores."+tipo+".ie");
516 } 514 }
  515 + else{
  516 + cursor = "URL(\""+locaplic+eval("cursores."+tipo+".ff")+"\"),auto";
  517 + c = eval("cursores."+tipo+".ff");
  518 + }
  519 + }
  520 + //testa novamente
  521 + if(c === "default" || c === "pointer" || c === "crosshair" || c === "help" || c === "move" || c === "text")
  522 + {cursor = c;}
  523 + for(i=0;i<n;i++){
  524 + o = os[i];
  525 + if(o)
  526 + {o.style.cursor = cursor;}
517 } 527 }
518 } 528 }
  529 + catch(e){}
519 }, 530 },
520 /* 531 /*
521 Function: criaBox 532 Function: criaBox
classesjs/dicionario.js
@@ -152,7 +152,7 @@ it:&quot;Proprietà&quot; @@ -152,7 +152,7 @@ it:&quot;Proprietà&quot;
152 //submenus 152 //submenus
153 "u1": [ 153 "u1": [
154 { 154 {
155 -pt: "Sobre o I3Geo", 155 +pt: "Sobre o i3Geo",
156 en:"About", 156 en:"About",
157 es:"Sobre I3Geo", 157 es:"Sobre I3Geo",
158 it:"Informazioni WebGis" 158 it:"Informazioni WebGis"
classesphp/classe_alteraclasse.php
@@ -44,7 +44,7 @@ class Alteraclasse @@ -44,7 +44,7 @@ class Alteraclasse
44 44
45 Objeto mapa 45 Objeto mapa
46 */ 46 */
47 - protected $mapa; 47 + public $mapa;
48 /* 48 /*
49 Variavel: $arquivo 49 Variavel: $arquivo
50 50
classesphp/classe_atributos.php
@@ -44,7 +44,7 @@ class Atributos @@ -44,7 +44,7 @@ class Atributos
44 44
45 Objeto mapa 45 Objeto mapa
46 */ 46 */
47 - protected $mapa; 47 + public $mapa;
48 /* 48 /*
49 Variavel: $arquivo 49 Variavel: $arquivo
50 50
@@ -92,10 +92,12 @@ $ext - (opcional) extensão geográfica que será aplicada ao mapa @@ -92,10 +92,12 @@ $ext - (opcional) extensão geográfica que será aplicada ao mapa
92 $this->mapa = ms_newMapObj($map_file); 92 $this->mapa = ms_newMapObj($map_file);
93 $this->arquivo = $map_file; 93 $this->arquivo = $map_file;
94 if($tema != "" && @$this->mapa->getlayerbyname($tema)) 94 if($tema != "" && @$this->mapa->getlayerbyname($tema))
95 - $this->layer = $this->mapa->getlayerbyname($tema);  
96 - if($this->layer->getProjection() == "" )  
97 - {$this->layer->setProjection("init=epsg:4291");}  
98 - $this->nome = $tema; 95 + {
  96 + $this->layer = $this->mapa->getlayerbyname($tema);
  97 + if($this->layer->getProjection() == "" )
  98 + {$this->layer->setProjection("init=epsg:4291");}
  99 + $this->nome = $tema;
  100 + }
99 if($ext && $ext != ""){ 101 if($ext && $ext != ""){
100 $e = explode(" ",$ext); 102 $e = explode(" ",$ext);
101 $extatual = $this->mapa->extent; 103 $extatual = $this->mapa->extent;
classesphp/mapa_controle.php
@@ -1192,7 +1192,14 @@ Muda a extensão geográfica do mapa de acordo com a abrangência de um tema. @@ -1192,7 +1192,14 @@ Muda a extensão geográfica do mapa de acordo com a abrangência de um tema.
1192 include_once("classe_temas.php"); 1192 include_once("classe_temas.php");
1193 copiaSeguranca($map_file); 1193 copiaSeguranca($map_file);
1194 $m = new Temas($map_file,$tema); 1194 $m = new Temas($map_file,$tema);
  1195 + if($interface == "googlemaps")
  1196 + {
  1197 + $projMapa = $m->mapa->getProjection();
  1198 + $m->mapa->setProjection("init=epsg:4291");
  1199 + }
1195 $m->zoomTema(); 1200 $m->zoomTema();
  1201 + if($interface == "googlemaps")
  1202 + {$m->mapa->setProjection($projMapa);}
1196 $m->salva(); 1203 $m->salva();
1197 redesenhaMapa(); 1204 redesenhaMapa();
1198 break; 1205 break;
@@ -1207,7 +1214,14 @@ Muda a extensão geográfica do mapa de acordo com a abrangência dos elementos sel @@ -1207,7 +1214,14 @@ Muda a extensão geográfica do mapa de acordo com a abrangência dos elementos sel
1207 include_once("classe_temas.php"); 1214 include_once("classe_temas.php");
1208 copiaSeguranca($map_file); 1215 copiaSeguranca($map_file);
1209 $m = new Temas($map_file,$tema); 1216 $m = new Temas($map_file,$tema);
  1217 + if($interface == "googlemaps")
  1218 + {
  1219 + $projMapa = $m->mapa->getProjection();
  1220 + $m->mapa->setProjection("init=epsg:4291");
  1221 + }
1210 $m->zoomSel(); 1222 $m->zoomSel();
  1223 + if($interface == "googlemaps")
  1224 + {$m->mapa->setProjection($projMapa);}
1211 $m->salva(); 1225 $m->salva();
1212 redesenhaMapa(); 1226 redesenhaMapa();
1213 break; 1227 break;
@@ -1340,6 +1354,11 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa @@ -1340,6 +1354,11 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa
1340 include_once("classe_alteraclasse.php"); 1354 include_once("classe_alteraclasse.php");
1341 copiaSeguranca($map_file); 1355 copiaSeguranca($map_file);
1342 $m = new Alteraclasse($map_file,$tema,"",$ext); 1356 $m = new Alteraclasse($map_file,$tema,"",$ext);
  1357 + if($interface == "googlemaps")
  1358 + {
  1359 + $projMapa = $m->mapa->getProjection();
  1360 + $m->mapa->setProjection("init=epsg:4291");
  1361 + }
1343 if ($opcao == "adicionaclasse") 1362 if ($opcao == "adicionaclasse")
1344 {$retorno = $m->adicionaclasse();} 1363 {$retorno = $m->adicionaclasse();}
1345 if ($opcao == "valorunico") 1364 if ($opcao == "valorunico")
@@ -1358,6 +1377,8 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa @@ -1358,6 +1377,8 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa
1358 } 1377 }
1359 if ($opcao == "simbolounico") 1378 if ($opcao == "simbolounico")
1360 {$retorno = $m->simbolounico();} 1379 {$retorno = $m->simbolounico();}
  1380 + if($interface == "googlemaps")
  1381 + {$m->mapa->setProjection($projMapa);}
1361 $salvo = $m->salva(); 1382 $salvo = $m->salva();
1362 break; 1383 break;
1363 /* 1384 /*
@@ -1968,6 +1989,8 @@ Procura valores em uma tabela que aderem a uma palavra de busca. @@ -1968,6 +1989,8 @@ Procura valores em uma tabela que aderem a uma palavra de busca.
1968 include_once("classe_atributos.php"); 1989 include_once("classe_atributos.php");
1969 if(!isset($tema)){$tema = "";} 1990 if(!isset($tema)){$tema = "";}
1970 $m = new Atributos($map_file,$tema,"",$ext); 1991 $m = new Atributos($map_file,$tema,"",$ext);
  1992 + if($interface == "googlemaps")
  1993 + {$m->mapa->setProjection("init=epsg:4291");}
1971 $retorno = $m->buscaRegistros($palavra,$lista,$tipo,$onde); 1994 $retorno = $m->buscaRegistros($palavra,$lista,$tipo,$onde);
1972 break; 1995 break;
1973 /* 1996 /*
@@ -1983,8 +2006,19 @@ Identifica elementos no mapa. @@ -1983,8 +2006,19 @@ Identifica elementos no mapa.
1983 if (!isset($tema)){$tema = "";} 2006 if (!isset($tema)){$tema = "";}
1984 if (!isset($resolucao)){$resolucao = 5;} 2007 if (!isset($resolucao)){$resolucao = 5;}
1985 include_once("classe_atributos.php"); 2008 include_once("classe_atributos.php");
1986 - $m = new Atributos($map_file,$tema); 2009 + $m = new Atributos($map_file,$tema);
  2010 + if($interface == "googlemaps")
  2011 + {
  2012 + $projMapa = $m->mapa->getProjection();
  2013 + $m->mapa->setProjection("init=epsg:4291");
  2014 + $m->salva();
  2015 + }
1987 $retorno = $m->identifica($opcao,$xy,$resolucao); 2016 $retorno = $m->identifica($opcao,$xy,$resolucao);
  2017 + if($interface == "googlemaps")
  2018 + {
  2019 + $m->mapa->setProjection($projMapa);
  2020 + $m->salva();
  2021 + }
1988 break; 2022 break;
1989 /* 2023 /*
1990 Valor: IDENTIFICA2 2024 Valor: IDENTIFICA2
@@ -1999,15 +2033,21 @@ Identifica elementos no mapa. @@ -1999,15 +2033,21 @@ Identifica elementos no mapa.
1999 include_once("classe_atributos.php"); 2033 include_once("classe_atributos.php");
2000 if(!isset($ext)) 2034 if(!isset($ext))
2001 {$ext = "";} 2035 {$ext = "";}
2002 - if(isset($ext) && $ext != "" && $interface == "googlemaps")  
2003 - {  
2004 - $ext = projetaExt($map_file,$ext);  
2005 - $xy = projetaExt($map_file,$xy,",");  
2006 - }  
2007 $m = new Atributos($map_file,$tema,"",$ext); 2036 $m = new Atributos($map_file,$tema,"",$ext);
  2037 + if($interface == "googlemaps")
  2038 + {
  2039 + $projMapa = $m->mapa->getProjection();
  2040 + $m->mapa->setProjection("init=epsg:4291");
  2041 + $m->salva();
  2042 + }
2008 $retorno = $m->identifica2($opcao,$xy,$resolucao,$ext,$listaDeTemas); 2043 $retorno = $m->identifica2($opcao,$xy,$resolucao,$ext,$listaDeTemas);
  2044 + if($interface == "googlemaps")
  2045 + {
  2046 + $m->mapa->setProjection($projMapa);
  2047 + $m->salva();
  2048 + }
  2049 +
2009 break; 2050 break;
2010 -  
2011 /* 2051 /*
2012 Valor: IDENTIFICAUNICO 2052 Valor: IDENTIFICAUNICO
2013 2053
ferramentas/cortina/index.js.php
@@ -135,7 +135,7 @@ i3GEOF.cortina = { @@ -135,7 +135,7 @@ i3GEOF.cortina = {
135 catch(e){} 135 catch(e){}
136 } 136 }
137 if(i3GEO.Interface.ATUAL === "googlemaps"){ 137 if(i3GEO.Interface.ATUAL === "googlemaps"){
138 - var divlayer = i3GEO.Interface.googlemaps.retornaDivLayer(i3GEO.temaAtivo); 138 + var estilo = (i3GEO.Interface.googlemaps.retornaDivLayer(i3GEO.temaAtivo)).style;
139 if(navm) 139 if(navm)
140 {estilo.clip = "rect(0px,"+i3GEO.parametros.w+"px,"+i3GEO.parametros.h+"px,0px)";} 140 {estilo.clip = "rect(0px,"+i3GEO.parametros.w+"px,"+i3GEO.parametros.h+"px,0px)";}
141 else 141 else
ferramentas/identifica/index.js.php
@@ -209,6 +209,10 @@ i3GEOF.identifica = { @@ -209,6 +209,10 @@ i3GEOF.identifica = {
209 var i = $i("i3GEOF.identifica_c").style; 209 var i = $i("i3GEOF.identifica_c").style;
210 i3GEO.janela.ULTIMOZINDEX++; 210 i3GEO.janela.ULTIMOZINDEX++;
211 i.zIndex = 10000 + i3GEO.janela.ULTIMOZINDEX; 211 i.zIndex = 10000 + i3GEO.janela.ULTIMOZINDEX;
  212 + temp = "identifica";
  213 + if(i3GEO.Interface.ATIVAMENUCONTEXTO && i3GEO.Interface.ATUAL !== "googlemaps")
  214 + {temp = "identifica_contexto";}
  215 + i3GEO.util.mudaCursor(i3GEO.configura.cursores,temp,i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic);
212 }, 216 },
213 /* 217 /*
214 Function: html 218 Function: html
ferramentas/linhadotempo/index.php
@@ -17,6 +17,7 @@ Timeline_parameters=&#39;bundle=true&#39;; @@ -17,6 +17,7 @@ Timeline_parameters=&#39;bundle=true&#39;;
17 <body name="ancora" onload="inicializa()" onresize="onResize()"> 17 <body name="ancora" onload="inicializa()" onresize="onResize()">
18 <p class=paragrafo >Escolha o tema para gerar a linha do tempo:</p> 18 <p class=paragrafo >Escolha o tema para gerar a linha do tempo:</p>
19 <div class=paragrafo id="combotemas" ></div> 19 <div class=paragrafo id="combotemas" ></div>
  20 +<div class=paragrafo id="totaleventos" style="position:absolute;top:30px;left:200px;"></div>
20 <div class=paragrafo id="tl" style="height: 220px; border: 1px solid #aaa;overflow-x:hidden; overflow-y:scroll"> </div> 21 <div class=paragrafo id="tl" style="height: 220px; border: 1px solid #aaa;overflow-x:hidden; overflow-y:scroll"> </div>
21 22
22 <script> 23 <script>
@@ -169,6 +170,7 @@ function carregaDados(){ @@ -169,6 +170,7 @@ function carregaDados(){
169 tl_el.innerHTML = "<span style=color:red; >Aguarde...</span>"; 170 tl_el.innerHTML = "<span style=color:red; >Aguarde...</span>";
170 var retorna = function(retorno){ 171 var retorna = function(retorno){
171 //eventSource1.clear(); 172 //eventSource1.clear();
  173 + $i("totaleventos").innerHTML = retorno.data.events.length+" eventos";
172 tl = Timeline.create(tl_el, bandInfos, Timeline.HORIZONTAL); 174 tl = Timeline.create(tl_el, bandInfos, Timeline.HORIZONTAL);
173 eventSource1.loadJSON(retorno.data, '.'); // The data was stored into the 175 eventSource1.loadJSON(retorno.data, '.'); // The data was stored into the
174 tl.layout(); // display the Timeline 176 tl.layout(); // display the Timeline
ferramentas/opcoes_fundo/index.js.php
@@ -106,7 +106,7 @@ i3GEOF.opcoesFundo = { @@ -106,7 +106,7 @@ i3GEOF.opcoesFundo = {
106 i3GEO.janela.minimiza("i3GEOF.opcoesFundo"); 106 i3GEO.janela.minimiza("i3GEOF.opcoesFundo");
107 }; 107 };
108 //cria a janela flutuante 108 //cria a janela flutuante
109 - titulo = "Cor do fundo do mapa <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=6' >&nbsp;&nbsp;&nbsp;</a>"; 109 + titulo = "Cor do fundo <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=6' >&nbsp;&nbsp;&nbsp;</a>";
110 janela = i3GEO.janela.cria( 110 janela = i3GEO.janela.cria(
111 "210px", 111 "210px",
112 "80px", 112 "80px",
imagens/logo_inicio.png

32.8 KB | W: | H:

33.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
menutemas/admin.db
No preview for this file type
ms_configura.php
@@ -374,7 +374,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;)) @@ -374,7 +374,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == &#39;WIN&#39;))
374 Tipo: 374 Tipo:
375 {string} 375 {string}
376 */ 376 */
377 - $interfacePadrao = "openlayers.htm"; 377 + $interfacePadrao = "googlemaps.phtml";
378 } 378 }
379 else //se for linux 379 else //se for linux
380 { 380 {