allow custom styles in datetimes passed from Timeline

This commit is contained in:
Lachlan Kermode
2019-01-08 12:02:02 +00:00
parent 8526bf069a
commit fcfe84ce90
4 changed files with 33 additions and 49 deletions

View File

@@ -165,9 +165,10 @@ class Map extends React.Component {
* necessary. The function should return a regular style object.
*/
styleLocation(location) {
return {
fill: 'orange'
}
return [
{ fill: 'orange' },
() => <text>ciao</text>
]
}
renderEvents() {