Integración de cache a mapero.php
This commit is contained in:
parent
7a3653f9ce
commit
7849e0af2d
0
geojsoncaen.js.php → cache/geojson_1045.json
vendored
Normal file → Executable file
0
geojsoncaen.js.php → cache/geojson_1045.json
vendored
Normal file → Executable file
10168
cache/geojson_74.json
vendored
Executable file
10168
cache/geojson_74.json
vendored
Executable file
File diff suppressed because it is too large
Load Diff
43844
geojsoncaen.js
43844
geojsoncaen.js
File diff suppressed because one or more lines are too long
23
mapero.php
23
mapero.php
@ -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" />
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user