Skip to content

Commit

Permalink
fix(shared): add authoringAppName prop to Animation Layer
Browse files Browse the repository at this point in the history
this authoringAppName will be used as prefix of the output MP4 file
  • Loading branch information
vannizhang committed Apr 11, 2024
1 parent 651c2b8 commit e561145
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/landsat-explorer/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ const Map = () => {
<MapPopUpAnchorPoint />
</GroupLayer>
<SwipeWidget />
<AnimationLayer imageryServiceUrl={LANDSAT_LEVEL_2_SERVICE_URL} />
<AnimationLayer
imageryServiceUrl={LANDSAT_LEVEL_2_SERVICE_URL}
authoringAppName="landsat"
/>
<HillshadeLayer />

<MapActionButtonsGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Props = {
/**
* name of the app/service to be added as prefix to the filename of the output .mp4 file
*/
authoringAppName?: string;
authoringAppName: string;
};

/**
Expand Down
6 changes: 6 additions & 0 deletions src/shared/components/AnimationLayer/AnimationLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ type Props = {
* The URL of the Imagery Service that will be used to provide image for theframes of Animation Layer
*/
imageryServiceUrl: string;
/**
* name of the app/service to be added as prefix to the filename of the output .mp4 file
*/
authoringAppName: string;
mapView?: MapView;
};

export const AnimationLayer: FC<Props> = ({
imageryServiceUrl,
authoringAppName,
mapView,
}: Props) => {
const dispatch = useDispatch();
Expand Down Expand Up @@ -203,6 +208,7 @@ export const AnimationLayer: FC<Props> = ({
<AnimationDownloadPanel
frameData4DownloadJob={frameData4DownloadJob}
animationSpeed={animationSpeed}
authoringAppName={authoringAppName}
mapViewWindowSize={{
width: mapView.width,
height: mapView.height,
Expand Down

0 comments on commit e561145

Please sign in to comment.