Skip to content

Commit

Permalink
add bubble marker case
Browse files Browse the repository at this point in the history
  • Loading branch information
moontrip committed Oct 17, 2023
1 parent e2a50e1 commit 7dbb296
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/libs/eda/src/lib/map/MapVEu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
}
}
}
/* donut marker highlight */
.highlight-donutmarker {
/* donut and bubble markers highlight */
.highlight-donutmarker,
.highlight-bubblemarker {
background-clip: padding-box;
border-radius: 50%;
/* add inset to reduce a gap between the element and the box-shadow */
Expand Down
7 changes: 6 additions & 1 deletion packages/libs/eda/src/lib/map/analysis/MapAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,12 @@ function MapAnalysisImpl(props: ImplProps) {
{...(markerProps as BubbleMarkerProps)}
/>
) : (
<ChartMarker {...(markerProps as ChartMarkerProps)} />
<ChartMarker
// pass two new props for multiple markers selection
selectedMarkers={selectedMarkers}
setSelectedMarkers={setSelectedMarkers}
{...(markerProps as ChartMarkerProps)}
/>
)
) || [],
[markersData, markerType]
Expand Down

0 comments on commit 7dbb296

Please sign in to comment.