Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

multi-colored combo-zots

Jason Kentc0fb65a9a573
diff --git a/web/css/sidebar-panel.css b/web/css/sidebar-panel.css
index 45875a120..a765f088b 100644
--- a/web/css/sidebar-panel.css
+++ b/web/css/sidebar-panel.css
@@ -385,17 +385,28 @@ li.item.productsitem.inmotion,
top: 0;
bottom: 0;
width: 10px;
- background: #dacf00;
+
cursor: default;
display: none;
+ &.overzoom {
+ background: #dacf00;
+ &:hover {
+ background: #fff200;
+ }
+ }
&.layer-notice {
- background-color: #f90;
+ background-color: #f60;
&:hover {
background: #ff6900;
}
}
- &:hover {
- background: #fff200;
+ &.overzoom.layer-notice {
+ background: #f60;
+ background: linear-gradient(280deg, rgba(255, 102, 0, 0.9) 40%, rgba(255, 252, 3, 0.9) 60%);
+ &:hover {
+ background: #e50;
+ background: linear-gradient(280deg, rgba(255, 102, 0, 1) 40%, rgba(255, 252, 3, 1) 60%);
+ }
}
b {
text-align: center;
diff --git a/web/js/containers/sidebar/zot.js b/web/js/containers/sidebar/zot.js
index 431333f1d..9fd1afd24 100644
--- a/web/js/containers/sidebar/zot.js
+++ b/web/js/containers/sidebar/zot.js
@@ -7,13 +7,19 @@ export default function Zot (props) {
let className = 'zot';
let tooltipString = '';
const delay = isMobile ? { show: 300, hide: 300 } : { show: 0, hide: 300 };
-
- if (zot && zot.overZoomValue) {
- tooltipString += `Layer is overzoomed by ${zot.overZoomValue.toString()}x its maximum zoom level <br/>`;
- }
- if (zot && zot.layerNotices) {
- tooltipString += zot.layerNotices;
- className = 'zot layer-notice';
+ if (zot) {
+ const { overZoomValue, layerNotices } = zot;
+ if (overZoomValue) {
+ className = 'zot overzoom';
+ tooltipString += `Layer is overzoomed by ${zot.overZoomValue.toString()}x its maximum zoom level <br/>`;
+ }
+ if (layerNotices) {
+ tooltipString += zot.layerNotices;
+ className = 'zot layer-notice';
+ }
+ if (overZoomValue && layerNotices) {
+ className = 'zot overzoom layer-notice';
+ }
}
return (