Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed: * WV-345 * WV-354 * WV-356 * WV-358 * WV-359

Tilak Joshi531dab1a390a
diff --git a/css/products.css b/css/products.css
index 3666e3e8c..5109c3675 100644
--- a/css/products.css
+++ b/css/products.css
@@ -1,4 +1,4 @@
-.products {display:block; float:left; z-index:292; min-width:238px; width:18%; height:65%; position:relative; overflow:hidden;
+.products {display:block; float:left; z-index:295; min-width:238px; width:18%; height:65%; position:relative; overflow:hidden;
background: rgba(38,43,49,0.65); border-radius:0 10px 10px 0;
}
@@ -51,9 +51,12 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e
background: -o-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* W3C */
- }
-
+ }
}
+@media screen and (max-device-height: 720px) and (orientation: landscape){
+ div.olControlZoomPanelCustom {display:none !important;}
+}
+
diff --git a/js/bank.js b/js/bank.js
index 25bb5e61d..3c1763ac7 100644
--- a/js/bank.js
+++ b/js/bank.js
@@ -584,7 +584,7 @@ SOTE.widget.Bank.prototype.getCount = function(string){
var categories = string.split("~");
var count = 0;
for(var i=0; i<categories.length; ++i){
- count += categories[i].split(",").length - 1;
+ count += categories[i].split(/[\.,]/).length - 1;
}
return count;
};
@@ -651,6 +651,9 @@ SOTE.widget.Bank.prototype.unserialize = function(string){
items[j] = items[j].replace(/!/g, "");
this.hidden[items[j]] = 1;
}
+ else {
+ delete this.hidden[items[j]];
+ }
unserialized[items[0]].push({"value":items[j]});
}
diff --git a/js/selector.js b/js/selector.js
index c718ae2be..cfc3c5235 100644
--- a/js/selector.js
+++ b/js/selector.js
@@ -298,6 +298,7 @@ SOTE.widget.Selector.search = function(e){
var self = e.data.self;
var cat = self.openCat;
var val = e.target.value.toUpperCase();
+ val = val.replace(/[\(\)\"\'!\$\%\&\?\+\*\\\@\=]/g,"");
var valArr = val.split(/\s/);
//var re = new RegExp(val);
var content = document.getElementById(self.id+"content");