Integración de cache a mapero.php

This commit is contained in:
humano 2020-04-24 10:01:13 -05:00
parent 7a3653f9ce
commit 7849e0af2d
5 changed files with 10196 additions and 43852 deletions

2
geojsoncaen.js.php → cache/geojson_1045.json vendored Normal file → Executable file
View File

@ -41441,4 +41441,4 @@ let geojsonSample = [{
],
"time": 1587439002,
"name": 1483086223
}} ]}];
}} ]}];

10168
cache/geojson_74.json vendored Executable file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -185,9 +185,10 @@ $css_adicional ="<style>
$css_adicional[0]
</style>";
print $css_adicional;
}
print $css_adicional;
?>
<style>
body {
@ -246,7 +247,7 @@ print $css_adicional;
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
</h1>
<hr>
<label id='formulario_descripcion_mapa'><?php echo $formulario_descripcion[0] ?></label>
<label id='formulario_descripcion_mapa'><?php echo "$formulario_descripcion[0]"; ?></label>
<center>
<span class="label label-warning"><?php echo $mapa_aviso; ?></span>
@ -280,9 +281,23 @@ print $css_adicional;
<script src="./librerias/bootstrap/js/bootstrap.min.js" ></script>
<!-- <script src="librerias/jquery/jquery-2.1.4.min.js"></script> -->
<?php $cadena_busqueda = $_REQUEST['buscar']; ?>
<?php $cadena_busqueda = $_REQUEST['buscar'];
if(isset($_REQUEST['buscar'])){
$geojson = "milfs/geojson.js.php?id=$_REQUEST[id]&buscar=$cadena_busqueda&item=$_REQUEST[item]";
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $cadena_busqueda ?>&item=<?php echo $_REQUEST['item'] ?>"></script>
}else{
$nombre_geojson = "cache/geojson_$_REQUEST[id].json";
if (is_readable($nombre_geojson)) {
$geojson= "$nombre_geojson";
} else {
$geojson= "milfs/geojson.js.php?id=$_REQUEST[id]";
}
//$geojson ="geojsoncaen.js.php";
}
?>
<script type="text/javascript" src="<?php echo $geojson; ?>"></script>
<script src="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet-responsive-popup@0.6.4/leaflet.responsive.popup.css" />
@ -325,7 +340,7 @@ print $css_adicional;
}
);
layer.bindTooltip(feature.properties.title).openTooltip();
}
});

View File

@ -286,8 +286,13 @@ print $css_adicional;
$geojson = "milfs/geojson.js.php?id=$_REQUEST[id]&buscar=$cadena_busqueda&item=$_REQUEST[item]";
}else{
$geojson ="geojsoncaen.js.php";
$nombre_geojson = "cache/geojson_$_REQUEST[id].json";
if (is_readable($nombre_geojson)) {
$geojson= "$nombre_geojson";
} else {
$geojson= "milfs/geojson.js.php?id=$_REQUEST[id]";
}
//$geojson ="geojsoncaen.js.php";
}
?>