removes numbers, increases opacity for more events instead

This commit is contained in:
Lachlan Kermode
2020-02-24 05:55:00 +13:00
parent 8bf783b30e
commit afc84e61ac
6 changed files with 38 additions and 28 deletions

View File

@@ -193,16 +193,11 @@ class Map extends React.Component {
* also has full access to the domain and redux state to derive values if
* necessary. The function should return an array, where the value at the
* first index is a styles object for the SVG at the location, and the value
* at the second index is an optional function that renders additional
* components in the <g/> div.
* at the second index is an optional additional component that renders in
* the <g/> div.
*/
styleLocation (location) {
const noEvents = location.events.length
return [
null,
() => noEvents > 1 ? <text className='location-count' dx='-3' dy='4'>{noEvents}</text> : null
]
return [null, null]
}
renderEvents () {