Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed issues with labels not showing when too long

Taylor Gunnoe3c3664240899
diff --git a/web/css/bank.css b/web/css/bank.css
index 1b1f78840..dc61d36eb 100644
--- a/web/css/bank.css
+++ b/web/css/bank.css
@@ -81,7 +81,12 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3ffffff', e
.bank .tabContainer {border-bottom: 2px #005190 solid; }
.bank h3 {display:block; color:#ffffff; font-size: 1em; border:none; text-decoration:none; width:98%;}
#callSelectorLink {display: inline-block; width:32px; height:32px; background: transparent url("../images/addLayers.png"); margin-left: 50px;float:right;}
-.bank div,.bank ul {display:block;width:100%; margin:0 auto;}
+.bank div,.bank ul {
+ display:block;
+ width:100%;
+ margin:0 auto;
+ overflow: auto;
+}
.bank .category {overflow:hidden;}
.bank h3 {background: none; padding: 1px 3px; font-size:0.9em; margin-top:10px; margin-left:2%;text-transform:uppercase;}
.bank li.item {
diff --git a/web/css/wv.palettes.css b/web/css/wv.palettes.css
index c14846fe1..0e54fe213 100644
--- a/web/css/wv.palettes.css
+++ b/web/css/wv.palettes.css
@@ -47,15 +47,14 @@
}
.wv-palettes-min, .wv-palettes-max{
- font-size:10px;
+ font-size:1em;
white-space:nowrap;
}
.layer-hidden .wv-palettes-min, .layer-hidden .wv-palettes-max{
color:#999;
}
.wv-palettes-max {
- position: absolute;
- right: 0;
+ float: right;
}
/* FIXME: Too specific */
diff --git a/web/js/data/wv.data.model.js b/web/js/data/wv.data.model.js
index 9f1750f5a..97f6945ee 100644
--- a/web/js/data/wv.data.model.js
+++ b/web/js/data/wv.data.model.js
@@ -329,7 +329,7 @@ wv.data.model = wv.data.model || function(models, config) {
var handlerFactory = wv.data.handler.getByName(productConfig.handler);
var handler = handlerFactory(config, self);
-
+ console.log(handler);
handler.events.on("query", function() {
self.events.trigger(self.EVENT_QUERY);
}).on("results", function(results) {
@@ -361,6 +361,7 @@ wv.data.model = wv.data.model || function(models, config) {
if ( !queryExecuting ) {
try {
queryExecuting = true;
+ console.log('messed up');
handler.submit();
} catch ( error ) {
queryExecuting = false;
diff --git a/web/js/layers/wv.layers.active.js b/web/js/layers/wv.layers.active.js
index 5d681d662..9a63dbc22 100644
--- a/web/js/layers/wv.layers.active.js
+++ b/web/js/layers/wv.layers.active.js
@@ -131,16 +131,6 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
.addClass("item")
.attr("data-layer", layer.id);
- var $removeButton = $("<a></a>")
- .attr("id", "close" + group.id + encodeURIComponent(layer.id))
- .addClass("button close bank-item-img")
- .attr("data-layer", layer.id)
- .attr("title", "Remove Layer");
- var $removeImage = $("<i></i>");
-
- $removeButton.append($removeImage);
- $layer.append($removeButton);
-
var $visibleButton = $("<a></a>")
.addClass("hdanchor hide hideReg bank-item-img")
.attr("id", "hide" + encodeURIComponent(layer.id))
@@ -188,6 +178,16 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
var names = models.layers.getTitles(layer.id);
+ var $removeButton = $("<a></a>")
+ .attr("id", "close" + group.id + encodeURIComponent(layer.id))
+ .addClass("button close bank-item-img")
+ .attr("data-layer", layer.id)
+ .attr("title", "Remove Layer");
+ var $removeImage = $("<i></i>");
+
+ $removeButton.append($removeImage);
+
+
var $editButton = $("<a></a>")
.attr("data-layer", layer.id)
.attr("title", "Layer options for " + names.title)
@@ -202,8 +202,6 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
$editButton.append($gearIcon);
- $layer.append($editButton);
-
var $mainLayerDiv = $('<div></div>')
.addClass('layer-main')
.attr("data-layer", layer.id)
@@ -219,6 +217,8 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
.classed('data-bar-hovered',false);
});
+ $mainLayerDiv.prepend($editButton);
+ $mainLayerDiv.prepend($removeButton);
$layer.append($mainLayerDiv);
if ( layer.palette ) {