-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoogle_map.html
More file actions
37 lines (34 loc) · 871 Bytes
/
Copy pathGoogle_map.html
File metadata and controls
37 lines (34 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 400px;
width: 100%;
}
</style>
</head>
<body>
<h3>GFG Google Maps Demo</h3>
<div id="map"></div>
<script>
function initMap() {
var Gandhinagar = {
lat: 23.223350,
lng: 23.223350
};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: Gandhinagar
});
var marker = new google.maps.Marker({
position: Gandhinagar,
map: map
});
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=
AIzaSyDipE2U0AZLc6KC6DY7yzP_l9ou_V8Spa0&callback=initMap">
</script>
</body>
</html>