{this.props.features.USE_SATELLITE_OVERLAY_TOGGLE && (
)}
{innerMap}
);
}
}
function mapStateToProps(state) {
return {
domain: {
locations: selectors.selectLocations(state),
narratives: selectors.selectNarratives(state),
categories: selectors.getCategories(state),
sites: selectors.selectSites(state),
regions: selectors.selectRegions(state),
},
app: {
views: state.app.associations.views,
selected: selectors.selectSelected(state),
highlighted: state.app.highlighted,
map: state.app.map,
cluster: state.app.cluster,
language: state.app.language,
loading: state.app.loading,
narrative: state.app.associations.narrative,
coloringSet: state.app.associations.coloringSet,
flags: {
isShowingSites: state.app.flags.isShowingSites,
isFetchingDomain: state.app.flags.isFetchingDomain,
},
},
ui: {
tiles: selectors.getTiles(state),
dom: state.ui.dom,
narratives: state.ui.style.narratives,
mapSelectedEvents: state.ui.style.selectedEvents,
regions: state.ui.style.regions,
eventRadius: state.ui.eventRadius,
radial: state.ui.style.clusters.radial,
filterColors: state.ui.coloring.colors,
},
features: selectors.getFeatures(state),
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators(actions, dispatch),
};
}
export default connect(mapStateToProps, mapDispatchToProps)(Map);