in modules/manifold/src/components/geo-feature-container.js [91:133]
render() {
const {
selector,
mapboxToken,
hasGeoFeatures,
geoFeatures,
displayGeoFeatures,
visualChannelFeatures,
colorByFeature,
width,
height,
} = this.props;
if (!hasGeoFeatures) {
return null;
}
return (
<Container>
<ReactReduxContext.Consumer>
{({store}) => (
<KeplerGl
mapboxApiAccessToken={
process.env.MAPBOX_ACCESS_TOKEN || mapboxToken
}
getState={state => selector(state).keplerGl}
store={store}
mint={false}
id="map"
width={width}
height={height}
/>
)}
</ReactReduxContext.Consumer>
<GeoFeatureControl
geoFeatures={geoFeatures}
displayGeoFeatures={displayGeoFeatures}
onUpdateDisplayFeatures={this.props.updateDisplayGeoFeatures}
visualChannelFeatures={visualChannelFeatures}
colorByFeature={colorByFeature}
onUpdateColorByFeature={this.props.updateColorByFeature}
/>
</Container>
);
}