Skip to content

Fix map centering#37

Merged
zjs81 merged 3 commits into
zjs81:mainfrom
wel97459:dev-map
Jan 16, 2026
Merged

Fix map centering#37
zjs81 merged 3 commits into
zjs81:mainfrom
wel97459:dev-map

Conversation

@wel97459

@wel97459 wel97459 commented Jan 15, 2026

Copy link
Copy Markdown
Collaborator

Fix map centering weirdly when nodes or markers are outside of the main area of interest.


Note

Enhances map initialization to avoid skewed centering when distant nodes/markers exist and to set an appropriate starting zoom.

  • Computes center from contacts and shared markers with 2σ outlier filtering and picks zoom from latitude/longitude standard deviation
  • Honors highlightPosition with corresponding highlightZoom
  • Defers initial move until removed markers are loaded using _hasInitializedMap/_removedMarkersLoaded
  • Uses dynamic initialZoom in MapOptions; minor UI tidy-ups

Written by Cursor Bugbot for commit 7cc7183. This will update automatically on new commits. Configure here.

When nodes or markers are outside of the main area of interest.
@wel97459 wel97459 changed the base branch from main to dev January 15, 2026 03:39
@wel97459 wel97459 changed the base branch from dev to main January 15, 2026 03:39
@zjs81

zjs81 commented Jan 15, 2026

Copy link
Copy Markdown
Owner

Very nice! I will review this later today.

@wel97459

Copy link
Copy Markdown
Collaborator Author

I need to have the standard deviation feed the zoom level of map

@wel97459

Copy link
Copy Markdown
Collaborator Author

Also it's not respecting markers that have been removed.

@zjs81

zjs81 commented Jan 16, 2026

Copy link
Copy Markdown
Owner

Thank you I will take a look.

@zjs81 zjs81 merged commit f01eff0 into zjs81:main Jan 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants