-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoogle_api.html
42 lines (34 loc) · 946 Bytes
/
google_api.html
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
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#map-canvas {
width: 770px;
height: 481px;
}
</style>
</head>
<body>
<!-- div to hold map -->
<div id="map-canvas"></div>
<!-- Load the Google Maps API [DON'T FORGET TO USE A KEY] -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAyEgVrhRqYtlt38mWnedgI8zY0qve_Mbc"></script>
<!-- Script to show address on map -->
<script type="text/javascript">
(function() {
"use strict";
// Set our map options
var mapOptions = {
// Set the zoom level
zoom: 19,
// This sets the center of the map at our location
center: {
lat: 29.426791,
lng: -98.489602
}
};
// Render the map
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
})();
</script>
</body>