How zipecchia/2025-group-project-gruppo_4 works
This is a browser-based explorer of metro systems worldwide. Users search or select a city, then inspect its systems, lines, and stations on an interactive map; a year timeline animates construction and operation over time. Startup loads and unpacks the bundled transit datasets, filters them, and chooses the city-list or map view. Map rendering builds line and station features from section and station data. The excerpts show the main UI and data flow; unsampled files and data contents limit certainty about other capabilities.
Main entry points: view_map.js City map view · logic_map.js Map rendering · sketch.js App startup · logic_animation.js Year animation
Components 12
Startup and data
- App startup
sketch.js - Transit datasets
data - Dataset filtering
data_filter.js - App state
globals.js
City browsing
- City search
view_list.js - City map view
view_map.js
Map and timeline
- Map rendering
logic_map.js - Year animation
logic_animation.js
Shared logic
- City hierarchy
helpers.js - Geometry helpers
helpers.js
Other components
- Visitor
- Mapbox GL
Connections 15
- Visitor → City search: searches cities
view_list.js - Visitor → City map view: selects city
- App startup → Transit datasets: loads JSON
sketch.js - App startup → Dataset filtering: filters datasets
sketch.js - App startup → City search: opens default
sketch.js - App startup → City map view: opens URL city
sketch.js - City map view → App state: updates state
view_map.js - City map view → City hierarchy: builds sidebar
view_map.js - City map view → Map rendering: draws city map
view_map.js - City map view → Year animation: starts playback
view_map.js - Map rendering → Geometry helpers: parses geometry
logic_map.js - Map rendering → App state: reads timeline state
logic_map.js - Map rendering → Mapbox GL: adds map layers
logic_map.js - Year animation → App state: updates year
logic_animation.js - Year animation → Map rendering: refreshes filters
logic_animation.js