From Local Guides Brasil
Jump to navigation Jump to search

<!DOCTYPE html> <html>

      /* Set the size of the div element that contains the map */
     #map {
       height: 400px;  /* The height is 400 pixels */
       width: 100%;  /* The width is the width of the web page */



// Initialize and add the map function initMap() {

 // The location of Uluru
 var uluru = {lat: -15.794, lng: -47.882};
 // The map, centered at Uluru
 var map = new google.maps.Map(
     document.getElementById('map'), {zoom: 4, center: uluru});
 // The marker, positioned at Uluru
 var marker = new google.maps.Marker({position: uluru, map: map});


   <script async defer