2016-10-29 15:07:15 +00:00
|
|
|
<?php
|
|
|
|
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
|
|
|
|
require ('xajax/xajax.inc.php');
|
|
|
|
$xajax = new xajax();
|
|
|
|
require ('funciones/funciones.php');
|
|
|
|
require ('funciones/convert.php');
|
|
|
|
|
|
|
|
require ("funciones/conex.php");
|
|
|
|
|
2017-03-02 13:35:25 +00:00
|
|
|
if(!isset($_REQUEST['plantilla'])) {
|
2016-10-29 15:07:15 +00:00
|
|
|
$geojson = imprime_geojson("$_REQUEST[id]","","mapa","$_REQUEST[buscar]");
|
2017-03-02 13:35:25 +00:00
|
|
|
|
|
|
|
}else{
|
|
|
|
$geojson = imprime_geojson("$_REQUEST[id]","","$_REQUEST[plantilla]","$_REQUEST[buscar]");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-10-29 15:07:15 +00:00
|
|
|
//header('Content-Type: application/json');
|
|
|
|
echo $geojson;
|
|
|
|
|
|
|
|
?>
|