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++;