forked from reggie3/react-native-webview-leaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
locations.js
228 lines (227 loc) · 7.34 KB
/
locations.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
const emoji = ['😴', '😄', '😃', '⛔', '🎠', '🚓', '🚇'];
const animations = ['bounce', 'fade', 'pulse', 'jump', 'waggle', 'spin'];
const duration = Math.floor(Math.random() * 3) + 1;
const delay = Math.floor(Math.random()) * 0.5;
const interationCount = 'infinite';
export default (locations = [
{
id: Math.floor(Math.random() * 1000),
coords: [37.06452161, -75.67364786],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
/* {
id: Math.floor(Math.random() * 1000),
coords: [36.46410354, -75.6432701],
icon: 'Hello',
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.60061515, -76.48888338],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.0580835, -75.82318747],
icon: 'Fish',
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.23310632, -76.23518332],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.94994253, -76.64318409],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.19810239, -76.28058546],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.02416165, -76.56052521],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.91541467, -75.49279245],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.70503123, -76.32755185],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.31605891, -76.45141618],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.59436803, -76.89486842],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.35740877, -75.77910112],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.31509182, -76.76693784],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.91815909, -76.06707072],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.611917, -75.76758822],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.79520769, -76.3959497],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.42854666, -75.95883052],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [36.78673099, -76.90459724],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
},
{
id: Math.floor(Math.random() * 1000),
coords: [37.20966767, -75.58799685],
icon: emoji[Math.floor(Math.random() * emoji.length)],
animation: {
name: animations[Math.floor(Math.random() * animations.length)],
duration: Math.floor(Math.random() * 3) + 1,
delay: Math.floor(Math.random()) * 0.5,
interationCount
}
} */
]);