[PR #19] feat(map): implement smart label positioning with leader lines #21

Open
opened 2026-03-16 12:12:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hipcityreg/situation-monitor/pull/19
Author: @Schokgolf
Created: 1/14/2026
Status: 🔄 Open

Base: mainHead: fix/map-visuals


📝 Commits (1)

  • dec1cc6 feat(map): implement smart label positioning with leader lines

📊 Changes

2 files changed (+201 additions, -22 deletions)

View changed files

📝 src/lib/components/panels/MapPanel.svelte (+170 -15)
📝 src/lib/config/map.ts (+31 -7)

📄 Description

  • Smart Label Positioning: Improved text placement logic to better handle density.
  • Adaptive Icon Scaling: Icons now scale dynamically based on the zoom level, ensuring they remain sized appropriately whether zoomed in or out.
  • Visual Polish: General improvements to the map's aesthetic and readability.
  • Data Update: Added Amsterdam to the city configuration.

-future update suggestions: create a database with all countries and better map so that the app can attach to countries automatically. and they can display on the map without needing to hardcode anything.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hipcityreg/situation-monitor/pull/19 **Author:** [@Schokgolf](https://github.com/Schokgolf) **Created:** 1/14/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/map-visuals` --- ### 📝 Commits (1) - [`dec1cc6`](https://github.com/hipcityreg/situation-monitor/commit/dec1cc6d59293ff36bda062d66a46e5662fb9bcb) feat(map): implement smart label positioning with leader lines ### 📊 Changes **2 files changed** (+201 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/panels/MapPanel.svelte` (+170 -15) 📝 `src/lib/config/map.ts` (+31 -7) </details> ### 📄 Description - Smart Label Positioning: Improved text placement logic to better handle density. - Adaptive Icon Scaling: Icons now scale dynamically based on the zoom level, ensuring they remain sized appropriately whether zoomed in or out. - Visual Polish: General improvements to the map's aesthetic and readability. - Data Update: Added Amsterdam to the city configuration. **_-future update suggestions: create a database with all countries and better map so that the app can attach to countries automatically. and they can display on the map without needing to hardcode anything._** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/situation-monitor#21
No description provided.