How eddy961206/photo_map works
Main Components
A. Frontend Layer:
• Web Client (Browser)
• UI Components:
• View (Leaflet)
• Image Gallery
• Marker Clusters
B. Backend Layer:
• Node.js Express Server
• File System Handler
• EXIF Parser Service
C. Storage Layer:
• Local File System (images folder)
Component Relationships and Data Flow
[Client Browser] ←→ [Express Server] ←→ [File System]
Detailed Component Breakdown
Frontend (Client-Side):
• UI Layer
• Leaflet Map Component
• Marker Cluster Plugin
• Image Gallery Component
• Client-Side JavaScript (index.js)
Backend (Server-Side):
• Express Server (server.js)
• API Routes
• /api/images
• /api/image_data
• EXIF Parser Service
• File System Handler
Client-Server Communication
• GET /api/images
• GET /api/image_data
Server-File System Interaction
• Image file reading
• EXIF data extraction
Data Processing Flow
• File reading → EXIF parsing → GPS conversion → JSON response
Additional Elements
Technical details in notes or callouts:
• Server port: 3000
• Supported file format: JPG
• Key libraries: Leaflet, exif-parser
• Data transformation: GPS coordinates to decimal format