<?php require_once 'database.php'; if (isset($_POST['tipo_local'])) { $tipo_local = $_POST['tipo_local']; $db = new Database(); $mis_locales = $db->mostrarLocales($tipo_local); //var_dump($mis_locales); ?> <!DOCTYPE html> <html> <head> <title>Simple Map</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> html, body, #map-canvas { height: 100%; margin: 10px 35px 0 20px; padding: 0px } </style> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> <script> var map; var geocoder; function initialize() { geocoder = new google.maps.Geocoder(); // Inicializa la funcion Geocoder() -> geolocalizacion en el GEOCODING var myLatlng = new google.maps.LatLng(40.948076,-5.619511); // Santa Marta de Tormes Salamanca