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 | 56 | </div> |
57 | 57 | </div> |
58 | 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 | 63 | <div class="data-explorer-here"></div> |
68 | 64 | <div style="clear: both;"></div> |
... | ... | @@ -73,7 +69,7 @@ |
73 | 69 | window.explorerDiv = $('.data-explorer-here'); |
74 | 70 | |
75 | 71 | // create the demo dataset |
76 | - var dataset = createDemoDataset(); | |
72 | + var dataset = createDataset(); | |
77 | 73 | // now create the multiview |
78 | 74 | // this is rather more elaborate than the minimum as we configure the |
79 | 75 | // MultiView in various ways (see function below) |
... | ... | @@ -91,7 +87,7 @@ |
91 | 87 | }); |
92 | 88 | |
93 | 89 | // create standard demo dataset |
94 | -function createDemoDataset() { | |
90 | +function createDataset() { | |
95 | 91 | var dataset = new recline.Model.Dataset( |
96 | 92 | <?php |
97 | 93 | $format = "gdocs"; | ... | ... |
json.php
... | ... | @@ -60,7 +60,10 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); |
60 | 60 | $nomeArq = $dir_tmp."/ogc_".md5(implode("",$_GET))."_json_".$output; |
61 | 61 | $nomeMapfileTmp = $nomeArq.".map"; |
62 | 62 | |
63 | -carregaCacheArquivo(); | |
63 | +$cache = carregaCacheArquivo(); | |
64 | +if($cache == true){ | |
65 | + return; | |
66 | +} | |
64 | 67 | // |
65 | 68 | //pega a versao do Mapserver |
66 | 69 | // |
... | ... | @@ -327,8 +330,9 @@ function carregaCacheArquivo(){ |
327 | 330 | if(file_exists($nomeArq.".json")){ |
328 | 331 | header("Content-type: application/json"); |
329 | 332 | readfile($nomeArq.".json"); |
330 | - exit; | |
333 | + return true; | |
331 | 334 | } |
335 | + return false; | |
332 | 336 | } |
333 | 337 | |
334 | 338 | function pegaDadosJ(){ | ... | ... |