How mr-pairot/bpnp_map_demo works
This repository appears to implement a Thai-language web map for monitoring a double-track railway project. The likely user workflow is to open the map, inspect construction and infrastructure layers, and use map tools or panels for detailed progress and location information. Major capabilities include bridge and track progress, earthworks, signalling, signs, measurement, routing, search, and account access. The README is empty; several components are represented by the source index or filenames, so links between unsampled modules are omitted rather than assumed.
Main entry points: BridgeLayerManager.js Bridge layers · sw_light_manager.js Light signalling · ui_manager.js UI management · main.js Map application
Components 24
Map and navigation
- Map application
js/main.js - Map controls
js/map_ui.js - Map search
js/leaflet-search.js - Address search
js/search_address.js - Station search
js/search_sta.js - Route planning
js/routing_main.js - Route interface
js/routing_ui.js - Map measurement
js/measurement-plus.js
Construction progress
- Bridge layers
js/BridgeLayerManager.js - Bridge details
js/BridgeBottomPanel.js - Track progress
js/tw_ProgressManager.js - Earthworks
js/embankment.js - Excavation
js/excavate.js - Track summary
js/sw_summary_panel.js
Railway infrastructure
- LOC signalling
js/sw_loc_manager.js - Light signalling
js/sw_light_manager.js - Sign placement
js/signManager.js - Height-limit signs
js/HeightSignManager.js - Bridge imagery
js/bridge_image.js
Application services
- User authentication
js/auth.js - UI management
js/ui_manager.js - Popup rendering
js/popupEngine.js - Offline cache
sw.js
Other components
- Map user
Connections 4
- Map user → Map application: opens
- Bridge layers → Bridge imagery: loads imagery
- Light signalling → Track summary: opens panel
- UI management → Sign placement: creates manager
js/ui_manager.js