From 3489ff18025e3fb2b3a2f2866f1d0e2c49533a0d Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 19 Nov 2013 19:01:57 +0000 Subject: [PATCH] $1 --- admin/admin.db | Bin 229376 -> 0 bytes admin/php/classe_metaestat.php | 6 +++--- classesjs/classe_interface.js | 1 + ferramentas/metaestat/dicionario.js | 6 +++--- ferramentas/metaestat/editorlimites.js | 56 ++++++++++++++++++++++++++++++++++++++++++-------------- ferramentas/metaestat/editorlimites.php | 42 +++++++++++++++++++++--------------------- imagens/google/symbol_middot.png | Bin 0 -> 558 bytes imagens/google/symbol_middot_y.png | Bin 0 -> 573 bytes imagens/oxygen/22x22/user-invisible.png | Bin 0 -> 2743 bytes imagens/oxygen/22x22/user-online.png | Bin 0 -> 3046 bytes 10 files changed, 70 insertions(+), 41 deletions(-) create mode 100644 imagens/google/symbol_middot.png create mode 100644 imagens/google/symbol_middot_y.png create mode 100755 imagens/oxygen/22x22/user-invisible.png create mode 100755 imagens/oxygen/22x22/user-online.png diff --git a/admin/admin.db b/admin/admin.db index 2c78e46..9a2ebb4 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/admin/php/classe_metaestat.php b/admin/php/classe_metaestat.php index 1fd51dc..1519f43 100755 --- a/admin/php/classe_metaestat.php +++ b/admin/php/classe_metaestat.php @@ -2556,11 +2556,11 @@ class Metaestat{ if($tipo != "" && $tipo != "excluir" && ($identificadornovo == "" || $nome == "")){ return array("erro"); } - if($colunas == ""){ - $colunas = "colunanomeregiao"; - } //pega a tabela, esquema e conexao para acessar os dados da regiao $regiao = $this->listaTipoRegiao($codigo_tipo_regiao); + if($colunas == ""){ + $colunas = $regiao["colunanomeregiao"]; + } $c = $this->listaConexao($regiao["codigo_estat_conexao"],true); $dbh = new PDO('pgsql:dbname='.$c["bancodedados"].';user='.$c["usuario"].';password='.$c["senha"].';host='.$c["host"].';port='.$c["porta"]); //faz uma validacao para verificar se na tabela o identificador unico existe mais de uma vez diff --git a/classesjs/classe_interface.js b/classesjs/classe_interface.js index beefb8f..1edd166 100644 --- a/classesjs/classe_interface.js +++ b/classesjs/classe_interface.js @@ -1639,6 +1639,7 @@ i3GEO.Interface = { }, cria: function(w,h){ var i,f,ins; + google.maps.visualRefresh = true; posfixo = "&nd=0"; i = $i(i3GEO.Interface.IDCORPO); if(i){ diff --git a/ferramentas/metaestat/dicionario.js b/ferramentas/metaestat/dicionario.js index 72e6021..996bb99 100644 --- a/ferramentas/metaestat/dicionario.js +++ b/ferramentas/metaestat/dicionario.js @@ -106,21 +106,21 @@ it:"" }], "15":[ { -pt:"Editar limite geográfico", +pt:"Editar camada", en:"", es:"", it:"" }], "16":[ { -pt:"Limite geográfico", +pt:"Limite ou local geográfico", en:"", es:"", it:"" }], "17":[ { -pt:"Escolha um tipo de limite geográfico (limites utilizados para representar os valores) e o tipo de classificação dos dados, depois escolha os valores para os parâmetros , se houver. Para adicionar a camada ao mapa, clique no botão de adição e feche a janela para continuar usando o mapa.", +pt:"Escolha um tipo de limite ou local geográfico (limites utilizados para representar os valores) e o tipo de classificação dos dados, depois escolha os valores para os parâmetros , se houver. Para adicionar a camada ao mapa, clique no botão de adição e feche a janela para continuar usando o mapa.", en:"", es:"", it:"" diff --git a/ferramentas/metaestat/editorlimites.js b/ferramentas/metaestat/editorlimites.js index ef50b50..0c55b9f 100644 --- a/ferramentas/metaestat/editorlimites.js +++ b/ferramentas/metaestat/editorlimites.js @@ -44,6 +44,14 @@ Classe: i3GEOF.editorlimites Funções de edição vetorial utilizadas pelo editor de regiões do sistema METAESTAT */ i3GEOF.editorlimites = { + iconePonto: function(sel){ + if(sel){ + return i3GEO.configura.locaplic+"/imagens/google/symbol_middot_y.png"; + } + else{ + return i3GEO.configura.locaplic+"/imagens/google/symbol_middot.png"; + } + }, /** * Objeto DOM com a imagem de aguarde existente no cabecalho da janela * @@ -113,7 +121,16 @@ i3GEOF.editorlimites = { drawingModes: [google.maps.drawing.OverlayType.POLYGON,google.maps.drawing.OverlayType.MARKER,google.maps.drawing.OverlayType.POLYLINE] }, markerOptions: { - icon: new google.maps.MarkerImage('http://www.example.com/icon.png') + icon: i3GEOF.editorlimites.iconePonto(), + clickable: true, + zIndex: 1, + draggable: true, + tema: "", + colunaid: "", + valorid: "", + colunanome: "", + valornome: "", + editable: false }, polygonOptions: { fillColor: '#ffff00', @@ -132,7 +149,7 @@ i3GEOF.editorlimites = { i3GEOF.editorlimites.drawingManager.setMap(i3GeoMap); i3GEOF.editorlimites.drawingManager.setDrawingMode(null); google.maps.event.addListener(i3GEOF.editorlimites.drawingManager, 'overlaycomplete', function(e) { - if (e.type != google.maps.drawing.OverlayType.MARKER) { + //if (e.type != google.maps.drawing.OverlayType.MARKER) { i3GEOF.editorlimites.drawingManager.setDrawingMode(null); i3GEOF.editorlimites.mudaicone(); var newShape = e.overlay; @@ -147,7 +164,7 @@ i3GEOF.editorlimites = { }); i3GEOF.editorlimites.setSelection(newShape); i3GEOF.editorlimites.shapes.push(newShape); - } + //} }); google.maps.event.addListener( i3GEOF.editorlimites.drawingManager, @@ -183,10 +200,11 @@ i3GEOF.editorlimites = { html:function(){ var ins = '
' + ' ' + - ' ' + + ' ' + + ' ' + ' ' + ' ' + - ' ' + + ' ' + ' ' + ' ' + '
'; //combo para escolher a regiao @@ -211,7 +229,7 @@ i3GEOF.editorlimites = { } else{ shape.editable = true; - shape.setFlat(false); + shape.setIcon({url: i3GEOF.editorlimites.iconePonto(true)}); } }, /** @@ -227,7 +245,7 @@ i3GEOF.editorlimites = { } else if(i3GEOF.editorlimites.shapes[i] != ""){//caso for ponto i3GEOF.editorlimites.shapes[i].editable = false; - i3GEOF.editorlimites.shapes[i].setFlat(true); + i3GEOF.editorlimites.shapes[i].setIcon({url: i3GEOF.editorlimites.iconePonto(false)}); } } }, @@ -244,7 +262,7 @@ i3GEOF.editorlimites = { } else if(i3GEOF.editorlimites.shapes[i] != ""){//caso for ponto i3GEOF.editorlimites.shapes[i].editable = true; - i3GEOF.editorlimites.shapes[i].setFlat(false); + i3GEOF.editorlimites.shapes[i].setIcon({url: i3GEOF.editorlimites.iconePonto(true)}); } } }, @@ -512,6 +530,17 @@ i3GEOF.editorlimites = { }); }, /** + * Ativa a digitalizacao de ponto + * @param objeto DOM que representa o botao que sera focado + */ + digitalizaPt: function(botao){ + i3GEOF.editorlimites.mudaicone(botao); + i3GEO.util.mudaCursor(i3GEO.configura.cursores,"pointer",i3GEO.Interface.IDMAPA,i3GEO.configura.locaplic); + i3GEOF.editorlimites.drawingManager.setOptions({ + drawingMode: google.maps.drawing.OverlayType.MARKER + }); + }, + /** * Ativa a selecao de figuras * @param objeto DOM que representa o botao que sera focado */ @@ -605,9 +634,9 @@ i3GEOF.editorlimites = { pol = new google.maps.Marker({ position: new google.maps.LatLng(obj.getPosition().ob,obj.getPosition().pb), map: i3GeoMap, - fillColor: '#ffff00', - fillOpacity: .5, - strokeWeight: 2, + icon: { + url: i3GEOF.editorlimites.iconePonto(false) + }, clickable: true, zIndex: 1, draggable: true, @@ -616,7 +645,6 @@ i3GEOF.editorlimites = { valorid: valorid, colunanome: colunanome, valornome: valornome, - flat: true, editable: false }); google.maps.event.addListener(pol, 'click', function() { @@ -694,7 +722,7 @@ i3GEOF.editorlimites = { '

Escolha a operação desejada:

' + '' + ' ' + - '

'; + '

'; return ins; }, /** @@ -709,7 +737,7 @@ i3GEOF.editorlimites = { }; titulo = "Salva limite   "; janela = i3GEO.janela.cria( - "350px", + "300px", "265px", "", "", diff --git a/ferramentas/metaestat/editorlimites.php b/ferramentas/metaestat/editorlimites.php index d1d3917..d8eb74b 100644 --- a/ferramentas/metaestat/editorlimites.php +++ b/ferramentas/metaestat/editorlimites.php @@ -1,34 +1,34 @@