$lat,'lon'=>$lon); $formulario = formulario_imprimir($row[id],$row[control],'full'); $propiedades = formulario_imprimir_linea($row[id],$row[control],"array");// $propiedades["name"] ="
$formulario
"; //$propiedades["title"] ="images/pin.png"; //$propiedades[icon][iconUrl] = "images/pin.png"; //formulario_imprimir($id,$control) //$marcador["zoom"] = $zoom; //$geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK).",\"properties\":{}},"; $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT)."},"; $features[] = $marcador; //$resultado .= "
  • $row[tipo]
    $row[title]
    $row[description]
  • "; $id++; } } /* //encode and output jsonObject header('Content-Type: text/plain'); //echo $consulta; $resultado = " { \"type\": \"FeatureCollection\", \"features\": "; $resultado .= json_encode($features,JSON_NUMERIC_CHECK); $resultado .= "}"; //echo $resultado; $geometria = substr("$geometria",0,-1); $geometria = "{ \"type\": \"FeatureCollection\", \"features\": [$geometria ]}"; return $geometria; */ //-75.58295 6.25578 16 //{"geometry": {"type": "Point", "coordinates": [48.460711540220927, 39.562486386735543]}, "type": "Feature", "properties": {}} //encode and output jsonObject header('Content-Type: application/json'); //echo $consulta; //$resultado = " { \"type\": \"FeatureCollection\", \"features\": "; $resultado .= json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT); //$resultado .= "}"; //echo $resultado; $geometria = substr("$geometria",0,-1); /*$geometria = "{ \"type\": \"FeatureCollection\", \"features\": [$geometria ]}"; */ echo $geometria; ?>