Widget:Mapa

From Local Guides Brasil
Jump to navigation Jump to search

<!DOCTYPE html> <html>

 <head>
   <style>
      /* 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 */
      }
   </style>
 </head>
 <body>

Brasil

   <script>

// 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>
   <script async defer
   src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC9Uc_P8qJVItgfJ6XtcS0YC_5vLn3et1Y&callback=initMap">
   </script>
 </body>

</html>