Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Minor styling adjustments to class based layers and tooltip location

Mike McGann1588f75aaa91
diff --git a/web/css/wv.palettes.css b/web/css/wv.palettes.css
index 60c81a058..d48df2ef3 100644
--- a/web/css/wv.palettes.css
+++ b/web/css/wv.palettes.css
@@ -72,6 +72,10 @@
cursor: crosshair;
}
+.bank div.wv-palettes-classes {
+ padding-bottom: 3px;
+}
+
.wv-palettes-classes {
cursor: crosshair;
}
@@ -81,10 +85,11 @@
padding-right: 5px;
margin-left: 3px;
border: 1px solid #000;
+ font-size: 11px;
}
.wv-palettes-class-detail {
- margin: 2px 5px 2px 0;
+ margin: 2px 5px 4px 0;
}
.wv-palettes-class-label {
diff --git a/web/js/layers/wv.layers.active.js b/web/js/layers/wv.layers.active.js
index b56a19618..02ee88b84 100644
--- a/web/js/layers/wv.layers.active.js
+++ b/web/js/layers/wv.layers.active.js
@@ -139,7 +139,7 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
.attr("id", group.id + "-" + encodeURIComponent(layer.id))
.addClass(self.id + "item")
.addClass("item")
- .attr("data-layer", layer.id);
+ .attr("data-layer", layer.id);
var $removeButton = $("<a></a>")
.attr("id", "close" + group.id + encodeURIComponent(layer.id))
@@ -147,7 +147,7 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
.attr("data-layer", layer.id)
.attr("title", "Remove Layer");
var $removeImage = $("<i></i>");
-
+
$removeButton.append($removeImage);
$layer.append($removeButton);
@@ -209,7 +209,7 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {
})
.append($('<h4></h4>').html(names.title))
.append($('<p></p>').html(names.subtitle));
-
+
$layer.append(mainLayerDiv);
if ( layer.palette ) {
diff --git a/web/js/palettes/wv.palettes.legend.js b/web/js/palettes/wv.palettes.legend.js
index ee251429a..99f31bbcf 100644
--- a/web/js/palettes/wv.palettes.legend.js
+++ b/web/js/palettes/wv.palettes.legend.js
@@ -87,7 +87,7 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {
$colorbar.tooltip({
position: {
my: "left middle",
- at: "right+15 middle",
+ at: "right+30 middle",
of: $colorbar
}
});
@@ -103,7 +103,7 @@ wv.palettes.legend = wv.palettes.legend || function(spec) {
$panel.tooltip({
position: {
my: "left middle",
- at: "right+15 middle",
+ at: "right+30 middle",
of: $panel
},
content: "X"