//url: 'http://cie.servehttp.com/lepra.chiapas/include/cta.kml' }); archivoKML.setMap(map);*/ /*var kmlLayer = new google.maps.KmlLayer({ url: 'http://cie.servehttp.com/lepra.chiapas/include/jurs.KML', suppressInfoWindows: true, map: map });*/ <?php if (!empty($_POST)) { require_once 'include/clases/KML.php'; $archivoKML = new KML(); $archivoKML->queryKML($_POST['tipo_paciente'], $_POST['fecha_inicio'], $_POST['fecha_fin'], $_POST['estado']); $matriz = $archivoKML->getMatriz(); if ($matriz == null) { echo 'alert("No se econtraron casos");'; } else { //print_r($matriz); foreach ($matriz as $elemento) { echo ' var pac_' . $elemento['id'] . ' = new google.maps.Marker({ position: new google.maps.LatLng(' . $elemento['lat'] . ', ' . $elemento['lon'] . '), map: map, title: "' . $elemento['name'] . '", icon: "'; if ($elemento['sexo'] == 1) { echo 'http://maps.google.com/mapfiles/kml/shapes/man.png'; } else { echo 'http://maps.google.com/mapfiles/kml/shapes/woman.png';