diff --git a/ferramentas/saiku/cartograma.php b/ferramentas/saiku/cartograma.php index 3522918..10e8285 100644 --- a/ferramentas/saiku/cartograma.php +++ b/ferramentas/saiku/cartograma.php @@ -16,7 +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 -if($_POST["opcoes"] == ""){ +if($_POST["dados"] == ""){ $mapa = ms_newMapObj($map_file); $nlayers = $mapa->numlayers; for($i=0;$i<$nlayers;$i++){ 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 acab38d..58b2729 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 @@ -101,6 +101,9 @@ var i3GeoMap = Backbone.View.extend({ reiniciarMapa: function(){ document.getElementById('formi3GeoMapOpcoes').value = "reinicia"; document.getElementById('formi3GeoMapdados').value = ""; + this.opcoes.locaplic = parametroUrl("locaplic"); + this.opcoes.mapext = parametroUrl("mapext"); + document.getElementById("formi3GeoMapOpcoes").value = JSON.stringify(this.opcoes); document.getElementById('formi3GeoMap').submit(); }, show: function(event, ui) { -- libgit2 0.21.2