-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoriginal.html
More file actions
25 lines (24 loc) · 844 Bytes
/
original.html
File metadata and controls
25 lines (24 loc) · 844 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
<div id="map"></div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 17,
center: {lat: 33.5085134, lng: -112.0338426},
mapTypeId: 'terrain'
});
var McCain = {lat: 33.5085134, lng: -112.0338426};
var Flake = {lat: 33.5096555, lng: -112.036279};
var flightPlanCoordinates = [McCain, Flake];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC5nrnwZenEbvnakw4HYs1raZBFQky3U7w&callback=initMap">
</script>