Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.