Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

allow minimized anim widget in embed mobile, rehide scale and coord in mobile embed

Ed Plato77a3c39f6033
diff --git a/web/css/anim.widget.css b/web/css/anim.widget.css
index 7c733f51b..5a6c6c9f5 100644
--- a/web/css/anim.widget.css
+++ b/web/css/anim.widget.css
@@ -3,7 +3,7 @@
bottom: 88px;
z-index: 100;
&.minimized {
- bottom: 80px;
+ bottom: 120px;
left: 10px;
}
}
diff --git a/web/css/embedded.css b/web/css/embed.css
similarity index 99%
rename from web/css/embedded.css
rename to web/css/embed.css
index d194a31e0..3d4865d60 100644
--- a/web/css/embedded.css
+++ b/web/css/embed.css
@@ -40,7 +40,7 @@
padding: 2.5px 4px;
}
-.embedded-mode {
+.embed-mode {
#wv-toolbar {
display: none;
}
diff --git a/web/css/mobile.css b/web/css/mobile.css
index 7f9614709..c185ebeb0 100644
--- a/web/css/mobile.css
+++ b/web/css/mobile.css
@@ -1,5 +1,23 @@
@media only screen and (max-width: 768px) {
- #wv-content:not(.embedded-mode) {
+ div.olControlScaleLineCustom {
+ bottom: 10px;
+ }
+ .olControlScaleLineCustomBottom {
+ display: none;
+ }
+ div.olControlMousePosition {
+ display: none;
+ }
+ div.olControlMousePosition,
+ div.olControlScaleLineCustom {
+ display: none !important;
+ }
+ .wv-coords-map {
+ display: none !important;
+ }
+
+ /* EMBED MODE */
+ #wv-content:not(.embed-mode) {
#wv-sidebar {
position: static;
}
@@ -98,27 +116,6 @@
padding: 5.72px 9.1px;
}
- div.olControlScaleLineCustom {
- bottom: 10px;
- }
-
- .olControlScaleLineCustomBottom {
- display: none;
- }
-
- div.olControlMousePosition {
- display: none;
- }
-
- div.olControlMousePosition,
- div.olControlScaleLineCustom {
- display: none !important;
- }
-
- .wv-coords-map {
- display: none !important;
- }
-
button#layers-add,
button#compare-toggle-button {
width: 100%;
diff --git a/web/js/app.js b/web/js/app.js
index cbfb675b1..b1ed52878 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -85,7 +85,7 @@ import '../css/orbitTracks.css';
import '../css/facets.css';
import '../css/recent-layers.css';
import '../css/location-search.css';
-import '../css/embedded.css';
+import '../css/embed.css';
require('@elastic/react-search-ui-views/lib/styles/styles.css');
@@ -172,7 +172,7 @@ class App extends React.Component {
modalId,
parameters,
} = this.props;
- const appClass = `wv-content ${isEmbedModeActive ? 'embedded-mode' : ''}`;
+ const appClass = `wv-content ${isEmbedModeActive ? 'embed-mode' : ''}`;
return (
<div className={appClass} id="wv-content" data-role="content">
{!isMobile && !isEmbedModeActive && <LocationSearch />}
diff --git a/web/js/containers/animation-widget.js b/web/js/containers/animation-widget.js
index a7b7eec18..8b344d9ce 100644
--- a/web/js/containers/animation-widget.js
+++ b/web/js/containers/animation-widget.js
@@ -693,7 +693,7 @@ function mapStateToProps(state) {
const { isDistractionFreeModeActive } = ui;
const { isEmbedModeActive } = embed;
const animationIsActive = isActive
- && browser.greaterThan.small
+ && (browser.greaterThan.small || isEmbedModeActive)
&& lodashGet(map, 'ui.selected.frameState_')
&& sidebar.activeTab !== 'download' // No Animation when data download is active
&& !compare.active