-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.js
56 lines (54 loc) · 867 Bytes
/
map.js
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
function initMap() {
const pinone = {
lat: maponelat,
lng: maponelong
};
const pintwo = {
lat: maptwolat,
lng: maptwolong
};
const pinthree = {
lat: mapthreelat,
lng: mapthreelong
};
const pinfour = {
lat: mapfourlat,
lng: mapfourlong
};
const pinfive = {
lat: mapfivelat,
lng: mapfivelong
};
const pinsix = {
lat: mapsixlat,
lng: mapsixlong
};
const map = new google.maps.Map(document.getElementById("map"), {
zoom: 3,
center: pinone,
});
new google.maps.Marker({
position: pinone, // 1
map,
});
new google.maps.Marker({
position: pintwo, // 2
map,
});
new google.maps.Marker({
position: pinthree, // 3
map,
});
new google.maps.Marker({
position: pinfour, // 4
map,
});
new google.maps.Marker({
position: pinfive, // 5
map,
});
new google.maps.Marker({
position: pinsix, // 6
map,
});
}