Commit 44ce587318da1b478f57739395d3bd5f42cac886
1 parent
34794763
Exists in
master
and in
7 other branches
Inclusão da biblioteca Reclinejs
Showing
2 changed files
with
11 additions
and
11 deletions
Show diff stats
ferramentas/recline/default.php
| @@ -56,13 +56,9 @@ | @@ -56,13 +56,9 @@ | ||
| 56 | </div> | 56 | </div> |
| 57 | </div> | 57 | </div> |
| 58 | <br><br> | 58 | <br><br> |
| 59 | - <div class="container"> | ||
| 60 | - <style type="text/css"> | ||
| 61 | - .recline-slickgrid { | ||
| 62 | - height: 300px; | ||
| 63 | - } | ||
| 64 | - | ||
| 65 | - </style> | 59 | + <div class="container" style="height: 100%"> |
| 60 | +<style type="text/css">.recline-slickgrid { height: 500px; }</style> | ||
| 61 | + | ||
| 66 | 62 | ||
| 67 | <div class="data-explorer-here"></div> | 63 | <div class="data-explorer-here"></div> |
| 68 | <div style="clear: both;"></div> | 64 | <div style="clear: both;"></div> |
| @@ -73,7 +69,7 @@ | @@ -73,7 +69,7 @@ | ||
| 73 | window.explorerDiv = $('.data-explorer-here'); | 69 | window.explorerDiv = $('.data-explorer-here'); |
| 74 | 70 | ||
| 75 | // create the demo dataset | 71 | // create the demo dataset |
| 76 | - var dataset = createDemoDataset(); | 72 | + var dataset = createDataset(); |
| 77 | // now create the multiview | 73 | // now create the multiview |
| 78 | // this is rather more elaborate than the minimum as we configure the | 74 | // this is rather more elaborate than the minimum as we configure the |
| 79 | // MultiView in various ways (see function below) | 75 | // MultiView in various ways (see function below) |
| @@ -91,7 +87,7 @@ | @@ -91,7 +87,7 @@ | ||
| 91 | }); | 87 | }); |
| 92 | 88 | ||
| 93 | // create standard demo dataset | 89 | // create standard demo dataset |
| 94 | -function createDemoDataset() { | 90 | +function createDataset() { |
| 95 | var dataset = new recline.Model.Dataset( | 91 | var dataset = new recline.Model.Dataset( |
| 96 | <?php | 92 | <?php |
| 97 | $format = "gdocs"; | 93 | $format = "gdocs"; |
json.php
| @@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); | @@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); | ||
| 60 | $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; | 60 | $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; |
| 61 | $nomeMapfileTmp = $nomeArq.".map"; | 61 | $nomeMapfileTmp = $nomeArq.".map"; |
| 62 | 62 | ||
| 63 | -carregaCacheArquivo(); | 63 | +$cache = carregaCacheArquivo(); |
| 64 | +if($cache == true){ | ||
| 65 | + return; | ||
| 66 | +} | ||
| 64 | // | 67 | // |
| 65 | //pega a versao do Mapserver | 68 | //pega a versao do Mapserver |
| 66 | // | 69 | // |
| @@ -327,8 +330,9 @@ function carregaCacheArquivo(){ | @@ -327,8 +330,9 @@ function carregaCacheArquivo(){ | ||
| 327 | if(file_exists($nomeArq.".json")){ | 330 | if(file_exists($nomeArq.".json")){ |
| 328 | header("Content-type: application/json"); | 331 | header("Content-type: application/json"); |
| 329 | readfile($nomeArq.".json"); | 332 | readfile($nomeArq.".json"); |
| 330 | - exit; | 333 | + return true; |
| 331 | } | 334 | } |
| 335 | + return false; | ||
| 332 | } | 336 | } |
| 333 | 337 | ||
| 334 | function pegaDadosJ(){ | 338 | function pegaDadosJ(){ |