How openstreetmap/id works
Main Components Structure
a) Core Application Layer:
• Main components: Context, Graph, History, and Validator
• LocationManager and Preferences as supporting core services
b) Data Model Layer:
• OSM data model (modules/osm/) showing entities (Node, Way, Relation)
• To the core Graph component
• Changeset and Tags management systems
c) User Interface Layer:
• Extensive UI components (modules/ui/)
• Related UI components:
• Main UI (sidebar, panels, panes)
• Entity editors
• Field controls
• Modal dialogs
• Tools and controls
d) Rendering Layer:
• Renderer components (modules/renderer/)
• SVG rendering system (modules/svg/)
• To map features and background sources
e) Behavioral Layer:
• Behavior modules (modules/behavior/)
• To the modes system (modules/modes/)
Component Relationships
• Blue: Data flow
• Green: User interaction flow
• Orange: Service calls
External Services Integration
• OSM API integration
• Third-party services (Mapillary, KartaView, Nominatim)
• Background tile providers
• Validation services (KeepRight, Osmose)
Key Technical Elements
Important technical aspects:
• D3.js rendering integration
• Validation system
• History/undo system
• Presets and tagging schema
• Localization system
Additional Details
Annotations for:
• Key file locations
• Configuration points
• Extension points
• Test coverage
• Build process integration