From fdab6249b121625b4c72884c3d0c39511ed7abeb Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 19 Jul 2010 10:25:16 +0000 Subject: [PATCH] Concluída a revisão das funcionalidades da árvore de camadas para a interface Google Maps --- classesjs/classe_arvoredecamadas.js | 35 +++++++++++++++++++++++++++++++++-- classesjs/classe_calculo.js | 6 +++--- classesjs/classe_interface.js | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------ classesjs/classe_navega.js | 2 +- classesjs/classe_php.js | 4 ++-- classesjs/classe_tema.js | 9 +++++++-- classesphp/classe_alteraclasse.php | 7 ++++++- classesphp/classe_atributos.php | 18 ++++++++++++------ classesphp/classe_temas.php | 1 + classesphp/classe_toponimia.php | 1 + classesphp/funcoes_gerais.php | 3 +-- classesphp/graficos.php | 7 ++++++- classesphp/mapa_controle.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- ferramentas/busca/index.js.php | 2 +- ferramentas/cortina/index.js.php | 14 +++++++++++++- ferramentas/graficointerativo/index.js.php | 10 +++++----- ferramentas/legenda/index.js.php | 12 ++++++------ ferramentas/tabela/index.js.php | 13 ++++++------- menutemas/admin.db | Bin 65536 -> 0 bytes 19 files changed, 253 insertions(+), 67 deletions(-) diff --git a/classesjs/classe_arvoredecamadas.js b/classesjs/classe_arvoredecamadas.js index af68546..7bc3c5d 100644 --- a/classesjs/classe_arvoredecamadas.js +++ b/classesjs/classe_arvoredecamadas.js @@ -1272,7 +1272,7 @@ i3GEO.arvoreDeCamadas = { if(ltema.escondido !== "sim"){ temp = eval("ltema."+propriedade); if(operador === "igual"){ - if(temp === valor) + if(temp == valor) {resultado.push(ltema);} } if(operador === "diferente"){ @@ -1285,5 +1285,36 @@ i3GEO.arvoreDeCamadas = { while(i < nelementos); } return resultado; - } + }, + /* + Function: alteraPropCamadas + + Altera o valor de uma propriedade de um tema do objeto i3GEO.arvoreDeCamadas.CAMADAS + + Parameters: + + propriedade {string} - propriedade que será modificada + + valor - novo valor + + camada {string} - código da camada + */ + alteraPropCamadas: function(propriedade,valor,camada){ + if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.alteraPropCamadas()");} + var resultado = [], + i = 0, + temp, + nelementos = i3GEO.arvoreDeCamadas.CAMADAS.length, + ltema; + if (nelementos > 0){ + do{ + ltema = i3GEO.arvoreDeCamadas.CAMADAS[i]; + if(ltema.name == camada){ + eval("ltema."+propriedade+"='"+valor+"';"); + } + i++; + } + while(i < nelementos); + } + } }; diff --git a/classesjs/classe_calculo.js b/classesjs/classe_calculo.js index 974e8d0..13b184f 100644 --- a/classesjs/classe_calculo.js +++ b/classesjs/classe_calculo.js @@ -100,12 +100,12 @@ i3GEO.calculo = { */ dd2tela: function (vx,vy,docmapa,ext,cellsize){ try{ - var pos,latlng,xyn,dc,imgext,c,xy,mapType; + var pos,latlng,xyn,dc,imgext,c,xy; if(i3GEO.Interface.ATUAL == "googlemaps"){ pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); - mapType = i3GeoMap.mapTypes[i3GeoMap.getMapTypeId()]; - xyn = mapType.projection.fromLatLngToPoint(new google.maps.LatLng(vy,vx)); + xyn = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(new google.maps.LatLng(vy,vx)); xy = []; + console.info(xyn.x); return [(xyn.x)+pos[0],(xyn.y)+pos[1]]; } if(i3GEO.Interface.ATUAL == "openlayers" && docmapa.id != "mapaReferencia"){ diff --git a/classesjs/classe_interface.js b/classesjs/classe_interface.js index 5a2ea98..a078482 100644 --- a/classesjs/classe_interface.js +++ b/classesjs/classe_interface.js @@ -910,9 +910,15 @@ i3GEO.Interface = { if(layers.length > 0){ layers[0].setVisibility(obj.checked); if(obj.checked) - {ligar = obj.value;} + { + ligar = obj.value; + i3GEO.arvoreDeCamadas.alteraPropCamadas("status","2",obj.value); + } else - {desligar = obj.value;} + { + desligar = obj.value; + i3GEO.arvoreDeCamadas.alteraPropCamadas("status","0",obj.value); + } i3GEO.php.ligatemas(temp,desligar,ligar); } }, @@ -1039,7 +1045,8 @@ i3GEO.Interface = { i3GEO.Interface.ATUAL = "googlemaps" - Cria o objeto i3GeoMap que pode receber os métodos da API + Cria o objeto i3GeoMap que pode receber os métodos da API. + Cria também o objeto i3GeoMapOverlay do tipo Overlay, utilizado para cálculos ou para receber elementos gráficos. */ googlemaps:{ /* @@ -1158,10 +1165,14 @@ i3GEO.Interface = { i3GeoMap.setMapTypeId(i3GEO.Interface.googlemaps.TIPOMAPA); sw = new google.maps.LatLng(ret[1],ret[0]); ne = new google.maps.LatLng(ret[3],ret[2]); - i3GEO.Interface.googlemaps.registraEventos(); i3GeoMap.fitBounds(new google.maps.LatLngBounds(sw,ne)); i3GEO.Interface.googlemaps.criaLayers(); + i3GeoMapOverlay = new google.maps.OverlayView(); + i3GeoMapOverlay.draw = function() {}; + i3GeoMapOverlay.setMap(i3GeoMap); + i3GEO.Interface.googlemaps.registraEventos(); + i3GEO.gadgets.mostraInserirKml(); i3GEO.Interface.googlemaps.ativaBotoes(); i3GEO.eventos.ativa($i(i3GEO.Interface.IDMAPA)); @@ -1179,7 +1190,6 @@ i3GEO.Interface = { //i3GEO.arvoreDeCamadas.CAMADAS é definido na inicialização (classe_i3geo) // i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googlemaps.ligaDesliga(this)"; - i3GEO.arvoreDeCamadas.cria("",i3GEO.arvoreDeCamadas.CAMADAS,i3GEO.configura.sid,i3GEO.configura.locaplic); i3GEO.Interface.googlemaps.adicionaListaKml(); }; @@ -1225,6 +1235,9 @@ i3GEO.Interface = { i3GEO.Interface.googlemaps.recalcPar(); i3GEO.eventos.navegaMapa(); }); + google.maps.event.addListener(i3GeoMap, "tilesloaded", function() { + i3GEO.Interface.googlemaps.recalcPar(); + }); google.maps.event.addListener(i3GeoMap, "zoom_changed", function() { i3GEO.Interface.googlemaps.recalcPar(); g_operacao = ""; @@ -1233,11 +1246,10 @@ i3GEO.Interface = { }); pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)); google.maps.event.addListener(i3GeoMap, "mousemove", function(ponto) { - var teladms,tela,mapType; + var teladms,tela; ponto = ponto.latLng; teladms = i3GEO.calculo.dd2dms(ponto.lng(),ponto.lat()); - mapType = i3GeoMap.mapTypes[i3GeoMap.getMapTypeId()]; - tela = mapType.projection.fromLatLngToPoint(ponto); + tela = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(ponto); objposicaocursor = { ddx: ponto.lng(), ddy: ponto.lat(), @@ -1255,6 +1267,7 @@ i3GEO.Interface = { try{ i3GeoMap.overlayMapTypes.forEach( function(elemento, number){ + //alert(nomeLayer+" "+elemento.name) if(elemento.name == nomeLayer) {i = number;} //console.error(i+" "+elemento.name+" "+nomeLayer); @@ -1263,7 +1276,50 @@ i3GEO.Interface = { return i; } catch(e){ - if(typeof(console) !== 'undefined'){console.error(e);} + return false; + } + }, + retornaObjetoLayer: function(nomeLayer){ + var i = false; + try{ + i3GeoMap.overlayMapTypes.forEach( + function(elemento, number){ + if(elemento.name == nomeLayer) + {i = elemento;} + } + ); + return i; + } + catch(e){ + return false; + } + }, + retornaDivLayer: function(nomeLayer){ + var i = false, + divmapa = $i("googlemapsdiv"), + divlayer, + divs, + j, + ndivs; + try{ + i3GeoMap.overlayMapTypes.forEach( + function(elemento, number){ + if(elemento.name == nomeLayer){ + divlayer = divmapa.firstChild; + divlayer = divlayer.firstChild; + divlayer = divlayer.firstChild; + divs = divlayer.getElementsByTagName("div"); + ndivs = divs.length; + for(j=0;j */ - geradestaque: function(funcao,tema){ + geradestaque: function(funcao,tema,ext){ i3GEO.php.verifica(); - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=geradestaque&tema="+tema+"&g_sid="+i3GEO.configura.sid+"&ext="+i3GEO.parametros.mapexten; + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=geradestaque&tema="+tema+"&g_sid="+i3GEO.configura.sid+"&ext="+ext; cpJSON.call(p,"geradestaque",funcao); }, /* diff --git a/classesjs/classe_tema.js b/classesjs/classe_tema.js index b8b1e22..6f69f05 100644 --- a/classesjs/classe_tema.js +++ b/classesjs/classe_tema.js @@ -49,6 +49,7 @@ i3GEO.tema = { g_operacao = "excluitema"; //remove o tema do DOM e seus filhos var layer, + indice, p = document.getElementById("idx"+tema).parentNode.parentNode.parentNode; do {p.removeChild(p.childNodes[0]);} @@ -63,6 +64,10 @@ i3GEO.tema = { layer = i3geoOL.getLayersByName(tema)[0]; i3geoOL.removeLayer(layer); } + if(i3GEO.Interface.ATUAL === "googlemaps"){ + indice = i3GEO.Interface.googlemaps.retornaIndiceLayer(tema); + i3GeoMap.overlayMapTypes.removeAt(indice); + } }, /* Function: fonte @@ -202,7 +207,7 @@ i3GEO.tema = { */ mudatransp: function(idtema){ if(typeof(console) !== 'undefined'){console.info("i3GEO.tema.mudatransp()");} - i3GEO.mapa.ativaTema(tema); + i3GEO.mapa.ativaTema(idtema); g_operacao = "transparencia"; var valor, temp = function(retorno){ @@ -233,7 +238,7 @@ i3GEO.tema = { */ mudanome: function(idtema){ if(typeof(console) !== 'undefined'){console.info("i3GEO.tema.mudanome()");} - i3GEO.mapa.ativaTema(tema); + i3GEO.mapa.ativaTema(idtema); g_operacao = "mudanome"; var valor; if($i("nn"+idtema)) diff --git a/classesphp/classe_alteraclasse.php b/classesphp/classe_alteraclasse.php index a345ed7..7452dd0 100644 --- a/classesphp/classe_alteraclasse.php +++ b/classesphp/classe_alteraclasse.php @@ -74,7 +74,7 @@ $map_file - Endereço do mapfile no servidor. $tema - nome do tema */ - function __construct($map_file,$tema="",$locaplic="") + function __construct($map_file,$tema="",$locaplic="",$ext="") { //error_reporting(E_ALL); if (file_exists($locaplic."/funcoes_gerais.php")) @@ -88,6 +88,11 @@ $tema - nome do tema if($tema != "" && @$this->mapa->getlayerbyname($tema)) $this->layer = $this->mapa->getlayerbyname($tema); $this->nome = $tema; + if($ext && $ext != ""){ + $e = explode(" ",$ext); + $extatual = $this->mapa->extent; + $extatual->setextent((min($e[0],$e[2])),(min($e[1],$e[3])),(max($e[0],$e[2])),(max($e[1],$e[3]))); + } } /* function: salva diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 6f1ea3d..4461ecb 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -129,13 +129,19 @@ xmin ymin xmax ymax separados por espaço. $prjMapa = $this->mapa->getProjection(); $prjTema = $this->layer->getProjection(); $ret = $shape->bounds; - //reprojeta o retangulo - if (($prjTema != "") && ($prjMapa != $prjTema)) + // + //verifica se o retangulo está ou não em coordenadas geográficas + // + if($ret->minx > 180 || $ret->minx < -180) { - $projInObj = ms_newprojectionobj($prjTema); - $projOutObj = ms_newprojectionobj($prjMapa); - $ret->project($projInObj, $projOutObj); - } + //reprojeta o retangulo + if (($prjTema != "") && ($prjMapa != $prjTema)) + { + $projInObj = ms_newprojectionobj($prjTema); + $projOutObj = ms_newprojectionobj($prjMapa); + $ret->project($projInObj, $projOutObj); + } + } $ext = $ret->minx." ".$ret->miny." ".$ret->maxx." ".$ret->maxy; if (($shape->type == MS_SHP_POINT) || ($shape->type == 0)) { diff --git a/classesphp/classe_temas.php b/classesphp/classe_temas.php index c3f57d1..2437c37 100644 --- a/classesphp/classe_temas.php +++ b/classesphp/classe_temas.php @@ -436,6 +436,7 @@ $testa - Testa o filtro e retorna uma imagem. function insereFiltro($filtro,$testa="") { if(!$this->layer){return "erro";} + $this->layer->setmetadata("cache",""); $fil = $this->layer->getFilterString(); $filtro = str_replace("|","'",$filtro); if ($this->layer->connectiontype == MS_POSTGIS) diff --git a/classesphp/classe_toponimia.php b/classesphp/classe_toponimia.php index a3ba1d4..b429fde 100644 --- a/classesphp/classe_toponimia.php +++ b/classesphp/classe_toponimia.php @@ -158,6 +158,7 @@ $tipo Tipo teste| $novolayer->set("name",$nomer); $novolayer->set("group",""); $novolayer->set("type",MS_LAYER_ANNOTATION); + $novolayer->setmetadata("cache",""); $nclasses = $novolayer->numclasses; for ($i=0; $i < $nclasses; ++$i) { diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 06b4f7c..efc7b0c 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -1185,12 +1185,11 @@ function pegaValoresM($mapa,$layer,$itens,$exclui="nulo",$selecionados="nao",$ch } $layer->close(); } - $valores = array(); + $valores = array(); if (@$layer->queryByrect($mapa->extent) == MS_SUCCESS) { $sopen = $layer->open(); if($sopen == MS_FAILURE){return "erro";} - $res_count = $layer->getNumresults(); for ($i=0;$i<$res_count;++$i) { diff --git a/classesphp/graficos.php b/classesphp/graficos.php index 89fd015..67c11ba 100644 --- a/classesphp/graficos.php +++ b/classesphp/graficos.php @@ -371,10 +371,15 @@ function iniciaParGrafico($gw,$gh,$res,$dir_tmp,$gfile_name,$margem,$margemexter $rcode[] = 'screen(1, new=FALSE)'; return $rcode; } -function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$tipo,$percentual) +function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$tipo,$percentual,$ext="") { //pega os valores $map = ms_newMapObj($map_file); + if($ext && $ext != ""){ + $e = explode(" ",$ext); + $extatual = $map->extent; + $extatual->setextent((min($e[0],$e[2])),(min($e[1],$e[3])),(max($e[0],$e[2])),(max($e[1],$e[3]))); + } $selecionados = "sim"; $qyfile = str_replace(".map",".qy",$map_file); if (file_exists($qyfile)) diff --git a/classesphp/mapa_controle.php b/classesphp/mapa_controle.php index 27474a3..c0f290e 100644 --- a/classesphp/mapa_controle.php +++ b/classesphp/mapa_controle.php @@ -1052,6 +1052,8 @@ Gera uma imagem que será utilizada para destacar um determinado tema. */ case "GERADESTAQUE": include_once("classe_temas.php"); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} $m = new Temas($map_file,$tema,"",$ext); $retorno = $m->geraDestaque(); break; @@ -1294,7 +1296,9 @@ Altera uma classe de um tema, aplicando uma nova classificação ou modificando pa case "ALTERACLASSE": include_once("classe_alteraclasse.php"); copiaSeguranca($map_file); - $m = new Alteraclasse($map_file,$tema); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} + $m = new Alteraclasse($map_file,$tema,"",$ext); if ($opcao == "adicionaclasse") {$retorno = $m->adicionaclasse();} if ($opcao == "valorunico") @@ -1507,11 +1511,13 @@ Pega os dados necessários para a geração dos gráficos da ferramenta seleção */ case "GRAFICOSELECAO": include_once("graficos.php"); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} if(!isset($exclui)) {$exclui = "";} if(!isset($tipo)) {$tipo = "nenhum";} - $retorno = iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$tipo,false); + $retorno = iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$tipo,false,$ext); break; /* @@ -1614,6 +1620,8 @@ Pega os dados de um tema para geração do gráfico de linha do tempo. */ case "DADOSLINHADOTEMPO": include_once("graficos.php"); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} if(!isset($ext)) {$ext = "";} $retorno = dadosLinhaDoTempo($map_file,$tema,$ext); @@ -1902,6 +1910,8 @@ Procura valores em uma tabela que aderem a uma palavra de busca. case "LISTAVALORESITENS": include_once("classe_atributos.php"); if(!isset($tema)){$tema = "";} + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} $m = new Atributos($map_file,$tema,"",$ext); $retorno = $m->buscaRegistros($palavra,$lista,$tipo,$onde); break; @@ -1934,7 +1944,9 @@ Identifica elementos no mapa. include_once("classe_atributos.php"); $m = new Atributos($map_file,$tema); if(!isset($ext)) - {$ext = "";} + {$ext = "";} + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} $retorno = $m->identifica2($opcao,$xy,$resolucao,$ext,$listaDeTemas); break; @@ -1984,6 +1996,8 @@ Pega todos os valores dos itens de uma tabela de um tema. listaRegistros> */ case "LISTAREGISTROS": + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} include_once("classe_atributos.php"); $m = new Atributos($map_file,$tema,"",$ext); if(!isset($tipo)){$tipo = "";} @@ -2044,6 +2058,8 @@ Muda a extensão geográfica do mapa. copiaSeguranca($map_file); if (!isset($ext) || $ext == "" || $ext == " "){$ext="-76.512593 -39.392568 -29.585185 9.490149";} $m = new Navegacao($map_file); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} $m->mudaExtensao($ext); $m->salva(); redesenhaMapa(); @@ -2426,6 +2442,8 @@ Seleciona elementos utilizando um retângulo. foreach($temas as $tema) { $m = new Selecao($map_file,$tema); + if(isset($ext) && $ext != "" && $interface == "googlemaps") + {$ext = projetaExt($map_file,$ext);} $ok[] = $m->selecaoBOX($tipo,$ext); } redesenhaMapa(); @@ -2678,6 +2696,37 @@ if (!connection_aborted()) else {exit();} /* +Function: projetaExt + +Projeta uma string com coordenadas geográficas para coordenadas métricas + +Parametros: + +$map_file {string} + +$ext {string} - extensão geográfica com valores separados por espaço + +Return: + +{string} +*/ +function projetaExt($map_file,$ext) +{ + $extA = explode(" ",$ext); + $mapa = ms_newMapObj($map_file); + if($extA[0] < 180 && $extA[0] > -180) + { + $rect = ms_newRectObj(); + $rect->setextent($extA[0],$extA[1],$extA[2],$extA[3]); + $prjMapa = $mapa->getProjection(); + $projInObj = ms_newprojectionobj("proj=latlong"); + $projOutObj = ms_newprojectionobj($prjMapa); + $rect->project($projInObj, $projOutObj); + $ext = $rect->minx." ".$rect->miny." ".$rect->maxx." ".$rect->maxy; + } + return $ext; +} +/* Function: alteraclassesPost Altera as classes de um tema aplicando novos parâmetros como nome e expressão. diff --git a/ferramentas/busca/index.js.php b/ferramentas/busca/index.js.php index 9951044..bd3fcd9 100644 --- a/ferramentas/busca/index.js.php +++ b/ferramentas/busca/index.js.php @@ -193,7 +193,7 @@ i3GEOF.busca = { Veja: - + */ procurar: function(){ if(i3GEOF.busca.aguarde.visibility === "visible") {return;} diff --git a/ferramentas/cortina/index.js.php b/ferramentas/cortina/index.js.php index 3afd0c1..687d75d 100644 --- a/ferramentas/cortina/index.js.php +++ b/ferramentas/cortina/index.js.php @@ -98,6 +98,8 @@ i3GEOF.cortina = { tema {string} - codigo do tema */ criaJanelaFlutuante: function(tema){ + if(arguments.length == 0) + {tema = i3GEO.temaAtivo;} var janela,divid,temp,titulo; i3GEOF.cortina.tema = tema; //cria a janela flutuante @@ -119,7 +121,13 @@ i3GEOF.cortina = { i3GEOF.cortina.aguarde = $i("i3GEOF.cortina_imagemCabecalho").style; i3GEOF.cortina.inicia(divid); temp = function(){ - i3geoOL.getLayersByName(tema)[0].div.style.clip = ""; + if(i3GEO.Interface.ATUAL === "openlayers") + {i3geoOL.getLayersByName(tema)[0].div.style.clip = "";} + if(i3GEO.Interface.ATUAL === "googlemaps"){ + var divlayer = i3GEO.Interface.googlemaps.retornaDivLayer(tema); + divlayer.style.clip = ""; + } + }; YAHOO.util.Event.addListener(janela[0].close, "click", temp); }, @@ -137,6 +145,10 @@ i3GEOF.cortina = { estilo = layer.div.style; //rect (top, right, bottom, left) } + if(i3GEO.Interface.ATUAL === "googlemaps"){ + layer = i3GEO.Interface.googlemaps.retornaDivLayer(i3GEOF.cortina.tema); + estilo = layer.style; + } estilo.clip = "rect(0px,"+i3GEO.parametros.w+"px,"+i3GEO.parametros.h+"px,0px)"; slider.setValue(0,false); slider.subscribe("change", function(offsetFromStart) { diff --git a/ferramentas/graficointerativo/index.js.php b/ferramentas/graficointerativo/index.js.php index 4a9459e..09d1362 100644 --- a/ferramentas/graficointerativo/index.js.php +++ b/ferramentas/graficointerativo/index.js.php @@ -191,7 +191,7 @@ i3GEOF.graficointerativo = { "", false, "ligados" - ); + ); new YAHOO.widget.Button( "i3GEOgraficointerativobotao1", {onclick:{fn: i3GEOF.graficointerativo.obterDados}} @@ -331,9 +331,9 @@ i3GEOF.graficointerativo = { if(i3GEO.Interface.ATUAL !== "googlemaps"){ i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.graficointerativo.obterDados()"); } - if(i3GEO.Interface.ATUAL === "googlemaps"){ - GEvent.removeListener(graficointerativoDragend); - GEvent.removeListener(graficointerativoZoomend); + if(i3GEO.Interface.ATUAL == "googlemaps"){ + google.maps.event.removeListener(graficointerativoDragend); + google.maps.event.removeListener(graficointerativoZoomend); } }; YAHOO.util.Event.addListener(janela[0].close, "click", temp); @@ -432,7 +432,7 @@ i3GEOF.graficointerativo = { x = $i("i3GEOgraficointerativoComboXid").value, y = $i("i3GEOgraficointerativoComboYid").value, excluir = $i("i3GEOgraficointerativoexcluir").value, - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=graficoSelecao&tema="+tema+"&itemclasses="+x+"&itemvalores="+y+"&exclui="+excluir, + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=graficoSelecao&tema="+tema+"&itemclasses="+x+"&itemvalores="+y+"&exclui="+excluir+"&ext="+i3GEO.parametros.mapexten, cp = new cpaint(), tipo = "soma", monta; diff --git a/ferramentas/legenda/index.js.php b/ferramentas/legenda/index.js.php index 078a77b..51a5521 100644 --- a/ferramentas/legenda/index.js.php +++ b/ferramentas/legenda/index.js.php @@ -431,7 +431,7 @@ i3GEOF.legenda = { i3GEO.arvoreDeCamadas.atualizaLegenda(i3GEOF.legenda.tema); i3GEOF.legenda.aguarde.visibility = "hidden"; }; - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses"; + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses&ext="+i3GEO.parametros.mapexten; cp = new cpaint(); cp.set_transfer_mode('POST'); cp.set_response_type("JSON"); @@ -470,7 +470,7 @@ i3GEOF.legenda = { adicionaClasse: function(){ if(i3GEOF.legenda.aguarde.visibility === "visible") {return;} - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema, + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema+"&ext="+i3GEO.parametros.mapexten, cp = new cpaint(); cp.set_response_type("JSON"); cp.call(p,"alteraclasse",i3GEOF.legenda.mostralegenda); @@ -612,7 +612,7 @@ i3GEOF.legenda = { if(i3GEOF.legenda.aguarde.visibility === "visible") {return;} i3GEOF.legenda.aguarde.visibility = "visible"; - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico", + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico&ext="+i3GEO.parametros.mapexten, cp = new cpaint(), fim = function(){ i3GEO.atualiza(); @@ -639,7 +639,7 @@ i3GEOF.legenda = { if(i3GEOF.legenda.aguarde.visibility === "visible") {return;} var item = $i("i3GEOlegendaSelItem").value, - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=valorunico&ignorar="+$i("i3GEOlegendaignorar").value, + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=valorunico&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, cp = new cpaint(), fim = function(){ i3GEO.atualiza(); @@ -671,7 +671,7 @@ i3GEOF.legenda = { {return;} var item = $i("i3GEOlegendaSelItem").value, nclasses = $i("i3GEOlegendanclasses").value, - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value, + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, cp = new cpaint(), fim = function(){ i3GEO.atualiza(); @@ -702,7 +702,7 @@ i3GEOF.legenda = { {return;} var item = $i("i3GEOlegendaSelItem").value, nclasses = $i("i3GEOlegendanclasses").value, - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value, + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, cp = new cpaint(); fim = function(){ i3GEO.atualiza(); diff --git a/ferramentas/tabela/index.js.php b/ferramentas/tabela/index.js.php index 434c6ae..7634876 100644 --- a/ferramentas/tabela/index.js.php +++ b/ferramentas/tabela/index.js.php @@ -324,8 +324,8 @@ i3GEOF.tabela = { i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.tabela.pegaRegistros()"); } if(i3GEO.Interface.ATUAL === "googlemaps"){ - GEvent.removeListener(tabelaDragend); - GEvent.removeListener(tabelaZoomend); + google.maps.event.removeListener(tabelaDragend); + google.maps.event.removeListener(tabelaZoomend); } }; YAHOO.util.Event.addListener(janela[0].close, "click", temp); @@ -353,8 +353,8 @@ i3GEOF.tabela = { i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.tabela.pegaRegistros()"); } if(i3GEO.Interface.ATUAL === "googlemaps"){ - tabelaDragend = GEvent.addListener(i3GeoMap, "dragend", function() {i3GEOF.tabela.pegaRegistros();}); - tabelaZoomend = GEvent.addListener(i3GeoMap, "zoomend", function() {i3GEOF.tebela.pegaRegistros();}); + tabelaDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.tabela.pegaRegistros();}); + tabelaZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.tebela.pegaRegistros();}); } } else{ @@ -362,8 +362,8 @@ i3GEOF.tabela = { i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.tabela.pegaRegistros()"); } if(i3GEO.Interface.ATUAL === "googlemaps"){ - GEvent.removeListener(tabelaDragend); - GEvent.removeListener(tabelaZoomend); + google.maps.event.removeListener(tabelaDragend); + google.maps.event.removeListener(tabelaZoomend); } } }, @@ -741,7 +741,6 @@ i3GEOF.tabela = { {onclick:{fn: function(){ i3GEO.mapa.ativaTema(i3GEOF.tabela.tema); i3GEO.analise.dialogo.graficoInterativo(); - } }} ); diff --git a/menutemas/admin.db b/menutemas/admin.db index bd859c3..9d02ae9 100644 Binary files a/menutemas/admin.db and b/menutemas/admin.db differ -- libgit2 0.21.2