Skip to content

Instantly share code, notes, and snippets.

@wavded
Created March 4, 2015 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavded/3fd800289a1dff2b9b66 to your computer and use it in GitHub Desktop.
Save wavded/3fd800289a1dff2b9b66 to your computer and use it in GitHub Desktop.
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