Interactive interface for browsing global, full-resolution satellite imagery
Fixed WV-113, WV-195, WV-200
Tilak Joshic19dd2ea64db
diff --git a/css/dateSpan.css b/css/dateSpan.cssindex f601f63aa..08d92c628 100644--- a/css/dateSpan.css+++ b/css/dateSpan.css@@ -33,7 +33,7 @@ background: -o-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50background: -ms-linear-gradient(top, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* IE10+ */background: linear-gradient(to bottom, rgba(35,40,45,0.65) 0%,rgba(0,5,10,0.65) 50%,rgba(35,40,45,0.65) 100%); /* W3C */filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf2d2d2d', endColorstr='#bf2d2d2d',GradientType=0 ); /* IE6-9 */-+height:23px;}ul.sliderLabel {text-shadow: none; color:#fff; margin:-20px 0 0 0; background:none; height:20px; overflow:hidden; font-size:12px !important; font-weight:bold; line-height:20px !important;}diff --git a/css/map.css b/css/map.cssindex 04881ff4b..8acdadff8 100644--- a/css/map.css+++ b/css/map.css@@ -2,7 +2,7 @@div.olControlMousePosition {position: absolute;right: 12px;- bottom: 80px;+ bottom: 98px;z-index: 2000;padding: 1px 8px;@@ -16,7 +16,7 @@ div.olControlMousePosition {div.olControlScaleLineCustom {position: absolute;right: 12px;- bottom: 100px;+ bottom: 118px;z-index: 2000;display: block;@@ -69,7 +69,7 @@ div.olMap {/* Zoom panel controls */div.olControlZoomPanelCustom {- top: 101px;+ top: 125px;left: 14px;height: 68px;width: 36px;diff --git a/index.html b/index.htmlold mode 100644new mode 100755index 1780436c1..8d0f310ee--- a/index.html+++ b/index.html@@ -124,7 +124,7 @@<div data-role="content"><div id="banner"><img class='logo' src='images/logo.png' /><ul id="toolbarlist">- <li><!--<a id='aboutus_link' class='toolbaricon' title='Information' href='javascript:showOverlay();'>--><div id='info_drop'><div id='info' title='Information'><img src='images/information.png' /></div><div class='hidden'><a href='javascript:showOverlay();' title='About Worldview'>About</a><a href="http://earthdata.nasa.gov/content/contact-us" target="_blank" title='Feedback'>Feedback</a></div></div><!--</a>--></li>+ <li><!--<a id='aboutus_link' class='toolbaricon' title='Information' href='javascript:showOverlay();'>--><div id='info_drop'><div id='info' title='Information'><img src='images/information.png' /></div><div class='hidden'><a href="mailto:[email protected]?subject=Feedback for EOSDIS Worldview tool" target="_blank" title='Feedback'>Feedback</a><a href='javascript:startTour(true);' title='Start Tour'>Start Tour</a><a href='javascript:showOverlay();' title='About Worldview'>About</a></div></div><!--</a>--></li><!--<li><a id='camera_link' class='toolbaricon' href='javascript:showRubberBand();'><img src='images/camera.png' /></a></li>--><li><div id='camera'></div></li><li><div id="switch"></div></li>diff --git a/js/main.js b/js/main.jsindex dd3afea47..7d8d3cff8 100644--- a/js/main.js+++ b/js/main.js@@ -112,7 +112,7 @@ $(function() {// Initialize "static" varslog.warn("Development version");}- startTour();+ startTour(false);};var onConfigLoad = function(config) {diff --git a/js/tour.js b/js/tour.jsindex 39d4a3662..3f96b48e7 100644--- a/js/tour.js+++ b/js/tour.js@@ -1,7 +1,7 @@/*** Create the splash screen and tour panels and control iteration over them.*/-function startTour() {+function startTour(noDisable) {// determine screen size - don't show if too smallvar devWidth = window.screen.availWidth;@@ -43,7 +43,7 @@ function startTour() {}// return if the user has disabled the splash- if(hideSplash) {+ if(hideSplash && !noDisable) {return;}@@ -53,42 +53,48 @@ function startTour() {var pos, width, height, xval, yval; // helpful calulation vars// splash screen overlay- var splashOverlay = new YAHOO.widget.Panel("splash", { zIndex:1020, visible:false, modal:true, draggable:false, } );- var item = "<div class=\"splash\">"+- "<h3>Welcome to Worldview!</h3>"+- "</br>"+- "<center>"+- "<p class=\"splash\">This new tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> allows users to interactively browse satellite imagery in near real-time, generally within 3 hours of observation. Use the tools described below to change the imagery on the map and compare it to past observations.</p>"+- "</br></br>"+- "<table class=\"splash\">"+- "<tr>"+- "<td><img src=\"images/picker-mini.png\" alt=\"Product Picker\" width=\"100\" class=\"splash\"/></td>"+- "<td><img src=\"images/date-mini.png\" alt=\"Date Slider\" width=\"100\" class=\"splash\"/></td>"+- "<td><img src=\"images/toolbar-mini.png\" alt=\"Toolbar\" width=\"100\" class=\"splash\"/></td>"+- "<td><img src=\"images/map-mini.png\" alt=\"Map\" width=\"100\" class=\"splash\"/></td>"+- "</tr>"+- "<tr>"+- "<td><p class=\"splash\">Use the <span class=\"highlight\">Product Picker</span> on the left to choose the type of imagery to display on the map.</p></td>"+- "<td><p class=\"splash\">Use the <span class=\"highlight\">Date Slider</span> on the bottom to choose the date of the observations.</p></td>"+- "<td><p class=\"splash\">Use the <span class=\"highlight\">Tool Bar</span> at the top to see other tools for changing and saving the view.</p></td>"+- "<td><p class=\"splash\">Use the <span class=\"highlight\">Map</span> itself to pan or zoom in on an area.</p></td>"+- "</tr>"+- "<tr>"+- "<td><p></p></td>"+- "</tr>"+- "<tr>"+- "<td rowspan=\"2\" colspan=\"2\"><button id='takeTour' type='button' class=\"takeTour\"; background-image:url('../images/splash-button.png')\">Take Tour</button></td>"+- "<td rowspan=\"2\" colspan=\"2\"><button id='skipTour' type='button' class=\"skipTour\">Skip Tour</button></td>"+- "</tr>"+- "<tr></tr>"+- "<tr>"+- "<td><p class=\"splash\"><input id='dontShowAgain' value=\"false\" type='checkbox'>Do not show again</p></td>"+- "</tr>"+- "</table>"+- "</center>"+- "</div>";+ if(!this.splashOverlay){+ this.splashOverlay = new YAHOO.widget.Panel("splash", { zIndex:1020, visible:false, modal:true, draggable:false, } );- splashOverlay.setBody(item);+ var item = "<div class=\"splash\">"++ "<h3>Welcome to Worldview!</h3>"++ "</br>"++ "<center>"++ "<p class=\"splash\">This new tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> allows users to interactively browse satellite imagery in near real-time, generally within 3 hours of observation. Use the tools described below to change the imagery on the map and compare it to past observations.</p>"++ "</br></br>"++ "<table class=\"splash\">"++ "<tr>"++ "<td><img src=\"images/picker-mini.png\" alt=\"Product Picker\" width=\"100\" class=\"splash\"/></td>"++ "<td><img src=\"images/date-mini.png\" alt=\"Date Slider\" width=\"100\" class=\"splash\"/></td>"++ "<td><img src=\"images/toolbar-mini.png\" alt=\"Toolbar\" width=\"100\" class=\"splash\"/></td>"++ "<td><img src=\"images/map-mini.png\" alt=\"Map\" width=\"100\" class=\"splash\"/></td>"++ "</tr>"++ "<tr>"++ "<td><p class=\"splash\">Use the <span class=\"highlight\">Product Picker</span> on the left to choose the type of imagery to display on the map.</p></td>"++ "<td><p class=\"splash\">Use the <span class=\"highlight\">Date Slider</span> on the bottom to choose the date of the observations.</p></td>"++ "<td><p class=\"splash\">Use the <span class=\"highlight\">Tool Bar</span> at the top to see other tools for changing and saving the view.</p></td>"++ "<td><p class=\"splash\">Use the <span class=\"highlight\">Map</span> itself to pan or zoom in on an area.</p></td>"++ "</tr>"++ "<tr>"++ "<td><p></p></td>"++ "</tr>"++ "<tr>"++ "<td rowspan=\"2\" colspan=\"2\"><button id='takeTour' type='button' class=\"takeTour\"; background-image:url('../images/splash-button.png')\">Take Tour</button></td>"++ "<td rowspan=\"2\" colspan=\"2\"><button id='skipTour' type='button' class=\"skipTour\">Skip Tour</button></td>"++ "</tr>"++ "<tr></tr>"++ "<tr>"++ "<td><p class=\"splash\"><input id='dontShowAgain' value=\"false\" type='checkbox'>Do not show again</p></td>"++ "</tr>"++ "</table>"++ "</center>"++ "</div>";++ splashOverlay.setBody(item);+ }+ else {+ splashOverlay.show();+ }/* set up all of the callout panels */var productText = "<div>"+