-
Notifications
You must be signed in to change notification settings - Fork 0
/
mario.js
88 lines (79 loc) · 2.29 KB
/
mario.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
function initMap(){
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 23.033872914615227, lng: 72.54665526974169},
zoom: 15,
mapId: '51cf1280aa3e1fe5',
mapTypeControl: false,
fullscreeenControl : false,
streetViewControl: false
});
const markers = [
[
"flag",
23.033872914615227,
72.54665526974169,
"flag.png",
38,
31
],
[
"jump",
23.034560240050794,
72.54312931109344,
"jump.png",
38,
31
],
[
"lov",
23.030817048589107,
72.55248400436513,
"lov.png",
38,
31
],
[
"bt",
23.03808378300168,
72.55446820496171,
"bt.png",
38,
31
],
[
"pt",
23.02654998852586,
72.54782720706238,
"pt.png",
38,
31
],
[
"marker",
23.02852515098051,
72.5546706744261,
"marker.png",
38,
31
],
];
for(let i = 0; i<markers.length;i++){
const currMarker = markers[i];
new google.maps.Marker({
position: {lat: currMarker[1], lng: currMarker[2]},
map,
title: currMarker[0],
icon:{
url:currMarker[3],
scaledSize:new google.maps.Size(currMarker[4],currMarker[5])
},
animation: google.maps.Animation.DROP
});
}
}
//23.033872914615227, 72.54665526974169
//23.034560240050794, 72.54312931109344
//23.030817048589107, 72.55248400436513
//23.03808378300168, 72.55446820496171
//23.02654998852586, 72.54782720706238
//23.02852515098051, 72.5546706744261