Commit ad4e055efc4bd9cc4309b63ef8532f96ec4c8b96

Authored by Edmar Moretti
1 parent 7e084fed

--no commit message

ferramentas/saiku/cartograma.php
@@ -16,6 +16,7 @@ session_start(); @@ -16,6 +16,7 @@ session_start();
16 //obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao 16 //obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao
17 $map_file = $_SESSION["map_file"]; 17 $map_file = $_SESSION["map_file"];
18 //remove as camadas do SAIKU 18 //remove as camadas do SAIKU
  19 +$opcoes = (array) json_decode($_POST["opcoes"],true);
19 if($_POST["dados"] == ""){ 20 if($_POST["dados"] == ""){
20 $mapa = ms_newMapObj($map_file); 21 $mapa = ms_newMapObj($map_file);
21 $nlayers = $mapa->numlayers; 22 $nlayers = $mapa->numlayers;
@@ -29,7 +30,6 @@ if($_POST["dados"] == ""){ @@ -29,7 +30,6 @@ if($_POST["dados"] == ""){
29 } 30 }
30 else{ 31 else{
31 $dados = (array) json_decode($_POST["dados"],true); 32 $dados = (array) json_decode($_POST["dados"],true);
32 - $opcoes = (array) json_decode($_POST["opcoes"],true);  
33 $metadados = (array) json_decode($_POST["metadados"],true); 33 $metadados = (array) json_decode($_POST["metadados"],true);
34 $nmetadados = count($metadados); 34 $nmetadados = count($metadados);
35 //pega o id da regiao (busca pelo posfixo geocod) 35 //pega o id da regiao (busca pelo posfixo geocod)
ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/plugins/i3GeoMap/plugin.js
@@ -99,7 +99,6 @@ var i3GeoMap = Backbone.View.extend({ @@ -99,7 +99,6 @@ var i3GeoMap = Backbone.View.extend({
99 document.getElementById('formi3GeoMap').submit(); 99 document.getElementById('formi3GeoMap').submit();
100 }, 100 },
101 reiniciarMapa: function(){ 101 reiniciarMapa: function(){
102 - document.getElementById('formi3GeoMapOpcoes').value = "reinicia";  
103 document.getElementById('formi3GeoMapdados').value = ""; 102 document.getElementById('formi3GeoMapdados').value = "";
104 this.opcoes.locaplic = parametroUrl("locaplic"); 103 this.opcoes.locaplic = parametroUrl("locaplic");
105 this.opcoes.mapext = parametroUrl("mapext"); 104 this.opcoes.mapext = parametroUrl("mapext");