Skip to content

Commit

Permalink
fix(landcoverexplorer): update filename of output MP4 based on select…
Browse files Browse the repository at this point in the history
…ed layer
  • Loading branch information
vannizhang committed Apr 4, 2024
1 parent d36fb53 commit 4101e7d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { AnimationDownloadPanel } from '@shared/components/AnimationDownloadPane
import { useFrameDataForDownloadJob } from './useFrameDataForDownloadJob';
import { AnimationFrameData } from '@vannizhang/images-to-video-converter-client';
import { CloseButton } from '@shared/components/CloseButton';
import { selectShouldShowSentinel2Layer } from '@shared/store/LandcoverExplorer/selectors';

type Props = {
mapView?: IMapView;
Expand All @@ -56,6 +57,10 @@ const AnimationPanel: FC<Props> = ({ mapView }: Props) => {

const animationSpeed = useSelector(selectAnimationSpeed);

const shouldShowSentinel2Layer = useSelector(
selectShouldShowSentinel2Layer
);

useMediaLayerAnimation(mediaLayerElements);

const initMediaLayer = () => {
Expand Down Expand Up @@ -136,7 +141,9 @@ const AnimationPanel: FC<Props> = ({ mapView }: Props) => {
width: mapView.width,
height: mapView.height,
}}
authoringAppName="landcover"
authoringAppName={
shouldShowSentinel2Layer ? 'sentinel2' : 'landcover'
}
/>
</div>
);
Expand Down

0 comments on commit 4101e7d

Please sign in to comment.