Commit 61ae6b6c7a028d8535e32792c58010eefc61e3b4
1 parent
560e4134
Exists in
master
and in
7 other branches
Revisão dos códigos da interface Google Maps
Showing
18 changed files
with
145 additions
and
58 deletions
Show diff stats
aplicmap/geral.htm
... | ... | @@ -215,6 +215,9 @@ i3GEO.barraDeBotoes.AUTO = true //as barras de botões serão construídas automati |
215 | 215 | |
216 | 216 | i3GEO.idioma.IDSELETOR = "seletorIdiomas" |
217 | 217 | i3GEO.interface.ATIVAMENUCONTEXTO = true; |
218 | + | |
219 | +//i3GEO.gadgets.PARAMETROS.mostraCoordenadasUTM.idhtml = ""; | |
220 | + | |
218 | 221 | i3GEO.inicia(); |
219 | 222 | // |
220 | 223 | //inclui um tema via javascript | ... | ... |
classesjs/classe_arvoredecamadas.js
... | ... | @@ -596,11 +596,15 @@ i3GEO.arvoreDeCamadas = { |
596 | 596 | //exclui tema |
597 | 597 | if(DDM.getDDById(id).id === "i3geo_lixeira"){ |
598 | 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 | 603 | tema = (this.getEl()).id.split("arrastar_")[1]; |
601 | 604 | i3GEO.contadorAtualiza++; |
602 | 605 | i3GEO.php.excluitema(i3GEO.atualiza,tema); |
603 | 606 | i3GEO.mapa.ativaTema(""); |
607 | + */ | |
604 | 608 | } |
605 | 609 | } |
606 | 610 | //muda ordem de desenho do tema |
... | ... | @@ -748,9 +752,7 @@ i3GEO.arvoreDeCamadas = { |
748 | 752 | if(i3GEO.Interface.ATUAL !== "flamingo") |
749 | 753 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node);} |
750 | 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 | 756 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node); |
755 | 757 | i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node); |
756 | 758 | if(i3GEO.parametros.versaoms > 4){ |
... | ... | @@ -760,7 +762,9 @@ i3GEO.arvoreDeCamadas = { |
760 | 762 | if (ltema.type < 4){ |
761 | 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 | 768 | if(i3GEO.Interface.ATUAL !== "padrao"){ |
765 | 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 | 434 | "pan": |
435 | 435 | {ff:"/imagens/cursores/pan.png",ie:"/imagens/cursores/pan.cur"}, |
436 | 436 | "area": |
437 | - {ff:"/imagens/cursores/area.png",ie:"crosshair"}, | |
437 | + {ff:"crosshair",ie:"crosshair"}, | |
438 | 438 | "distancia": |
439 | - {ff:"/imagens/cursores/distancia.png",ie:"crosshair"}, | |
439 | + {ff:"crosshair",ie:"crosshair"}, | |
440 | 440 | "zoom": |
441 | 441 | {ff:"/imagens/cursores/zoom.png",ie:"/imagens/cursores/zoom.cur"}, |
442 | 442 | "contexto": |
... | ... | @@ -647,6 +647,7 @@ i3GEO.configura = { |
647 | 647 | i3GEO.barraDeBotoes.BOTAOPADRAO = "pan"; |
648 | 648 | if(i3GEO.Interface.ATUAL === "googlemaps"){ |
649 | 649 | i3GeoMap.setOptions({draggable:true}); |
650 | + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pan",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); | |
650 | 651 | return; |
651 | 652 | } |
652 | 653 | if($i(i3GEO.Interface.IDMAPA)){ |
... | ... | @@ -791,7 +792,7 @@ i3GEO.configura = { |
791 | 792 | if($i(i3GEO.Interface.IDMAPA)){ |
792 | 793 | $i(i3GEO.Interface.IDMAPA).title = ""; |
793 | 794 | temp = "identifica"; |
794 | - if(i3GEO.Interface.ATIVAMENUCONTEXTO) | |
795 | + if(i3GEO.Interface.ATIVAMENUCONTEXTO && i3GEO.Interface.ATUAL !== "googlemaps") | |
795 | 796 | {temp = "identifica_contexto";} |
796 | 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 | 49 | |
50 | 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 | 58 | Default: |
55 | 59 | |
... | ... | @@ -355,8 +359,14 @@ i3GEO.gadgets = { |
355 | 359 | } |
356 | 360 | if(arguments.length === 1) |
357 | 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 | 371 | if(!$i("i3geo_escalanum")){ |
362 | 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 | 1376 | }, |
1377 | 1377 | recalcPar: function(){ |
1378 | 1378 | try{ |
1379 | - var bounds,sw,ne; | |
1379 | + var bounds, | |
1380 | + sw, | |
1381 | + ne, | |
1382 | + escalaAtual = i3GEO.parametros.mapscale; | |
1380 | 1383 | g_operacao = ""; |
1381 | 1384 | g_tipoacao = ""; |
1382 | 1385 | sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,i3GEO.parametros.h)); |
1383 | 1386 | ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(i3GEO.parametros.w,0)); |
1384 | 1387 | i3GEO.parametros.mapexten = sw.lng()+" "+sw.lat()+" "+ne.lng()+" "+ne.lat(); |
1385 | 1388 | i3GEO.parametros.mapscale = i3GEO.Interface.googlemaps.calcescala(); |
1389 | + //alert(i3GEO.parametros.mapscale) | |
1386 | 1390 | sw = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,1)); |
1387 | 1391 | ne = i3GeoMapOverlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(1,0)); |
1388 | - | |
1389 | 1392 | i3GEO.parametros.pixelsize = sw.lng() - ne.lng(); |
1390 | 1393 | if(i3GEO.parametros.pixelsize < 0) |
1391 | 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 | 1399 | catch(e){ |
1394 | 1400 | i3GEO.parametros.mapexten = "0 0 0 0"; |
... | ... | @@ -1422,7 +1428,7 @@ i3GEO.Interface = { |
1422 | 1428 | i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); |
1423 | 1429 | }, |
1424 | 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 | 1434 | Function: adicionaKml | ... | ... |
classesjs/classe_tema.js
... | ... | @@ -50,24 +50,28 @@ i3GEO.tema = { |
50 | 50 | //remove o tema do DOM e seus filhos |
51 | 51 | var layer, |
52 | 52 | indice, |
53 | + p; | |
54 | + try{ | |
53 | 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 | 63 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
60 | 64 | i3GEO.contadorAtualiza++; |
65 | + if(i3GEO.Interface.ATUAL === "googlemaps"){ | |
66 | + indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(tema); | |
67 | + i3GeoMap.overlayMapTypes.removeAt(indice); | |
68 | + } | |
61 | 69 | i3GEO.php.excluitema(i3GEO.atualiza,tema); |
62 | 70 | i3GEO.mapa.ativaTema(""); |
63 | 71 | if(i3GEO.Interface.ATUAL === "openlayers"){ |
64 | 72 | layer = i3geoOL.getLayersByName(tema)[0]; |
65 | 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 | 77 | Function: fonte | ... | ... |
classesjs/classe_util.js
... | ... | @@ -488,34 +488,45 @@ i3GEO.util = { |
488 | 488 | i, |
489 | 489 | c, |
490 | 490 | n, |
491 | - layers; | |
491 | + layers, | |
492 | + cursor; | |
492 | 493 | // |
493 | 494 | //no caso da interface openlayers, o cursor deve ser definido no estilo |
494 | 495 | //do elemento img de cada TILE de cada LAYER |
495 | 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 | 508 | if(tipo === "default" || tipo === "pointer" || tipo === "crosshair" || tipo === "help" || tipo === "move" || tipo === "text") |
506 | - {o.style.cursor = tipo;} | |
509 | + {cursor = tipo;} | |
507 | 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 | 532 | Function: criaBox | ... | ... |
classesjs/dicionario.js
classesphp/classe_alteraclasse.php
classesphp/classe_atributos.php
... | ... | @@ -44,7 +44,7 @@ class Atributos |
44 | 44 | |
45 | 45 | Objeto mapa |
46 | 46 | */ |
47 | - protected $mapa; | |
47 | + public $mapa; | |
48 | 48 | /* |
49 | 49 | Variavel: $arquivo |
50 | 50 | |
... | ... | @@ -92,10 +92,12 @@ $ext - (opcional) extensão geográfica que será aplicada ao mapa |
92 | 92 | $this->mapa = ms_newMapObj($map_file); |
93 | 93 | $this->arquivo = $map_file; |
94 | 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 | 101 | if($ext && $ext != ""){ |
100 | 102 | $e = explode(" ",$ext); |
101 | 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 | 1192 | include_once("classe_temas.php"); |
1193 | 1193 | copiaSeguranca($map_file); |
1194 | 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 | 1200 | $m->zoomTema(); |
1201 | + if($interface == "googlemaps") | |
1202 | + {$m->mapa->setProjection($projMapa);} | |
1196 | 1203 | $m->salva(); |
1197 | 1204 | redesenhaMapa(); |
1198 | 1205 | break; |
... | ... | @@ -1207,7 +1214,14 @@ Muda a extensão geográfica do mapa de acordo com a abrangência dos elementos sel |
1207 | 1214 | include_once("classe_temas.php"); |
1208 | 1215 | copiaSeguranca($map_file); |
1209 | 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 | 1222 | $m->zoomSel(); |
1223 | + if($interface == "googlemaps") | |
1224 | + {$m->mapa->setProjection($projMapa);} | |
1211 | 1225 | $m->salva(); |
1212 | 1226 | redesenhaMapa(); |
1213 | 1227 | break; |
... | ... | @@ -1340,6 +1354,11 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa |
1340 | 1354 | include_once("classe_alteraclasse.php"); |
1341 | 1355 | copiaSeguranca($map_file); |
1342 | 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 | 1362 | if ($opcao == "adicionaclasse") |
1344 | 1363 | {$retorno = $m->adicionaclasse();} |
1345 | 1364 | if ($opcao == "valorunico") |
... | ... | @@ -1358,6 +1377,8 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa |
1358 | 1377 | } |
1359 | 1378 | if ($opcao == "simbolounico") |
1360 | 1379 | {$retorno = $m->simbolounico();} |
1380 | + if($interface == "googlemaps") | |
1381 | + {$m->mapa->setProjection($projMapa);} | |
1361 | 1382 | $salvo = $m->salva(); |
1362 | 1383 | break; |
1363 | 1384 | /* |
... | ... | @@ -1968,6 +1989,8 @@ Procura valores em uma tabela que aderem a uma palavra de busca. |
1968 | 1989 | include_once("classe_atributos.php"); |
1969 | 1990 | if(!isset($tema)){$tema = "";} |
1970 | 1991 | $m = new Atributos($map_file,$tema,"",$ext); |
1992 | + if($interface == "googlemaps") | |
1993 | + {$m->mapa->setProjection("init=epsg:4291");} | |
1971 | 1994 | $retorno = $m->buscaRegistros($palavra,$lista,$tipo,$onde); |
1972 | 1995 | break; |
1973 | 1996 | /* |
... | ... | @@ -1983,8 +2006,19 @@ Identifica elementos no mapa. |
1983 | 2006 | if (!isset($tema)){$tema = "";} |
1984 | 2007 | if (!isset($resolucao)){$resolucao = 5;} |
1985 | 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 | 2016 | $retorno = $m->identifica($opcao,$xy,$resolucao); |
2017 | + if($interface == "googlemaps") | |
2018 | + { | |
2019 | + $m->mapa->setProjection($projMapa); | |
2020 | + $m->salva(); | |
2021 | + } | |
1988 | 2022 | break; |
1989 | 2023 | /* |
1990 | 2024 | Valor: IDENTIFICA2 |
... | ... | @@ -1999,15 +2033,21 @@ Identifica elementos no mapa. |
1999 | 2033 | include_once("classe_atributos.php"); |
2000 | 2034 | if(!isset($ext)) |
2001 | 2035 | {$ext = "";} |
2002 | - if(isset($ext) && $ext != "" && $interface == "googlemaps") | |
2003 | - { | |
2004 | - $ext = projetaExt($map_file,$ext); | |
2005 | - $xy = projetaExt($map_file,$xy,","); | |
2006 | - } | |
2007 | 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 | 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 | 2050 | break; |
2010 | - | |
2011 | 2051 | /* |
2012 | 2052 | Valor: IDENTIFICAUNICO |
2013 | 2053 | ... | ... |
ferramentas/cortina/index.js.php
... | ... | @@ -135,7 +135,7 @@ i3GEOF.cortina = { |
135 | 135 | catch(e){} |
136 | 136 | } |
137 | 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 | 139 | if(navm) |
140 | 140 | {estilo.clip = "rect(0px,"+i3GEO.parametros.w+"px,"+i3GEO.parametros.h+"px,0px)";} |
141 | 141 | else | ... | ... |
ferramentas/identifica/index.js.php
... | ... | @@ -209,6 +209,10 @@ i3GEOF.identifica = { |
209 | 209 | var i = $i("i3GEOF.identifica_c").style; |
210 | 210 | i3GEO.janela.ULTIMOZINDEX++; |
211 | 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 | 218 | Function: html | ... | ... |
ferramentas/linhadotempo/index.php
... | ... | @@ -17,6 +17,7 @@ Timeline_parameters='bundle=true'; |
17 | 17 | <body name="ancora" onload="inicializa()" onresize="onResize()"> |
18 | 18 | <p class=paragrafo >Escolha o tema para gerar a linha do tempo:</p> |
19 | 19 | <div class=paragrafo id="combotemas" ></div> |
20 | +<div class=paragrafo id="totaleventos" style="position:absolute;top:30px;left:200px;"></div> | |
20 | 21 | <div class=paragrafo id="tl" style="height: 220px; border: 1px solid #aaa;overflow-x:hidden; overflow-y:scroll"> </div> |
21 | 22 | |
22 | 23 | <script> |
... | ... | @@ -169,6 +170,7 @@ function carregaDados(){ |
169 | 170 | tl_el.innerHTML = "<span style=color:red; >Aguarde...</span>"; |
170 | 171 | var retorna = function(retorno){ |
171 | 172 | //eventSource1.clear(); |
173 | + $i("totaleventos").innerHTML = retorno.data.events.length+" eventos"; | |
172 | 174 | tl = Timeline.create(tl_el, bandInfos, Timeline.HORIZONTAL); |
173 | 175 | eventSource1.loadJSON(retorno.data, '.'); // The data was stored into the |
174 | 176 | tl.layout(); // display the Timeline | ... | ... |
ferramentas/opcoes_fundo/index.js.php
... | ... | @@ -106,7 +106,7 @@ i3GEOF.opcoesFundo = { |
106 | 106 | i3GEO.janela.minimiza("i3GEOF.opcoesFundo"); |
107 | 107 | }; |
108 | 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' > </a>"; | |
109 | + titulo = "Cor do fundo <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=1&idajuda=6' > </a>"; | |
110 | 110 | janela = i3GEO.janela.cria( |
111 | 111 | "210px", |
112 | 112 | "80px", | ... | ... |
imagens/logo_inicio.png
menutemas/admin.db
No preview for this file type
ms_configura.php