diff --git a/ferramentas/saiku/cartograma.php b/ferramentas/saiku/cartograma.php index 10e8285..eb1edb8 100644 --- a/ferramentas/saiku/cartograma.php +++ b/ferramentas/saiku/cartograma.php @@ -16,6 +16,7 @@ session_start(); //obtem os layers que sao do sistema metaestat, sao regioes e que possuem selecao $map_file = $_SESSION["map_file"]; //remove as camadas do SAIKU +$opcoes = (array) json_decode($_POST["opcoes"],true); if($_POST["dados"] == ""){ $mapa = ms_newMapObj($map_file); $nlayers = $mapa->numlayers; @@ -29,7 +30,6 @@ if($_POST["dados"] == ""){ } else{ $dados = (array) json_decode($_POST["dados"],true); - $opcoes = (array) json_decode($_POST["opcoes"],true); $metadados = (array) json_decode($_POST["metadados"],true); $nmetadados = count($metadados); //pega o id da regiao (busca pelo posfixo geocod) diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/plugins/i3GeoMap/plugin.js b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/plugins/i3GeoMap/plugin.js index 58b2729..dfb54fc 100644 --- a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/plugins/i3GeoMap/plugin.js +++ b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/plugins/i3GeoMap/plugin.js @@ -99,7 +99,6 @@ var i3GeoMap = Backbone.View.extend({ document.getElementById('formi3GeoMap').submit(); }, reiniciarMapa: function(){ - document.getElementById('formi3GeoMapOpcoes').value = "reinicia"; document.getElementById('formi3GeoMapdados').value = ""; this.opcoes.locaplic = parametroUrl("locaplic"); this.opcoes.mapext = parametroUrl("mapext"); -- libgit2 0.21.2