How marceloprates/prettymaps works
Main Components and Architecture
a) Core Components:
• Data Fetching Layer (fetch.py)
• Preset Management System
• Configuration Management
b) External Dependencies:
• OpenStreetMap (Data Source)
• osmnx (Map Data Processing)
• matplotlib (Visualization)
• shapely (Geometry Processing)
• vsketch (Plotter Mode)
Component Relationships
[OpenStreetMap API] --> [Data Fetching Layer (fetch.py)]
• v
[Preset System] --> [Configuration Management]
• v
• v
• [Multiple Output Formats]
• Standard Map View
• Plotter Mode (SVG)
• Custom Styling
Specific Implementation Details
a) Data Flow:
• Query Input (address/coordinates) → OSM Data Fetch → GeoDataFrame Processing → Visualization
• Preset Loading → Style Application → Final Rendering
b) Configuration Management:
• Preset System (JSON files in presets/ directory)
• Layer Configuration
• Style Parameters
Component Details
Each component should show:
• Component Name |
• Key Functions |
• Input/Output Types |
• Dependencies |
Implementation Notes
Technical details:
• GeoDataFrame processing
• Matplotlib integration
• SVG export capabilities
• Custom styling options