“Cómo mostrar el mapa de Google en HTML” Código de respuesta

Cómo agregar el mapa de Google en HTML

<div id="googleMap" style="width:100%;height:400px;"></div>

<script>
function myMap() {
var mapProp= {
  center:new google.maps.LatLng(51.508742,-0.120850),
  zoom:5,
};
var map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
}
</script>

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>
Kishwar Jabeen

Cómo mostrar el mapa de Google en HTML

<!-- Simply open this link and choose the location, that you want to add to your site. --!>
<!-- Use this link: https://google-map-generator.com/ --!>
<!-- Here is a basic html with google maps html-code from the link in it. --!>

<!DOCTYPE html>
<html>
  <head>
    <title>Title/page name</title>
  </head>
  <body>
    <h1>Google Maps</h1>
    <div class="mapouter">
    <div class="gmap_canvas"><iframe width="600" height="500" id="gmap_canvas" src="https://maps.google.com/maps?q=2880%20Broadway,%20New%20York&t=&z=13&ie=UTF8&iwloc=&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
    <a href="https://123movies-to.org">123 movies</a>
    <br>
    <style>.mapouter{position:relative;text-align:right;height:500px;width:600px;}</style>
    <a href="https://www.embedgooglemap.net">google maps widget html</a>
    <style>.gmap_canvas {overflow:hidden;background:none!important;height:500px;width:600px;}</style>
    </div>
    </div>
  </body>
</html>
Different Dog

Cómo mostrar el mapa de Google en HTML

There's ma how-to here: https://developers.google.com/maps/documentation/javascript/adding-a-google-map#maps_add_map-html
takemetothelakeswhereallthepoetswenttodie

Respuestas similares a “Cómo mostrar el mapa de Google en HTML”

Preguntas similares a “Cómo mostrar el mapa de Google en HTML”

Más respuestas relacionadas con “Cómo mostrar el mapa de Google en HTML” en HTML

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código