Created
March 4, 2015 20:24
-
-
Save wavded/3fd800289a1dff2b9b66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!this.props.isInitialized) { | |
return ( | |
<FlexRow> | |
<FlexColumn> | |
<EMap bingKey={this.props.bingKey} active={true} /> | |
</FlexColumn> | |
</FlexRow> | |
) | |
} | |
// Interface initialized, show map and sidebar | |
var driveTime = this.props.driveTimes[(this.props.driveTimeMi / 5) - 1] | |
return ( | |
<FlexRow height="600px"> | |
<FlexColumn width="280px"> | |
<Sidebar | |
currentHoverSelection={this.props.currentHoverSelection} | |
resCount={this.props.resCount} | |
boxCount={this.props.boxCount} | |
bizCount={this.props.bizCount} | |
bizChecked={this.props.includeBiz} | |
geocode={this.props.geocode} /> | |
</FlexColumn> | |
<FlexColumn> | |
<EMap | |
active={!this.props.tableViewActive} | |
bingKey={this.props.bingKey} | |
zips={this.props.zips} | |
routes={this.props.routes} | |
radiusMi={this.props.radiusMi} | |
driveTimeMi={this.props.driveTimeMi} | |
driveTime={driveTime} | |
demoCriteria={this.props.demoCriteria} | |
geocode={this.props.geocode} /> | |
{/* | |
<Table | |
active={this.props.tableViewActive} | |
routes={this.props.routes} /> | |
*/} | |
</FlexColumn> | |
</FlexRow> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment