xxxxxxxxxx
There's ma how-to here: https://developers.google.com/maps/documentation/javascript/adding-a-google-map#maps_add_map-html
xxxxxxxxxx
<!-- 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>
xxxxxxxxxx
//go to google map, type in the address
//click on the menu
//look for share or embed map
//click on embed map and copy the html code
<iframe src="https://www.google.com/maps/embed?LINK" width="#" height="#" style="border:0;" allowfullscreen="" loading="lazy">
</iframe>
xxxxxxxxxx
<!-- 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>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>Google Map Example</title>
<style>
#map {
height: 400px;
width: 100%;
}
</style>
</head>
<body>
<h1>My Map</h1>
<div id="map"></div>
<script>
// Initialize and display the map
function initMap() {
var myLatLng = {lat: 37.7749, lng: -122.4194}; // Specify the map center coordinates
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
zoom: 12 // Adjust the zoom level as desired
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'My Location' // Optional - add a tooltip on marker hover
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>
</body>
</html>