Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Enhancement] change export video playback button order (#1916)

Igor Dykhta41414ceb9f67
diff --git a/src/components/common/animation-control/playback-controls.tsx b/src/components/common/animation-control/playback-controls.tsx
index 15bb68342..c22a56f2d 100644
--- a/src/components/common/animation-control/playback-controls.tsx
+++ b/src/components/common/animation-control/playback-controls.tsx
@@ -103,12 +103,11 @@ function PlaybackControlsFactory(
PlayControl
) {
const PLAYBACK_CONTROLS_DEFAULT_ACTION_COMPONENTS = [
- WindowActionControl,
- AnimationWindowControl,
- // backwards compatible
+ PlayControl,
SpeedControlFactory(AnimationSpeedSlider),
ResetControl,
- PlayControl
+ WindowActionControl,
+ AnimationWindowControl
];
// eslint-disable-next-line complexity
diff --git a/src/reducers/map-style-updaters.ts b/src/reducers/map-style-updaters.ts
index 45e639e59..257b39861 100644
--- a/src/reducers/map-style-updaters.ts
+++ b/src/reducers/map-style-updaters.ts
@@ -67,6 +67,7 @@ export type BaseMapStyle = {
style?: Object;
layerGroups: LayerGroup[];
accessToken?: string;
+ custom?: boolean;
};
export type MapStyles = {
diff --git a/test/browser/components/common/animation-control-test.js b/test/browser/components/common/animation-control-test.js
index 0d9ea756d..4f1df0cc1 100644
--- a/test/browser/components/common/animation-control-test.js
+++ b/test/browser/components/common/animation-control-test.js
@@ -74,7 +74,7 @@ test('Components -> AnimationControl -> render with props', t => {
wrapper
.find(IconButton)
- .at(2)
+ .at(0)
.simulate('click');
t.ok(toggleAnimation.calledOnce, 'should call toggleAnimation');
t.end();