Skip to content

Commit

Permalink
fix(Leaflet): 🚸 all marker cluster same color
Browse files Browse the repository at this point in the history
FIX: #108
  • Loading branch information
jalezi committed Dec 19, 2021
1 parent 9700cf2 commit c271e28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/styles/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ export const Box = styled(MuiBox)(({ theme }) => ({
'& .leaflet-container': {
height: SIZES.MAP_HEIGHT.default,
},

'.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large': {
backgroundColor: `${theme.customColors.brand}40`,
},
'.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div': {
opacity: 0.7,
backgroundColor: theme.customColors.brand,
},

[theme.breakpoints.up('sm')]: {
'& .leaflet-container': {
height: SIZES.MAP_HEIGHT.upSmall,
Expand Down

0 comments on commit c271e28

Please sign in to comment.