How tariq-2/rdr2collectorsmap works
RDR2CollectorsMap is a browser-based Red Dead Online collectibles map. The main user journey is to open the map and use its map, item, cycle, and route features to locate collectibles; the README identifies the product but does not document these interactions in detail. The tree shows supporting data and feature modules, while the sampled source is mostly development utilities, so internal connections are omitted or marked unverified rather than inferred as confirmed calls.
Main entry points: map.js Map runtime · marker.js Map markers · items.json Collectible data · route-generator-nn-algorithm.js Nearest-neighbor route
Components 25
Map experience
- Collectors map
index.html - Map runtime
assets/js/map.js - Map layers
assets/js/layers.js - Map markers
assets/js/marker.js - Menu and settings
assets/js/menu.js - Image cache
service-worker.js
Map features
- Item catalog
assets/js/items.js - Inventory
assets/js/inventory.js - RDO inventory
assets/js/rdo-inventory.js - Treasure locations
assets/js/treasures.js - Madam Nazar
assets/js/nazar.js - Legendary animals
assets/js/legendary.js - Collection cycles
assets/js/cycles.js - Routes
assets/js/routes.js - Localization
assets/js/language.js
Map content
- Collectible data
data/items.json - Cycle data
data/cycles.json - Treasure data
data/treasures.json - Map geography
data/geojson - Translations
langs
Route and data utilities
- Nearest-neighbor route
dev/route-generator-nn-algorithm.js - TSP route
dev/route-generator-tsp-algorithm.js - Coordinate conversion
dev/port-source-coords-to-website-coords.js - Video data conversion
dev/port-video-old-to-new.js
Other components
- Map user
Connections 17
- Map user → Collectors map: opens
README.md - Collectors map → Map runtime: uses
- Map runtime → Map layers: uses
- Map runtime → Map markers: uses
- Menu and settings → Map runtime: configures
- Item catalog → Collectible data: loads
- Collection cycles → Cycle data: loads
- Treasure locations → Treasure data: loads
- Map layers → Map geography: loads
- Localization → Translations: loads
- Nearest-neighbor route → Map markers: routes visible markers
dev/route-generator-nn-algorithm.js - Nearest-neighbor route → Map runtime: draws route
dev/route-generator-nn-algorithm.js - TSP route → Map markers: orders visible markers
dev/route-generator-tsp-algorithm.js - TSP route → Map runtime: draws route
dev/route-generator-tsp-algorithm.js - Coordinate conversion → Collectible data: formats coordinates
- Video data conversion → Collectible data: converts item data
- Image cache → Map user: caches image requests
service-worker.js