Commit d26fafe88fa427bb9d169c135bbb535df2a5d29c
1 parent
17d152be
Exists in
master
and in
7 other branches
Inclusão do parâmetro extensão geográfica na ferramenta de linha do tempo
Showing
4 changed files
with
10 additions
and
3 deletions
Show diff stats
classesphp/graficos.php
| @@ -423,9 +423,14 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t | @@ -423,9 +423,14 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t | ||
| 423 | } | 423 | } |
| 424 | return array("dados"=>$nnval,"ndados"=>$nval,"max"=>$max); | 424 | return array("dados"=>$nnval,"ndados"=>$nval,"max"=>$max); |
| 425 | } | 425 | } |
| 426 | -function dadosLinhaDoTempo($map_file,$tema) | 426 | +function dadosLinhaDoTempo($map_file,$tema,$ext="") |
| 427 | { | 427 | { |
| 428 | $map = ms_newMapObj($map_file); | 428 | $map = ms_newMapObj($map_file); |
| 429 | + if($ext && $ext != ""){ | ||
| 430 | + $e = explode(" ",$ext); | ||
| 431 | + $extatual = $map->extent; | ||
| 432 | + $extatual->setextent((min($e[0],$e[2])),(min($e[1],$e[3])),(max($e[0],$e[2])),(max($e[1],$e[3]))); | ||
| 433 | + } | ||
| 429 | $selecionados = "sim"; | 434 | $selecionados = "sim"; |
| 430 | $qyfile = str_replace(".map",".qy",$map_file); | 435 | $qyfile = str_replace(".map",".qy",$map_file); |
| 431 | if (file_exists($qyfile)) | 436 | if (file_exists($qyfile)) |
classesphp/mapa_controle.php
| @@ -1594,7 +1594,9 @@ Pega os dados de um tema para geração do gráfico de linha do tempo. | @@ -1594,7 +1594,9 @@ Pega os dados de um tema para geração do gráfico de linha do tempo. | ||
| 1594 | */ | 1594 | */ |
| 1595 | case "DADOSLINHADOTEMPO": | 1595 | case "DADOSLINHADOTEMPO": |
| 1596 | include_once("graficos.php"); | 1596 | include_once("graficos.php"); |
| 1597 | - $retorno = dadosLinhaDoTempo($map_file,$tema); | 1597 | + if(!isset($ext)) |
| 1598 | + {$ext = "";} | ||
| 1599 | + $retorno = dadosLinhaDoTempo($map_file,$tema,$ext); | ||
| 1598 | break; | 1600 | break; |
| 1599 | /* | 1601 | /* |
| 1600 | Section: Menu de temas | 1602 | Section: Menu de temas |
ferramentas/linhadotempo/index.php
| @@ -112,7 +112,7 @@ function carregaDados(){ | @@ -112,7 +112,7 @@ function carregaDados(){ | ||
| 112 | eventSource1.loadJSON(retorno.data, '.'); // The data was stored into the | 112 | eventSource1.loadJSON(retorno.data, '.'); // The data was stored into the |
| 113 | tl.layout(); // display the Timeline | 113 | tl.layout(); // display the Timeline |
| 114 | } | 114 | } |
| 115 | - var p = window.parent.i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=dadosLinhaDoTempo&g_sid="+window.parent.i3GEO.configura.sid+"&tema="+$i("tema").value; | 115 | + var p = window.parent.i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=dadosLinhaDoTempo&g_sid="+window.parent.i3GEO.configura.sid+"&tema="+$i("tema").value+"&ext="+window.parent.i3GEO.parametros.mapexten; |
| 116 | cpJSON.call(p,"void",retorna); | 116 | cpJSON.call(p,"void",retorna); |
| 117 | } | 117 | } |
| 118 | function tituloover(wkt){ | 118 | function tituloover(wkt){ |
menutemas/admin.db
No preview for this file type