-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
71 lines (64 loc) · 1.5 KB
/
template.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 100%;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 3,
center: {lat: 0, lng: 0},
mapTypeId: 'terrain'
});
var marker = new google.maps.Marker({
$startPostion
map: map,
title: 'Start Location',
icon: "http://maps.google.com/mapfiles/ms/micons/green.png"
});
var marker = new google.maps.Marker({
$endPostion
map: map,
title: 'End Location',
icon: "http://maps.google.com/mapfiles/ms/micons/red.png"
});
var waterPathSet = [
$waterPathSet
];
var timePathSet = [
$timePathSet
];
var waterPath = new google.maps.Polyline({
path: waterPathSet,
geodesic: true,
strokeColor: '#FFFFFF',
strokeOpacity: 1.0,
strokeWeight: 5
});
var timePath = new google.maps.Polyline({
path: timePathSet,
geodesic: true,
strokeColor: '#FFFF00',
strokeOpacity: 1.0,
strokeWeight: 5
});
waterPath.setMap(map);
timePath.setMap(map);
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7J1zsErb9_7jxNu5KU5kIENFObAQEbl0&callback=initMap">
</script>
</body>
</html>