-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
executable file
·485 lines (470 loc) · 13.6 KB
/
config.js
File metadata and controls
executable file
·485 lines (470 loc) · 13.6 KB
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
let topTitleDiv = "";
let titleDiv =
"<h1>City Sensing</h1>"+
"<h1>Using Computer Vision to Probe Urban Perception</h1>"+
'<p style="text-align:center">In this study, I integrate 21,703 Google Streetview images with the Place Pulse 2.0 dataset, using advanced computer vision techniques to explore how people perceive urban spaces, sky views, and bicycle-friendly paths. Through this integrated content, we aim to gain a deeper understanding of how urban design influences our daily experiences and emotional responses.</p>' +
'<p style="text-align:center">Scroll to continue</p>';
let bylineDiv = "";
let descriptionDiv ='';
let footerDiv ='';
let divChapter1 =
"<h3>Exploring Depths of Urban DEPRESSION</h3>" +
"<p></p>";
let divChapter2 =
"<h3>The StreetView Image with Highest Depressing Score</h3>" +
'<img src="data/17022.jpg">' +
'<img src="data/17022.png">' +
'<img src="data/17022_6.jpg">' +
"<p>This image showcases an expansive stretch of buildings, punctuated by scant greenery and dominated by a cold, grey hue — factors that contribute to its pronounced depressing score</p>";
let divChapter3 =
"<h3>Feeling the Vibrance of Urban LIVELINESS</h3>" +
"<p></p>";
let divChapter4 =
"<h3>The StreetView Image with the Highest Lively Score</h3>" +
'<img src="data/3945.jpg">' +
'<img src="data/3945.png">' +
'<img src="data/3945_6.jpg">' +
"<p>This image boasts a variety of items and a rich palette of colors, which likely contribute to its vibrant sense of liveliness.</p>";
let divChapter5 =
"<h3>Seeking Comfort in Urban SAFETY</h3>" +
"<p></p>";
let divChapter6 =
"<h3>The StreetView Image with Highest Safety Score</h3>" +
'<img src="data/6427.jpg">' +
'<img src="data/6427.png">' +
'<img src="data/6427_6.jpg">' +
"<p>This image reveals a narrow street dominated by a warm red hue, potentially evoking feelings of enclosure and protection. </p>";
let divChapter7 =
"<h3>NYC Skyview</h3>" +
'<img src="data/skyview.gif">' +
"<p>Using Grasshopper sky exposure custom analysis tool and derive spatial data skills to analyze the ratio of sky view in each street of Manhattan.Through analysis, it's evident that in Lower Manhattan, the Lower East area boasts a more expansive skyview. In contrast, the Financial District and Soho have a more restricted view of the sky. While the entirety of Midtown generally offers limited skyview, Hudson Yards, Hell's Kitchen, and the East Village stand out with higher skyview ratios. The Upper East Side's skyview ratio is significantly lower than that of the Upper West Side. Meanwhile, Upper Manhattan and Harlem present a moderately high skyview ratio.</p>";
let divChapter8 =
"<h3>NYC Skyview</h3>" +
'<img src="data/corsky.png">' +
"<p>Through correlation analysis, I observed that the sky view ratio is inversely correlated with perceptions of depression, liveliness, and safety. Specifically, as sky visibility increases, people perceive their surroundings as less depressing and less unsafe, which intuitively makes sense. However, intriguingly, as sky visibility goes up, there's also a decreased perception of liveliness. Upon analyzing images rated highest for liveliness, we deduced that a sense of liveliness often demands rich elements and warm colors. This may explain why areas with higher sky visibility might be perceived as less lively.</p>";
let divChapter9 =
"<h3>NYC Citi Bike</h3>" +
'<img src="data/bike.gif">' +
"<p>Using Python, I visualized the trajectories of New York's Citibike in 2019 and the post-pandemic year of 2022 during weekdays and weekends, focusing on the time intervals of 6-12, 12-18, and 18-24. Blue marks the starting points, yellow indicates the endpoints, and the thickness of each route is adjusted based on its frequency to highlight the most popular Citibike routes. Furthermore, the size of the circles for origin-destination (OD) points was adjusted based on their quantity. Interestingly, the consistent size of the 2019 OD points suggests that users might have preferred starting and ending at the same location. In 2022, Midtown emerged as a prominent departure point, while Downtown and the Upper East Side were popular destinations, hinting at potential attractions in these areas. Brooklyn and Queens maintained relatively consistent OD counts, which could be attributed to their residential nature, where the number of departures and returns are balanced.</p>";
let divChapter10 =
"<h3>NYC Citi Bike</h3>" +
'<img src="data/corbike.png">' +
"<p>Based on correlation analysis, the number of bike end stations inversely correlates with the level of perceived depression, indicating that popular stations are located in areas that are not perceived as boring. Interestingly, scores for other perceptions such as safety and liveliness showed no correlation with the bike end stations. This suggests that biking preferences aren't solely determined by urban environments but also influenced by other factors like points of interest (POI), land use, and more.</p>";
var config = {
style: "mapbox://styles/hongqianli/clkz0gnx000lw01p7375xf0qf",
accessToken: "pk.eyJ1IjoiaG9uZ3FpYW5saSIsImEiOiJjbGticW84cjIwaGRjM2xvNjNrMjh4cmRyIn0.o65hBMiuqrCXY-3-bxGsUg",
showMarkers: false,
markerColor: "#3FB1CE",
theme: "light",
use3dTerrain: false,
topTitle: topTitleDiv,
title: titleDiv,
subtitle: "",
byline: bylineDiv,
description: descriptionDiv,
footer: footerDiv,
chapters: [
{
id: "overallMap",
alignment: "left",
hidden: false,
chapterDiv: divChapter1,
location: {
center: [-74, 40.725],
zoom: 10,
zoomSmall: 9,
pitch: 0,
bearing: 0,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter:[
{
layer: "depressing",
opacity: 1,
duration: 300,
},
{
layer: "lively",
opacity: 0,
duration: 300,
},
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "depressing",
opacity: 0,
duration: 300,
},
],
},
{
id: "depressingPoint",
alignment: "left",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter2,
location: {
center: [-73.979, 40.751],
zoom: 18,
zoomSmall: 9,
pitch: 60,
bearing: 20,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "perceptionmax",
opacity: 1,
duration: 300,
},
{
layer: "lively",
opacity: 0,
duration: 300,
},
{
layer: "depressing",
opacity: 0,
duration: 300,
},
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "perceptionmax",
opacity: 0,
duration: 300,
},
],
},
{
id: "incomeUnderlay",
alignment: "left",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter3,
location: {
center: [-74, 40.725],
zoom: 10,
zoomSmall: 9,
pitch: 0,
bearing: 0,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "lively",
opacity: 1,
duration: 300,
},
{
layer: "depressing",
opacity: 0,
duration: 300,
},
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "lively",
opacity: 0,
duration: 300,
},
],
},
{
id: "livelypoint",
alignment: "left",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter4,
location: {
center: [-73.963, 40.764],
zoom: 18,
zoomSmall: 9,
pitch: 60,
bearing: -65,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "perceptionmax",
opacity: 1,
duration: 300,
},
{
layer: "lively",
opacity: 0,
duration: 300,
},
{
layer: "depressing",
opacity: 0,
duration: 300,
},
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "perceptionmax",
opacity: 0,
duration: 300,
},
],
},
{
id: "elmhurstHospital",
alignment: "left",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter5,
location: {
center: [-74, 40.725],
zoom: 10,
zoomSmall: 9,
pitch: 0,
bearing: 0,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "safety",
opacity: 1,
duration: 300,
},
{
layer: "lively",
opacity: 0,
duration: 300,
},
{
layer: "depressing",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
},
{
id: "sfetypoint",
alignment: "left",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter6,
location: {
center: [-73.973, 40.796],
zoom: 18,
zoomSmall: 9,
pitch: 60,
bearing: -60,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "perceptionmax",
opacity: 1,
duration: 300,
},
{
layer: "lively",
opacity: 0,
duration: 300,
},
{
layer: "depressing",
opacity: 0,
duration: 300,
},
{
layer: "safety",
opacity: 0,
duration: 300,
},
],
onChapterExit: [
{
layer: "perceptionmax",
opacity: 0,
duration: 300,
},
],
},
{
id: "skyview",
alignment: "right",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter7,
location: {
center: [-73.9856, 40.7426],
zoom: 12.5,
zoomSmall: 12.5,
pitch: 60,
bearing: -20,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "skyview",
opacity: 1,
duration: 300,
},
],
onChapterExit: [
{
layer: "skyview",
opacity: 0,
duration: 300,
},
],
},
{
id: "skyview2",
alignment: "right",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter8,
location: {
center: [-73.9856, 40.7426],
zoom: 12.5,
zoomSmall: 12.5,
pitch: 60,
bearing: -20,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "skyview",
opacity: 1,
duration: 300,
},
],
onChapterExit: [
{
layer: "skyview",
opacity: 0,
duration: 300,
},
],
},
{
id: "bikecount",
alignment: "right",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter9,
location: {
center: [-73.9856, 40.7426],
zoom: 12.5,
zoomSmall: 12.5,
pitch: 60,
bearing: -20,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "bikecount",
opacity: 1,
duration: 300,
},
],
onChapterExit: [
{
layer: "bikecount",
opacity: 0,
duration: 300,
},
],
},
{
id: "bikecount2",
alignment: "right",
hidden: false,
title: "",
image: "",
description: "",
chapterDiv: divChapter10,
location: {
center: [-73.9856, 40.7426],
zoom: 12.5,
zoomSmall: 12.5,
pitch: 60,
bearing: -20,
},
mapAnimation: "flyTo",
rotateAnimation: false,
callback: "",
onChapterEnter: [
{
layer: "bikecount",
opacity: 1,
duration: 300,
},
],
onChapterExit: [
{
layer: "bikecount",
opacity: 0,
duration: 300,
},
],
},
],
};