Interactive interface for browsing global, full-resolution satellite imagery
Tweaked UI for 0.7 release
Taylor Gunnoe9f783ce2f63c
diff --git a/src/css/bank.css b/src/css/bank.cssindex dbd7ba7b5..2d0304cc1 100644--- a/src/css/bank.css+++ b/src/css/bank.css@@ -1,28 +1,50 @@/*canvas {float:left;}*/+.toggleButtonHolder{+}a.accordionToggler {display:block; width:10%; overflow:hidden; z-index:292; height:2.1em; background: none no-repeat scroll left; }a.arrow { float:right; border-radius: 0 10px 10px 0; -moz-border-radius: 0 10px 10px 0; -webkit-border-radius: 0 10px 10px 0; text-decoration:none; color:#fff; position:relative; letter-spacing:2px; font-family:"Gill Sans","Helvetica",sans-serif;}a.staticLayers {float:left;- left:0;+ left:10px;position:absolute;- top:69px;- background-position:right;- background-repeat: no-repeat;+ top:65px;height:auto;- width:6em;- background-image: url(../images/expandOut.png);- background: no-repeat right url("../images/expandOut.png"),-moz-linear-gradient(top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%); /* FF3.6+ */- background: no-repeat right url("../images/expandOut.png"), -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.5)), color-stop(50%,rgba(0,0,0,0.6)), color-stop(100%,rgba(0,0,0,0.7))); /* Chrome,Safari4+ */- background: no-repeat right url("../images/expandOut.png"), -webkit-linear-gradient(top, rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.6) 50%,rgba(0,0,0,0.7) 100%); /* Chrome10+,Safari5.1+ */- background: no-repeat right url("../images/expandOut.png"), -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: no-repeat right url("../images/expandOut.png"), -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: no-repeat right url("../images/expandOut.png"), 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 */-+ background: no-repeat 80px 50% url("../images/hg.png") rgba(40,40,40,0.85);+ border-radius: 0;+ box-sizing: border-box;+ -moz-box-sizing:border-box;+ -webkit-box-sizing:border-box;+ -o-box-sizing:border-box;+ width: 263px;+ margin: 0;+ border: 1px solid #333;+ border-top: 0;+ cursor:pointer;+ padding:7px 0;+}+a.staticLayers:hover {+ background-image:url("../images/hg-h.png");+ background-color:#fff;+ color:#1a1a1a;}-a.atcollapse {background-image: url("../images/expandIn.png"); }-a.atexpand {background-image: url("../images/expandOut.png");}+a.atcollapse {+ background: 50% 50% no-repeat url("../images/hg.png");+ border-radius:0;+ border: 1px solid #333;+ box-sizing: border-box;+ position: absolute;+ right: 0;+ border-right: 0;+ top: 7px;+}+a.atcollapse:hover{+ background-image:url("../images/hg-h.png");+ background-color:#ccc;+ cursor:pointer;+}+a.atexpand {background-image: url("../images/hg.png");}div.bank { display:inline-block; float:left; width: 100%; height:100%; /*box-shadow: 0 0 4px 1px #bbb;*/ font: 1em; color: #222; text-shadow:none;}.bank h1,h2,h3,h4 {margin:0px; padding:0px; color:#000; font-weight:400;}diff --git a/src/css/map-ol2.css b/src/css/map-ol2.cssindex 124051fb3..a42433902 100644--- a/src/css/map-ol2.css+++ b/src/css/map-ol2.css@@ -80,8 +80,18 @@ div.olControlScaleLineCustom {}.wv-map-zoom {- right: 2px;+ right: 10px;position: absolute;+ z-index:10000;+}+.wv-map-zoom.ui-state-default{+ background:none rgba(40,40,40,0.85);+ border:1px solid #333;+}+.wv-map-zoom.ui-state-hover{+ background-color:#fff;+ color:#1a1a1a;+ border:1px solid #333;}.wv-map-zoom-in {diff --git a/src/css/new-ui.css b/src/css/new-ui.cssindex 480efa038..717e60acd 100644--- a/src/css/new-ui.css+++ b/src/css/new-ui.css@@ -1,15 +1,4 @@-@font-face {- font-family: 'Play';- font-style: normal;- font-weight: 400;- src: url(../font/Play-Regular.ttf) format('truetype');-}-@font-face {- font-family: 'Play Bold';- font-style:bold;- font-weight: 700;- src: url(../font/Play-Bold.ttf) format('ttf');-}+*:focus {outline: 0;}@@ -22,13 +11,7 @@left:10px;right:10px;border:1px solid #333;- background: #f5f5f5; /* Old browsers */- background: -moz-linear-gradient(top, #f5f5f5 0%, #e2e2e2 50%, #c2c2c2 100%); /* FF3.6+ */- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#e2e2e2), color-stop(100%,#c2c2c2)); /* Chrome,Safari4+ */- background: -webkit-linear-gradient(top, #f5f5f5 0%,#e2e2e2 50%,#c2c2c2 100%); /* Chrome10+,Safari5.1+ */- background: -o-linear-gradient(top, #f5f5f5 0%,#e2e2e2 50%,#c2c2c2 100%); /* Opera 11.10+ */- background: -ms-linear-gradient(top, #f5f5f5 0%,#e2e2e2 50%,#c2c2c2 100%); /* IE10+ */- background: linear-gradient(to bottom, #f5f5f5 0%,#e2e2e2 50%,#c2c2c2 100%); /* W3C */+ background: rgba(40,40,40,0.9); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#c2c2c2',GradientType=0 ); /* IE6-9 */}@@ -52,7 +35,7 @@cursor:pointer;}.x.axis .tick text{- fill:#1a1a1a;+ fill:#fff;text-transform:uppercase;}.x.axis>.tick>line {@@ -64,16 +47,19 @@stroke-linejoin:miter;stroke-miterlimit:4;}+.x.axis > .tick circle{+ fill:#fff;+}.x.axis> .tick rect {fill:#e2e2e2;fill-opacity:0;}.x.axis> .tick:hover rect.axis-background{- fill:#1a1a1a;+ fill:#fff;fill-opacity:1;}.x.axis> .tick:hover text {- fill:#e2e2e2;+ fill:#1a1a1a;}/*.x.axis >.tick g.subtick:nth-child(5) line{display:none;@@ -85,11 +71,11 @@}.x.axis > .tick > .subtick > .tick:hover rect{fill-opacity:0.3;- fill:#1a1a1a;+ fill:#fff;}.x.axis > .tick > .subtick > .tick > line{fill:none;- stroke:#c8c8c8;+ stroke:#333;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;@@ -120,7 +106,7 @@}#timeline-header input{height:40px;- color:#1a1a1a;+ color:#fff;font-size:24px;background:transparent;border:0px;@@ -147,13 +133,13 @@/* display:none;*/}#timeline-header .input-wrapper:hover{- border-color:#1a1a1a;+ border-color:#fff;}#timeline-header .input-wrapper:hover .date-arrows{visibility:visible;}#timeline-header .input-wrapper.selected{- border-color:#1a1a1a;+ border-color:#fff;}#timeline-header div{display:inline-block;}@@ -174,6 +160,10 @@ display:inline-block;}left: 50%;margin-left: -12px;}+#timeline-header .button-action-group svg path{+ fill:#fff;+}+#timeline-header .date-arrows-wrapper{vertical-align:middle;visibility:hidden;@@ -189,8 +179,11 @@ display:inline-block;}display:block;margin:0 auto;}+#timeline-header .date-arrows svg path{+ fill:#fff;+}#timeline-header .date-arrows:hover svg path {- fill:#ffffff;+ fill:#1a1a1a;}#timeline-header .date-arrow-up{@@ -204,7 +197,7 @@ display:inline-block;}-ms-filter: "FlipV";}#timeline-header>.button-action-group:hover,#timeline-header .date-arrows:hover {- background-color:#1a1a1a;+ background-color:#fff;cursor:pointer;}#left-arrow-group{@@ -216,9 +209,6 @@ display:inline-block;}-ms-filter: "FlipH";}#timeline-header>.button-action-group:hover .arrow{- fill:#e2e2e2;-}-#timeline-header>.buttion-action-group:hover .arrow{-webkit-transform: translate(8px,0px);fill:#1a1a1a;fill-opacity:1;@@ -245,7 +235,7 @@ display:inline-block;}.x.axis path, .x.axis line {fill: none;- stroke: #1a1a1a;+ stroke: #ffffff;shape-rendering: crispEdges;}.y.axis path, .y.axis line {@@ -260,20 +250,6 @@ display:inline-block;}stroke:steelblue;}-#timeline-text{- color:black;- font-size:14px;- font-weight:bold;- position:absolute;- bottom:65px;- left:0;- display:none;- background-color:#ff2a2a;- border:2px solid #ff7070;- padding:5px;- border-radius:5px;- z-index:10000;-}#timeline-zoom{display:inline-block;vertical-align:middle;@@ -295,17 +271,17 @@ display:inline-block;}font-family:‘Lucida Console’, Monaco, monospace;}#timeline-zoom a.zoom-btn.depth-1{- color:#1a1a1a;+ color:#ffffff;font-size:1.5em;line-height:1.5em;}#timeline-zoom a.zoom-btn.depth-2{- color:#666666;+ color:#999999;font-size:1em;line-height:1em;}#timeline-zoom a.zoom-btn.depth-3{- color:#b3b3b3;+ color:#222;font-size:0.7em;line-height:1em;}@@ -313,8 +289,8 @@ display:inline-block;}display:none;}#timeline-zoom a.zoom-btn:hover{- background-color:#1a1a1a;- color:#fff;+ background-color:#fff;+ color:#1a1a1a;}#timeline-hide {height:65px;@@ -324,13 +300,13 @@ display:inline-block;}border-left:1px solid #1a1a1a;}#timeline-hide:hover{- background-color:#1a1a1a;+ background-color:#fff;}.x.axis > g.tick > text > .sub-label{- fill:#777;+ fill:#333;}.x.axis > g.tick:hover > text > .sub-label{- fill:#fff;+ fill:#1a1a1a;}#guitarpick{cursor:pointer;@@ -361,8 +337,8 @@ display:inline-block;}margin:26px auto 0 auto;}#timeline-hide .hamburger path{- fill:#1a1a1a;+ fill:#fff;}#timeline-hide:hover .hamburger path {- fill:#cccccc;+ fill:#1a1a1a;}\ No newline at end of filediff --git a/src/css/products.css b/src/css/products.cssindex e55d142b5..c927a471c 100644--- a/src/css/products.css+++ b/src/css/products.css@@ -1,15 +1,21 @@+.products {display:block;float:left;z-index:2;- min-width:238px;- width:18%;+ min-width:263px;+ width:263px;height:65%;position:absolute;overflow:hidden;- background: rgba(38,43,49,0.65);- border-radius:0 10px 10px 0;- top: 65px;+ background: rgba(40,40,40,0.85);+ border-radius:0;+ left:10px;+ top:65px;+ -webkit-box-sizing:border-box;+ -o-box-sizing:border-box;+ -moz-box-sizing:border-box;+ box-sizing:border-box;}.ui-tabs-nav {clear:both; display:inline-block; overflow:hidden; width:90%; border-radius:0; border-bottom: 3px #00457b solid; float:left;}@@ -65,7 +71,7 @@border-bottom: 3px rgb(99,53,45) solid;}-.toggleButtonHolder { display:inline; overflow:hidden;}+@media only screen and (max-width: 720px) and (orientation: portrait), only screen and (device-aspect-ratio: 2/3) and (orientation:portrait), only screen and (device-aspect-ratio:40/71) and (orientation:portrait){.products {display:block; float:left; min-width:238px; width:100%; height:100%; position:absolute !important; overflow:hidden;diff --git a/src/css/wv.main.css b/src/css/wv.main.cssindex 1851102d1..7a3961220 100644--- a/src/css/wv.main.css+++ b/src/css/wv.main.css@@ -9,7 +9,7 @@* All Rights Reserved.*/-html,body, div, ul, li, p, h1, h2, h3, h4, h5, h6 {display:block; margin:0; padding:0; font: 100 12.8px/16px "helvetica",sans-serif;}+html,body, div, ul, li, p, h1, h2, h3, h4, h5, h6 {display:block; margin:0; padding:0; font: 100 11px/11px "Lucida Console",Monaco, monospace;}html, body {width: 100%;@@ -128,22 +128,51 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolu}#wv-logo {- background: url('../brand/images/wv-logo.png?v=@BUILD_NONCE@') no-repeat center;- width: 247px;- height: 45px;- display: inline-block;+ background: url('../brand/images/wv-logo.png?v=@BUILD_NONCE@') no-repeat center rgba(40,40,40,0.85);+ width: 263px;+ height:55px;+ padding:5px 0;+ position:absolute;+ top:10px;+ left:10px;+ border:1px solid #333;+ border-bottom:0;+ z-index:10000;+ -webkit-box-sizing:border-box;+ -o-box-sizing:border-box;+ -moz-box-sizing:border-box;+ box-sizing:border-box;+}++#wv-toolbar{+ position:absolute;+ right:10px;+ top:10px;+ z-index:10000;+ background:rgba(40,40,40,0.85);+ border-radius:0;+ border:1px solid #333;+}+#wv-toolbar li{+ display:inline-block;+}+#wv-toolbar li label {+ border-radius:0;+ border:0;+}+#wv-toolbar li .ui-state-default{+ background-color:transparent;+ background-image:none;+}+#wv-toolbar li .ui-state-hover{+ background-color:#fff;+ color:#1a1a1a;}-.ui-button {- z-index: 1000;- border: 1px solid #aaa;- background: rgba(0, 0, 0, 0.5);color: #eeeeee;}.ui-state-active {- border: 1px solid #808080;- background: #808080;}.wv-menu-item-selected {@@ -151,11 +180,6 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolucolor: #eee;}-.ui-state-hover {- background: #eeeeee;- color: #404040;-}-.ui-menu { position: absolute; width: 100px; z-index: 1000; }/* Allow Font Awesome Icons in lieu of jQuery UI and only apply when using a FA icon */@@ -166,7 +190,7 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolutext-indent: 0;/* Bump it up - jQuery UI is -8px *//*margin-top: -0.5em; */- margin-top: 3px;+}/* Allow use of icon-large to be properly aligned */@@ -180,15 +204,19 @@ div.horizontalContainer {width:100%; display:block; float:left; position:absolu}.ui-widget-content {- background: rgba(0, 0, 0, 0.5);+ background: rgba(40, 40, 40, 0.85);+ border:0;+ border-radius:0;}.ui-dialog .ui-dialog-content {- background: #222222;+ background-image: none;padding-top: 15px;padding-bottom: 15px;}-+.ui-corner-all{+border-radius:0;+}.ui-tooltip {@@ -226,7 +254,10 @@ a:hover {}.ui-menu-item {- font-size: 18px;+ font-size: 13px;+}+.ui-menu-item i{+ font-size:18px;}.iCheck-checkbox {@@ -242,20 +273,27 @@ label {-o-user-select: none;user-select: none;}-+.wv-panel{+ border:1px solid #333;+}.wv-panel .ui-dialog-titlebar {- background: #222222;+ background: none transparent;border: 0;border-bottom-left-radius: 0;border-bottom-right-radius: 0;}-+.ui-widget-header .ui-state-default{+ background:none transparent;+ border:0;+}+.ui-widget-header .ui-state-hover{+ background:#fff;+}.wv-panel .ui-dialog-content {padding: 0em 1em 1em 1em;}.wv-panel .ui-dialog-title {- font-size: 12px;font-weight: normal;}diff --git a/src/css/wv.sidebar.css b/src/css/wv.sidebar.cssindex 027193886..8840ae1e0 100644--- a/src/css/wv.sidebar.css+++ b/src/css/wv.sidebar.css@@ -10,7 +10,8 @@*/#productsHolder {- border: 0px;+ border: 1px solid #333;+ border-top:0;}#productsHoldertabs {diff --git a/src/images/hg-h.png b/src/images/hg-h.pngnew file mode 100644index 000000000..12e035fefBinary files /dev/null and b/src/images/hg-h.png differdiff --git a/src/images/hg.png b/src/images/hg.pngnew file mode 100644index 000000000..cb78cea51Binary files /dev/null and b/src/images/hg.png differdiff --git a/src/images/hg.svg b/src/images/hg.svgnew file mode 100644index 000000000..c7a87a54b--- /dev/null+++ b/src/images/hg.svg@@ -0,0 +1,32 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ version="1.1"+ width="10"+ height="9"+ id="svg6622">+ <metadata+ id="metadata6630">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title></dc:title>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <defs+ id="defs6628" />+ <path+ d="M 0,0 0,1 10,1 10,0 0,0 z M 0,4 0,5 10,5 10,4 0,4 z M 0,8 0,9 10,9 10,8 0,8 z"+ id="path6624"+ style="fill:#cccccc;fill-opacity:1;stroke:none" />+</svg>diff --git a/src/index.html b/src/index.htmlindex a93df59bb..b9824287f 100644--- a/src/index.html+++ b/src/index.html@@ -205,21 +205,20 @@<body class="yui-skin-sam"><div data-role="page" id="app"><div data-role="content">- <div id="banner"><div id="wv-logo"></div>+<ul id="wv-toolbar"><li id="wv-info-button" class="wv-toolbar-button"></li><li id="wv-image-button" class="wv-toolbar-button"></li><li id="wv-proj-button" class="wv-toolbar-button"></li><li id="wv-link-button" class="wv-toolbar-button"></li></ul>- </div>+ <div id="wv-logo"></div><div id="productsHolder"></div><div id="map" class="map"></div><div id="eventsHolder"></div><div id="imagedownload"></div><div id="dlMap"></div>- <div id="timeline-text">Test</div><section id="timeline"><div id="timeline-header">diff --git a/src/js/layers/wv.layers.sidebar.js b/src/js/layers/wv.layers.sidebar.jsindex 2290d857d..0cf5b1d08 100644--- a/src/js/layers/wv.layers.sidebar.js+++ b/src/js/layers/wv.layers.sidebar.js@@ -142,6 +142,7 @@ wv.layers.sidebar = wv.layers.sidebar || function(models, config) {.addClass("arrow").attr("title", "Hide");$collapseContainer.append($collapseButton);+$container.append($collapseContainer);$container.append($("<div id='products'></div>"))@@ -221,7 +222,7 @@ wv.layers.sidebar = wv.layers.sidebar || function(models, config) {.addClass('arrow');$('.accordionToggler').attr("title","Hide Layer Selector");$('.accordionToggler').empty();- $('.products').animate({left:'0'}, now ? 0 : 300);+ $('.products').show('fast');collapsed = false;$('.accordionToggler').appendTo("#"+self.id+"toggleButtonHolder");}@@ -234,7 +235,7 @@ wv.layers.sidebar = wv.layers.sidebar || function(models, config) {$('.accordionToggler').attr("title","Show Layer Selector");$('.accordionToggler').html("Layers (" + models.layers.get().length + ")");var w = $('#app').outerWidth();- $('.products').animate({left:'-'+w+"px"}, 100);+ $('.products').hide('fast');collapsed = true;$("#" + self.id).after($('.accordionToggler'));}