From 0ba0fdbdb67849b197e84dc4f2b241cdfd600ae0 Mon Sep 17 00:00:00 2001 From: humano Date: Sun, 27 Oct 2019 08:59:51 -0500 Subject: [PATCH] Correccion item unico en geojson --- funciones/funciones.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funciones/funciones.php b/funciones/funciones.php index 0b5a4c1..afeb513 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -12575,6 +12575,7 @@ function imprime_geojson($id,$id2,$plantilla,$busqueda,$item){ $campo2 = buscar_campo_tipo($id_form2,"14"); $id_campo = $campo[0]; $id_campo2 = $campo2[0]; + $geometria =""; $or_2 =""; $w_id2=""; if($busqueda !="") { @@ -12670,7 +12671,7 @@ while( $row = mysqli_fetch_array( $sql ) ) { //$propiedades[sounds] =""; //$propiedades[url] =''; - $geometria = "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},"; + $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},"; $features[] = $marcador; $id++;