mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Streamline aligning layers
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Portal } from 'react-portal';
|
||||
|
||||
import MapDefsMarkers from './MapDefsMarkers.jsx';
|
||||
|
||||
class MapNarratives extends React.Component {
|
||||
|
||||
projectPoint(location) {
|
||||
@@ -81,10 +79,9 @@ class MapNarratives extends React.Component {
|
||||
|
||||
render() {
|
||||
if (this.props.narrative === null) return (<div />);
|
||||
/*<MapDefsMarkers />*/
|
||||
|
||||
return (
|
||||
<Portal node={this.props.svg.node()}>
|
||||
<Portal node={this.props.svg}>
|
||||
{this.props.narratives.map(n => this.renderNarrative(n))}
|
||||
</Portal>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user