Reactify timeline labels

This commit is contained in:
Franc Camps-Febrer
2018-12-21 12:36:06 +01:00
parent 323b31b3d7
commit f4fee8ab07
4 changed files with 42 additions and 169 deletions

View File

@@ -112,7 +112,6 @@ class Map extends React.Component {
}
renderSVG() {
if (this.map === null) return '';
const pane = this.map.getPanes().overlayPane;
const { width, height } = this.getClientDims();
@@ -203,7 +202,7 @@ class Map extends React.Component {
return (
<div className={classes}>
<div id={this.props.mapId} />
{this.renderSVG()}
{(this.map !== null) ? this.renderSVG() : ''}
{(this.map !== null) ? this.renderMarkers() : ''}
{(this.map !== null) ? this.renderSites() : ''}
{(this.map !== null) ? this.renderEvents() : ''}