Skip to content

refactor(#25): ♻️ Changed from canvas to text element, lat/lon… #34

Merged
merged 4 commits into from
Oct 13, 2025

Conversation

kleinc
Copy link
Member

@kleinc kleinc commented Oct 11, 2025

Closing issue

Closes #25

Description

Did a complete refactor of the coordinate-showing logic, to use text element instead of canvas element. Also made sure that the lat/lon coordinates are those of the target point. The coordinates will no longer change when right-clicking, but only update when double clicking on a point. Did some changes in styling as well.

Testing steps

  • You can try double clicking around to see that the target point changes.
  • You can try to right click to check if target point updates. It should not do so.
  • Try changing viewer-mode to see that the box on the image below disappears. It should reappear when changing back to pivot-mode.

Screenshots

Skjermbilde 2025-10-11 kl  12 37 31

…d to show target point, don't update target point if right-clicking

Did a complete refactor of the coordinate showing logic, to use text element. Also made sure that the lat/lon coordinates are those of the target point. The coordinates won't change when right-clicking. Did some changes in styling as well.
@kleinc kleinc self-assigned this Oct 11, 2025
@kleinc kleinc linked an issue Oct 11, 2025 that may be closed by this pull request
Copy link
Member

@franmagn franmagn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's all good. The only strange behaviour is that when you click once on a point, wherever you are, the Target Point coordinates being showed change. Maybe it's best to make them change only when double-clicking?

@kleinc
Copy link
Member Author

kleinc commented Oct 13, 2025

Fixed it now 🦖

Copy link
Member

@franmagn franmagn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🦕

@tobiaobr
Copy link
Member

Generally looks good to me. Though had some issues with copying the coordinates on screen

@kleinc
Copy link
Member Author

kleinc commented Oct 13, 2025

Fixed now!

Copy link
Member

@tobiaobr tobiaobr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better now 🔥

@kleinc kleinc merged commit 4af9107 into dev Oct 13, 2025
1 check passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only show coordinates of target point
3 participants