-
Notifications
You must be signed in to change notification settings - Fork 53
feat(weather): add tidal currents overlay with time-stepping controls #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2740478
feat(weather): add tidal currents overlay with time-stepping controls
marcelrv 218475b
fix(weather): address CodeRabbit review comments on tidal currents ov…
marcelrv 255267b
fix(weather): address follow-up CodeRabbit comments on tidal currents…
marcelrv d11d400
fix(weather): clean up dragEnd$ subscription in tidal currents layer
marcelrv 7816b94
fix(weather): address reviewer follow-ups on tidal currents overlay
marcelrv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Add a
case 'tidal'handler informatPopoverto show a popover when tidal features are clicked.processMapClickcorrectly adds tidal features to the feature list, butformatPopover(lines 1391–1600) has nocase 'tidal'— it falls through todefault: return;at line 1598. This means:formatPopover('tidal.0', coord)is called →default: return;→ no popover appears.formatPopover('tidal.0', coord)→ samedefault: return;→ no popover.The PR objective states click handling is routed through
processMapClickfor "consistent popovers," but the popover is never shown. Acase 'tidal'informatPopoverand a corresponding popover template in the HTML are needed to complete the flow.🐛 Proposed fix: add `case 'tidal'` to `formatPopover`
case 'aircraft': if (!this.app.data.aircraft.has(id)) { return false; } poData.type = t[0]; poData.id = id; poData.aircraft = this.app.data.aircraft.get(id); poData.position = poData.aircraft.position; poData.show = true; break; + case 'tidal': + poData.id = id; + poData.type = 'tidal'; + poData.title = 'Tidal Current'; + poData.position = coord; + poData.show = true; + poData.readOnly = true; + break; case 'region':A corresponding
@if (overlay().type === 'tidal')block will also be needed infb-map.component.htmlto render the popover content (e.g., displayingfeature.get('name')).🤖 Prompt for AI Agents