How to Use Google Map in Website
Hello guys welcome to HTML Page
I will teach you How to set google map in Html Website Page So let's Start.
Siple is that....
I will teach you How to set google map in Html Website Page So let's Start.
Siple is that....
Start with a simple basic web page.
Add a <div> element where you want the map to display:
<!DOCTYPE html>
<html>
<body>
<h1>Deepniitsolution Google map</h1>
<div id="map" style="width:400px;height:400px;background:yellow"></div>
<script>
function myMap() {
var mapCanvas = document.getElementById("map");
var mapOptions = {
center: new google.maps.LatLng(28.7, 77.1), zoom: 10
};
var map = new google.maps.Map(mapCanvas, mapOptions);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&callback=myMap"></script>
</body>
</html>
No comments