-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
…ch-out Multiple marker selection branch out
I've checked off the remaining items/made new tickets. We could merge this when it is disabled (see new checkbox item in description). |
address marker double-click
@@ -304,6 +308,7 @@ function MapLayerComponent(props: MapTypeMapLayerProps) { | |||
if (markerDataResponse.error) | |||
return <MapFloatingErrorDiv error={markerDataResponse.error} />; | |||
|
|||
// pass selectedMarkers and its state function |
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.
Oops we need to get rid of this comment (and homologous ones in Bubble/Barplot mode)
….com/VEuPathDB/web-monorepo into multiple-marker-selection-simplified
….com/VEuPathDB/web-monorepo into map-marker-popup-highlight
…thDB/web-monorepo into map-marker-popup-highlight
Map marker popup highlight
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!) |
…le-clicking a solution to prevent single click while double clicking
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 onselectedMarkers
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 tostring[]
as per the original spec.Some things to do
selectedMarkers
which is likely related to marker churn inSemanticMarkers