Interactive interface for browsing global, full-resolution satellite imagery
merge develop changes
Ed Platoa5b64a6439f4
diff --cc web/js/containers/timeline/timeline.jsindex 4a84851af,a53eb35ab..8a8cc23fb--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@@ -990,118 -979,173 +990,118 @@@ class Timeline extends React.Component? '65px': '10px';return (- <div className="timeline-container">- {initialLoadComplete &&- <ErrorBoundary>- {isSmallScreen- /* Mobile Timeline Size */- ? <div id="timeline-header" className="timeline-header-mobile">- <div id="date-selector-main">- <MobileDatePicker- date={selectedDate}- startDateLimit={timelineStartDateLimit}- endDateLimit={timelineEndDateLimit}- onDateChange={this.onDateChange}- hasSubdailyLayers={hasSubdailyLayers}- />- </div>- <div className="mobile-date-change-arrows-btn"- style={{- left: mobileLeft,- bottom: mobileBottom- }}- >- <div id="zoom-buttons-group">- <DateChangeArrows- leftArrowDown={this.throttleDecrementDate}- leftArrowUp={this.stopLeftArrow}- leftArrowDisabled={leftArrowDisabled}- rightArrowDown={this.throttleIncrementDate}- rightArrowUp={this.stopRightArrow}- rightArrowDisabled={rightArrowDisabled}- />- </div>- </div>- </div>- /* Normal Timeline Size */- : <section id="timeline" className="timeline-inner clearfix">- <div id="timeline-header"- className={`timeline-header-desktop ${hasSubdailyLayers ? 'subdaily' : ''}`}- >- {/* Date Selector, Interval, Arrow Controls */}+ <React.Fragment>+ {isDistractionFreeModeActive+ ? <DistractionFreeTimeUI+ date={selectedDate}+ hasSubdailyLayers={hasSubdailyLayers}+ hoverOverDistractionFreeTimeUI={this.hoverOverDistractionFreeTimeUI}+ isHoverOverDistractionFreeTimeUI={isHoverOverDistractionFreeTimeUI}+ />+ : null+ }+ <div+ className="timeline-container"+ onMouseLeave={+ isDistractionFreeModeActive && !isDraggerDragging && !isTimelineDragging+ ? () => this.hoverOverDistractionFreeTimeUI(false)+ : null+ }+ style={{+ display: isDistractionFreeModeActive && !isHoverOverDistractionFreeTimeUI ? 'none' : 'block'+ }}>+ {initialLoadComplete &&+ <ErrorBoundary>+ {isSmallScreen+ /* Mobile Timeline Size */- ? <div id="timeline-header">++ ? <div id="timeline-header" className="timeline-header-mobile"><div id="date-selector-main">- <DateSelector- id={draggerSelected}- idSuffix={'timeline'}- date={new Date(selectedDate)}+ <MobileDatePicker+ date={selectedDate}+ startDateLimit={timelineStartDateLimit}+ endDateLimit={timelineEndDateLimit}onDateChange={this.onDateChange}- maxDate={new Date(timelineEndDateLimit)}- minDate={new Date(timelineStartDateLimit)}- subDailyMode={hasSubdailyLayers}- fontSize={24}- />- </div>- <div id="zoom-buttons-group">- <TimeScaleIntervalChange- setTimeScaleIntervalChangeUnit={this.setTimeScaleIntervalChangeUnit}- customIntervalZoomLevel={timeScaleFromNumberKey[customIntervalZoomLevel]}- customSelected={customSelected}- customDelta={customIntervalValue}- timeScaleChangeUnit={timeScaleChangeUnit}hasSubdailyLayers={hasSubdailyLayers}/>- <DateChangeArrows- leftArrowDown={this.throttleDecrementDate}- leftArrowUp={this.stopLeftArrow}- leftArrowDisabled={leftArrowDisabled}- rightArrowDown={this.throttleIncrementDate}- rightArrowUp={this.stopRightArrow}- rightArrowDisabled={rightArrowDisabled}- /></div>- <AnimationButton- clickAnimationButton={this.clickAnimationButton}- disabled={animationDisabled}- title={- isCompareModeActive- ? 'Animation feature is deactivated when Compare feature is active'- : isDataDownload- ? 'Animation feature is deactivated when Data Download feature is active'- : ''- }- />+ <div className="mobile-date-change-arrows-btn"+ style={{+ left: mobileLeft,+ bottom: mobileBottom+ }}+ >+ <div id="zoom-buttons-group">+ <DateChangeArrows+ leftArrowDown={this.throttleDecrementDate}+ leftArrowUp={this.stopLeftArrow}+ leftArrowDisabled={leftArrowDisabled}+ rightArrowDown={this.throttleIncrementDate}+ rightArrowUp={this.stopRightArrow}+ rightArrowDisabled={rightArrowDisabled}+ />+ </div>+ </div></div>-- <div id="timeline-footer"- style={{- display:- isTimelineHidden ? 'none' : 'block'- }}- >- {/* Axis */}- <TimelineAxis- axisWidth={axisWidth}- parentOffset={parentOffset}- leftOffset={leftOffset}- position={position}- transformX={transformX}- timeScale={timeScale}- timelineStartDateLimit={timelineStartDateLimit}- timelineEndDateLimit={timelineEndDateLimit}- frontDate={frontDate}- backDate={backDate}- dateA={dateA}- dateB={dateB}- hoverTime={hoverTime}- draggerSelected={draggerSelected}- draggerTimeState={draggerTimeState}- draggerTimeStateB={draggerTimeStateB}- draggerPosition={draggerPosition}- draggerPositionB={draggerPositionB}- draggerVisible={draggerVisible}- draggerVisibleB={draggerVisibleB}- animationStartLocation={animationStartLocation}- animationEndLocation={animationEndLocation}- animStartLocationDate={animStartLocationDate}- animEndLocationDate={animEndLocationDate}- debounceChangeTimeScaleWheel={this.debounceChangeTimeScaleWheel}- updatePositioning={this.updatePositioning}- updateTimelineMoveAndDrag={this.updateTimelineMoveAndDrag}- updatePositioningOnSimpleDrag={this.updatePositioningOnSimpleDrag}- updatePositioningOnAxisStopDrag={this.updatePositioningOnAxisStopDrag}- updateDraggerDatePosition={this.updateDraggerDatePosition}- showHoverOn={this.showHoverOn}- showHoverOff={this.showHoverOff}- showHover={this.showHover}- hasSubdailyLayers={hasSubdailyLayers}- isCompareModeActive={isCompareModeActive}- isAnimationPlaying={isAnimationPlaying}- isTourActive={isTourActive}- isAnimationDraggerDragging={isAnimationDraggerDragging}- isDraggerDragging={isDraggerDragging}- isTimelineDragging={isTimelineDragging}- hasMoved={hasMoved}- />-- <AxisHoverLine- axisWidth={axisWidth}- hoverLinePosition={hoverLinePosition}- showHoverLine={showHoverLine}- isTimelineDragging={isTimelineDragging}- isAnimationDraggerDragging={isAnimationDraggerDragging}- />-- {isAnimationWidgetOpen &&- !animationDisabled &&- this.state.animationStartLocation &&- this.state.animationStartLocationDate &&- this.state.animationEndLocation &&- this.state.animationEndLocationDate &&- <TimelineRangeSelector- axisWidth={axisWidth}- position={position}- transformX={transformX}- timeScale={timeScale}- timelineStartDateLimit={timelineStartDateLimit}- timelineEndDateLimit={timelineEndDateLimit}- frontDate={frontDate}- startLocation={animationStartLocation}- endLocation={animationEndLocation}- startLocationDate={animationStartLocationDate}- endLocationDate={animationEndLocationDate}- updateAnimationDateAndLocation={this.updateAnimationDateAndLocation}- max={rangeSelectorMax}+ /* Normal Timeline Size */+ : <section id="timeline" className="timeline-inner clearfix">+ <div id="timeline-header"- className={hasSubdailyLayers ? 'subdaily' : ''}++ className={`timeline-header-desktop ${hasSubdailyLayers ? 'subdaily' : ''}`}+ >+ {/* Date Selector, Interval, Arrow Controls */}+ <div id="date-selector-main">+ <DateSelector+ id={draggerSelected}+ idSuffix={'timeline'}+ date={new Date(selectedDate)}+ onDateChange={this.onDateChange}+ maxDate={new Date(timelineEndDateLimit)}+ minDate={new Date(timelineStartDateLimit)}+ subDailyMode={hasSubdailyLayers}+ fontSize={24}+ />+ </div>+ <div id="zoom-buttons-group">+ <TimeScaleIntervalChange+ setTimeScaleIntervalChangeUnit={this.setTimeScaleIntervalChangeUnit}+ customIntervalZoomLevel={timeScaleFromNumberKey[customIntervalZoomLevel]}+ customSelected={customSelected}+ customDelta={customIntervalValue}+ timeScaleChangeUnit={timeScaleChangeUnit}+ hasSubdailyLayers={hasSubdailyLayers}+ />+ <DateChangeArrows+ leftArrowDown={this.throttleDecrementDate}+ leftArrowUp={this.stopLeftArrow}+ leftArrowDisabled={leftArrowDisabled}+ rightArrowDown={this.throttleIncrementDate}+ rightArrowUp={this.stopRightArrow}+ rightArrowDisabled={rightArrowDisabled}+ />+ </div>+ <AnimationButton+ clickAnimationButton={this.clickAnimationButton}+ disabled={animationDisabled}+ title={+ isCompareModeActive+ ? 'Animation feature is deactivated when Compare feature is active'+ : isDataDownload+ ? 'Animation feature is deactivated when Data Download feature is active'+ : ''+ }/>- }+ </div>- {frontDate &&- <DraggerContainer+ <div id="timeline-footer"+ style={{+ display:+ isTimelineHidden ? 'none' : 'block'+ }}+ >+ {/* Axis */}+ <TimelineAxisaxisWidth={axisWidth}+ parentOffset={parentOffset}+ leftOffset={leftOffset}position={position}transformX={transformX}timeScale={timeScale}diff --cc web/js/containers/toolbar.jsindex 763e4e205,d7cab87a6..d855e58de--- a/web/js/containers/toolbar.js+++ b/web/js/containers/toolbar.js@@@ -141,63 -143,56 +145,63 @@@ class toolbarContainer extends Componen: ' wv-status-hide';return (<ErrorBoundary>- <ButtonToolbar id="wv-toolbar" className={'wv-toolbar'}>- <Button- id="wv-link-button"- className="wv-toolbar-button"- title="Share this map"- onClick={() =>- openModal(- 'TOOLBAR_SHARE_LINK',- CUSTOM_MODAL_PROPS.TOOLBAR_SHARE_LINK- )- }- >- <FontAwesomeIcon icon={faShareSquare} size='2x' />- </Button>- {config.ui && config.ui.projections ? (- <Button- id="wv-proj-button"- className="wv-toolbar-button"- title="Switch projection"- onClick={() =>- openModal(- 'TOOLBAR_PROJECTION',- CUSTOM_MODAL_PROPS.TOOLBAR_PROJECTION- )- }- >- <FontAwesomeIcon icon={faGlobeAsia} size='2x' />- </Button>- ) : (- ''+ <ButtonToolbar+ id="wv-toolbar"+ className={'wv-toolbar'}+ >+ { !isDistractionFreeModeActive && (+ <React.Fragment>+ <Button+ id="wv-link-button"+ className="wv-toolbar-button"+ title="Share this map"+ onClick={() =>+ openModal(+ 'TOOLBAR_SHARE_LINK',+ CUSTOM_MODAL_PROPS.TOOLBAR_SHARE_LINK+ )+ }+ >- <i className="fas fa-share-square fa-2x" />++ <FontAwesomeIcon icon={faShareSquare} size='2x' />+ </Button>+ {config.ui && config.ui.projections ? (+ <Button+ id="wv-proj-button"+ className="wv-toolbar-button"+ title="Switch projection"+ onClick={() =>+ openModal(+ 'TOOLBAR_PROJECTION',+ CUSTOM_MODAL_PROPS.TOOLBAR_PROJECTION+ )+ }+ >- <i className="fas fa-globe-asia fa-2x" />{' '}++ <FontAwesomeIcon icon={faGlobeAsia} size='2x' />+ </Button>+ ) : (+ ''+ )}+ <Button+ id="wv-image-button"+ className={+ isImageDownloadActive+ ? 'wv-toolbar-button'+ : 'wv-toolbar-button disabled'+ }+ disabled={!isImageDownloadActive}+ title={+ isCompareActive+ ? 'You must exit comparison mode to use the snapshot feature'+ : !isImageDownloadActive+ ? 'You must exit data download mode to use the snapshot feature'+ : 'Take a snapshot'+ }+ onClick={this.openImageDownload}+ >- <i className="fa fa-camera fa-2x" />{' '}++ <FontAwesomeIcon icon={faCamera} size='2x' />+ </Button>+ </React.Fragment>)}- <Button- id="wv-image-button"- className={- isImageDownloadActive- ? 'wv-toolbar-button'- : 'wv-toolbar-button disabled'- }- disabled={!isImageDownloadActive}- title={- isCompareActive- ? 'You must exit comparison mode to use the snapshot feature'- : !isImageDownloadActive- ? 'You must exit data download mode to use the snapshot feature'- : 'Take a snapshot'- }- onClick={this.openImageDownload}- >- <FontAwesomeIcon icon={faCamera} size='2x' />- </Button><Buttonid="wv-info-button"title="Information"