diff --git a/src/components/Map.jsx b/src/components/Map.jsx index febedd6..9c78ca5 100644 --- a/src/components/Map.jsx +++ b/src/components/Map.jsx @@ -16,6 +16,7 @@ import Clusters from './presentational/Map/Clusters.jsx' import SelectedEvents from './presentational/Map/SelectedEvents.jsx' import Narratives from './presentational/Map/Narratives' import DefsMarkers from './presentational/Map/DefsMarkers.jsx' +import DefsClusters from './presentational/Map/DefsClusters.jsx' import { mapClustersToLocations } from '../common/utilities' @@ -328,6 +329,14 @@ class Map extends React.Component { ) } + renderClusterGradients () { + return ( + + + + ) + } + renderMarkers () { return ( @@ -343,6 +352,7 @@ class Map extends React.Component { {this.renderTiles()} {this.renderMarkers()} + {this.renderClusterGradients()} {isShowingSites ? this.renderSites() : null} {this.renderShapes()} {this.renderNarratives()} diff --git a/src/components/presentational/Map/Clusters.jsx b/src/components/presentational/Map/Clusters.jsx index 5a2b414..2e55de3 100644 --- a/src/components/presentational/Map/Clusters.jsx +++ b/src/components/presentational/Map/Clusters.jsx @@ -27,10 +27,10 @@ function ClusterEvents ({ const totalPoints = calculateTotalPoints() const styles = ({ - fill: colors.fallbackEventColor, - stroke: colors.darkBackground, - strokeWidth: 0, - fillOpacity: calcClusterOpacity(pointCount, totalPoints) + // fill: colors.fallbackEventColor, + // stroke: colors.darkBackground, + // strokeWidth: 0, + fillOpacity: calcClusterOpacity(pointCount, totalPoints), }) return ( @@ -44,6 +44,7 @@ function ClusterEvents ({ cy='0' r={calcClusterSize(pointCount, totalPoints)} style={styles} + fill="url('#myGradient')" />} ) diff --git a/src/components/presentational/Map/DefsClusters.jsx b/src/components/presentational/Map/DefsClusters.jsx new file mode 100644 index 0000000..146966e --- /dev/null +++ b/src/components/presentational/Map/DefsClusters.jsx @@ -0,0 +1,13 @@ +import React from 'react' + +const DefsClusters = () => ( + + + + + {/* */} + + +) + +export default DefsClusters