# synone501/streamlit-map-template architecture

> Architecture diagram of the GitHub repository synone501/streamlit-map-template, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/synone501/streamlit-map-template
- Repository: https://github.com/synone501/streamlit-map-template

## Overview

This is a Streamlit geomatics portfolio: visitors view the author’s profile and topographic overview, then explore maps of earthquakes, tectonic boundaries, and health-facility locations. The map page reads boundary and earthquake files, filters earthquake records, and renders them alongside boundaries; it also reads a health-facility CSV from a machine-specific path absent from the repository tree. The excerpts show map construction and display, but not a working navigation target: the landing page references a differently named project page. No README was provided, so capabilities beyond the sampled code are not assumed.

Main entry points: [`pages/1_projet.py`](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py) (Map page), [`Acceuil.py`](https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py) (Portfolio landing), [`Accessoire/Plate_Boundaries/Plate_Boundaries.shp`](https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/Plate_Boundaries/Plate_Boundaries.shp) (Plate boundaries), [`Accessoire/earthquakes.csv`](https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/earthquakes.csv) (Earthquake records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio"]
  node_landing["Portfolio landing<br/>[Acceuil.py]"]
  node_profile["Profile and CV<br/>[Acceuil.py]"]
  node_topography["Topographic overview<br/>[Acceuil.py]"]
end

subgraph group_earthquake["Earthquake map"]
  node_earthquake_page["Map page<br/>[1_projet.py]"]
  node_boundary_data[("Plate boundaries")]
  node_quake_data[("Earthquake records<br/>[earthquakes.csv]")]
  node_quake_cleaning["Filter records<br/>[1_projet.py]"]
  node_boundary_render["Boundary lines<br/>[1_projet.py]"]
  node_quake_render["Depth-colored quakes<br/>[1_projet.py]"]
  node_earthquake_map["Earthquake map view<br/>[1_projet.py]"]
end

subgraph group_health["Health access map"]
  node_facility_data[("Facility locations")]
  node_facility_map["Facility clusters and heatmap<br/>[1_projet.py]"]
  node_health_map_view["Health map view<br/>[1_projet.py]"]
end

node_visitor(("Visitor"))
node_opentopomap["OpenTopoMap tiles"]
node_linkedin["LinkedIn"]

node_visitor -->|"opens"| node_landing
node_landing -->|"shows"| node_profile
node_landing -->|"displays"| node_topography
node_topography -->|"loads tiles"| node_opentopomap
node_landing -->|"links to"| node_linkedin
node_visitor -.->|"views"| node_earthquake_page
node_earthquake_page -->|"reads"| node_boundary_data
node_earthquake_page -->|"reads"| node_quake_data
node_earthquake_page -->|"converts and filters"| node_quake_cleaning
node_earthquake_page -->|"draws boundaries"| node_boundary_render
node_earthquake_page -->|"plots filtered quakes"| node_quake_render
node_boundary_render -->|"adds lines"| node_earthquake_map
node_quake_render -->|"adds markers"| node_earthquake_map
node_earthquake_page -->|"displays"| node_earthquake_map
node_earthquake_page -->|"reads CSV"| node_facility_data
node_earthquake_page -->|"builds clusters and heatmap"| node_facility_map
node_facility_map -->|"adds layers"| node_health_map_view
node_earthquake_page -->|"displays"| node_health_map_view

click node_landing "https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py"
click node_profile "https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py"
click node_topography "https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py"
click node_earthquake_page "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_boundary_data "https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/Plate_Boundaries/Plate_Boundaries.shp"
click node_quake_data "https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/earthquakes.csv"
click node_quake_cleaning "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_boundary_render "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_quake_render "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_earthquake_map "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_facility_map "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"
click node_health_map_view "https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_landing,node_profile,node_topography toneBlue
class node_earthquake_page,node_boundary_data,node_quake_data,node_quake_cleaning,node_boundary_render,node_quake_render,node_earthquake_map toneAmber
class node_facility_data,node_facility_map,node_health_map_view toneMint
class node_visitor,node_opentopomap,node_linkedin toneIndigo
```

## Components

### Portfolio

- [Portfolio landing](https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py): `Acceuil.py`
- [Profile and CV](https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py): `Acceuil.py`
- [Topographic overview](https://github.com/synone501/streamlit-map-template/blob/main/Acceuil.py): `Acceuil.py`

### Earthquake map

- [Map page](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`
- [Plate boundaries](https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/Plate_Boundaries/Plate_Boundaries.shp): `Accessoire/Plate_Boundaries/Plate_Boundaries.shp`
- [Earthquake records](https://github.com/synone501/streamlit-map-template/blob/main/Accessoire/earthquakes.csv): `Accessoire/earthquakes.csv`
- [Filter records](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`
- [Boundary lines](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`
- [Depth-colored quakes](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`
- [Earthquake map view](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`

### Health access map

- **Facility locations**
- [Facility clusters and heatmap](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`
- [Health map view](https://github.com/synone501/streamlit-map-template/blob/main/pages/1_projet.py): `pages/1_projet.py`

### Other components

- **Visitor**
- **OpenTopoMap tiles**
- **LinkedIn**

## Connections

- Visitor → Portfolio landing: opens (evidence: `Acceuil.py`)
- Portfolio landing → Profile and CV: shows (evidence: `Acceuil.py`)
- Portfolio landing → Topographic overview: displays (evidence: `Acceuil.py`)
- Topographic overview → OpenTopoMap tiles: loads tiles (evidence: `Acceuil.py`)
- Portfolio landing → LinkedIn: links to (evidence: `Acceuil.py`)
- Visitor → Map page: views
- Map page → Plate boundaries: reads (evidence: `pages/1_projet.py`)
- Map page → Earthquake records: reads (evidence: `pages/1_projet.py`)
- Map page → Filter records: converts and filters (evidence: `pages/1_projet.py`)
- Map page → Boundary lines: draws boundaries (evidence: `pages/1_projet.py`)
- Map page → Depth-colored quakes: plots filtered quakes (evidence: `pages/1_projet.py`)
- Boundary lines → Earthquake map view: adds lines (evidence: `pages/1_projet.py`)
- Depth-colored quakes → Earthquake map view: adds markers (evidence: `pages/1_projet.py`)
- Map page → Earthquake map view: displays (evidence: `pages/1_projet.py`)
- Map page → Facility locations: reads CSV (evidence: `pages/1_projet.py`)
- Map page → Facility clusters and heatmap: builds clusters and heatmap (evidence: `pages/1_projet.py`)
- Facility clusters and heatmap → Health map view: adds layers (evidence: `pages/1_projet.py`)
- Map page → Health map view: displays (evidence: `pages/1_projet.py`)
