fix(regions): keep map labels of nearby regions apart #171

Merged
Sebi merged 1 commits from fix/region-map-overlap into main 2026-11-29 10:10:23 +00:00
Owner

Summary

  • Region map pins of nearby regions (e.g. DUS/VEL, FSN/NBG) no longer overlap.
  • Same placement as the landing page hero map: label to the right of the point, flipped to the left when the right side would cover another pin or leave the map, otherwise only the dot (name shows on hover, the list names every region).
  • Unlike the landing page, no label covers another pin's dot, and placement reruns on zoom, pan and resize since the app map is interactive.

Test plan

  • TestScripts/regionmap.html: new case with three close regions (dot / right / left).
  • Dev stack with the prod region coordinates: labels apart at the default view, desktop and 390 px, hover reveals compact labels.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

## Summary - Region map pins of nearby regions (e.g. DUS/VEL, FSN/NBG) no longer overlap. - Same placement as the landing page hero map: label to the right of the point, flipped to the left when the right side would cover another pin or leave the map, otherwise only the dot (name shows on hover, the list names every region). - Unlike the landing page, no label covers another pin's dot, and placement reruns on zoom, pan and resize since the app map is interactive. ## Test plan - [x] `TestScripts/regionmap.html`: new case with three close regions (dot / right / left). - [x] Dev stack with the prod region coordinates: labels apart at the default view, desktop and 390 px, hover reveals compact labels. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-29 10:06:58 +00:00
fix(regions): keep map labels of nearby regions apart
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m19s
ci / test (pull_request) Successful in 13m11s
ci / build (pull_request) Successful in 18m31s
ci / image (pull_request) Successful in 5m52s
401a361422
Regions a few kilometres apart drew their labels on top of each other.
As on the landing page, a label now runs to the right of its point, or
to the left where the right side would cover another pin or leave the
map; a pin with room on neither side shows only its dot and reveals its
name on hover. Placement reruns while zooming and panning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit ab25c1f218 into main 2026-11-29 10:10:23 +00:00
Sebi deleted branch fix/region-map-overlap 2026-11-29 10:10:28 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#171