Skip to content
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

Multiple marker selection via BoundsDriftMarker and SemanticMarkers #588

Merged
merged 58 commits into from
Dec 2, 2023

Conversation

bobular
Copy link
Member

@bobular bobular commented Nov 2, 2023

Note: targets #534

Hi @moontrip and @dmfalke

I wanted to try my suggestion in #513 (comment) and I have found that it works pretty well and has removed quite a lot of code. I've also made it more 'reacty' and got rid of one jquery-like bit.

I have only sorted out the @veupathdb/components side of things - and fixed all the stories (hopefully reverting the old marker stories back to what they were before, so only the MarkerSelection story has selectedMarker logic).

I did introduce a useEffect to do pruning on selectedMarkers but I'd say this was OK. If you pan a selected marker off-screen, you would expect to trigger a side-effect maybe? Nothing is triggered if nothing needs pruning.

I've changed the spec of selectedMarkers back to string[] as per the original spec.

Some things to do

moontrip and others added 29 commits September 19, 2023 22:59
…ch-out

Multiple marker selection branch out
@bobular bobular requested a review from dmfalke November 2, 2023 22:03
@bobular
Copy link
Member Author

bobular commented Nov 9, 2023

I've checked off the remaining items/made new tickets.

We could merge this when it is disabled (see new checkbox item in description).

@@ -304,6 +308,7 @@ function MapLayerComponent(props: MapTypeMapLayerProps) {
if (markerDataResponse.error)
return <MapFloatingErrorDiv error={markerDataResponse.error} />;

// pass selectedMarkers and its state function
Copy link
Member Author

@bobular bobular Nov 13, 2023

Choose a reason for hiding this comment

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

Oops we need to get rid of this comment (and homologous ones in Bubble/Barplot mode)

@moontrip moontrip linked an issue Nov 13, 2023 that may be closed by this pull request
4 tasks
@bobular
Copy link
Member Author

bobular commented Nov 18, 2023

I think we're in a relatively good place here, but we should not merge this before b66, which gives us time to address the remaining minor issues (minor to the user - major for us, probably!)

@bobular bobular merged commit 4456176 into main Dec 2, 2023
1 check passed
@bobular bobular deleted the multiple-marker-selection-simplified branch December 2, 2023 17:07
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.

Map - add multi-select clickable/highlightable markers to MapVEuMap component
3 participants