Skip to content

Commit

Permalink
Merge pull request #356 from nasa-gibs/development
Browse files Browse the repository at this point in the history
Development Branch
  • Loading branch information
Benjaki2 authored Jun 28, 2017
2 parents efee992 + 646c36f commit 5bb2f6f
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 70 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ You can end the session by pressing `control-C`
* [Optional Features](doc/features.md)
* [Development Notes](doc/developing.md)
* [Configuration](doc/config.md)
* [Testing](doc/testing.md)
* [Third-Party Library Use](THIRD_PARTY.md)


Expand Down
204 changes: 204 additions & 0 deletions doc/testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
# Testing
Note: Some of the parameters below may no longer be functional. Please contact us if you have any issues at [email protected].

To run unit tests using Grunt, see the [Grunt Targets](https://github.com/nasa-gibs/worldview/blob/9781bcc3c177338bf3043f59c1ebe1a9d8ae4355/doc/developing.md#unit-tests) documentation

Append the following parameters to the URL to test using mock data.

## Permalinks

### External

<table>
<colgroup>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
</colgroup>
<thead>
<tr class="header">
<th>Parameter</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>map</td>
<td>
<p>minX,minY,maxX,maxY</p>
</td>
<td>
<p></p>
<p>Extent of the map view port in units are based on the projection selected (degrees for EPSG:4326, meters for others)</p>
<p></p>
</td>
</tr>
<tr class="even">
<td>products</td>
<td>
<p>baselayers,layer1,layer2~overlays,layer3,layer4</p>
</td>
<td>
<p>Active layer list where layerX is the identifier of the layer as defined in the configuration file. Any number of layers may be specified in baselayers or overlays. Hidden layers are prefixed with a “!”. Delimiting layers with a “.” is supported
but deprecated.</p>
</td>
</tr>
<tr class="odd">
<td>time</td>
<td>
<p>YYYY-MM-DD</p>
</td>
<td>
<p>Selected UTC day.</p>
</td>
</tr>
<tr class="even">
<td>p</td>
<td>X</td>
<td>The selected projection. The value X may be either “geographic”, “arctic”, or “antarctic”</td>
</tr>
<tr class="odd">
<td>palettes</td>
<td>
<p>layer1,palette1~layer2,palette2</p>
</td>
<td>
<p>If present, assigns a custom palette to a layer where layerX is the identifier of the layer and paletteX is the identifier of the palette as defined in the configuration file. Any number of layer to palette mappings may be specified.</p>
</td>
</tr>
<tr class="even">
<td>opacity</td>
<td>
<p>layer1,value1~layer2,value2</p>
</td>
<td>
<p>(Not officially supported at this time) If present, assigns an opacity value to a layer where layerX is the identifier of the layer as defined in the configuration file, and valueX is a real number in the range of 0 to 1 where 0 is fully
transparent and 1 is fully opaque. Any number of layer to opacity value mappings may be specified.</p>
</td>
</tr>
<tr class="odd">
<td>dataDownload</td>
<td>X</td>
<td>
<p>If preset, activates the data download tab and selects the product X where X is the product identifier as defined in the configuration file.</p>
</td>
</tr>
</tbody>
</table>

### Internal

<table>
<colgroup>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
</colgroup>
<thead>
<tr class="header">
<th>Parameter</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>epsg</td>
<td>X</td>
<td>
<p>The current EPSG code for the selected projection where X is either:</p>
<ul>
<li>4326: Geographic</li>
<li>3413: Arctic</li>
<li>3995: Arctic (older data)</li>
<li>3031: Antarctic</li>
</ul>
</td>
</tr>
</tbody>
</table>

### Debugging

<table>
<tbody>
<tr>
<th>Parameter</th>
<th colspan="1">Value</th>
<th>Description</th>
</tr>
<tr>
<td>mockCMR</td>
<td colspan="1">X</td>
<td>Do not query CMR and fetch the static JSON file found at mock/cmr.cgi-X</td>
</tr>
<tr>
<td colspan="1">timeoutCMR</td>
<td colspan="1">X</td>
<td colspan="1">Override the CMR timeout value to X milliseconds</td>
</tr>
<tr>
<td colspan="1">mockMap</td>
<td colspan="1">true</td>
<td colspan="1">If any value is specified, do not fetch tiles from remote sources and display a blank map</td>
</tr>
<tr>
<td colspan="1">mockEvents</td>
<td colspan="1">X</td>
<td colspan="1">Use the static JSON file with event feeds found at mock/events\_data.json-X</td>
</tr>
<tr>
<td colspan="1">mockCategories</td>
<td colspan="1">X</td>
<td colspan="1">Use the static JSON file with categories feeds found at mock/categories\_data.json-X</td>
</tr>
<tr>
<td colspan="1">mockSources</td>
<td colspan="1">X</td>
<td colspan="1">Use the static JSON file with sources feeds found at mock/sources\_data.json-X</td>
</tr>
<tr>
<td colspan="1">imagegen</td>
<td colspan="1">X</td>
<td colspan="1">Use the endpoint
<span class="nolink">http://map2.vis.earthdata.nasa.gov/imagegen/index</span>-X.php for image download
</td>
</tr>
<tr>
<td colspan="1">loadDelay</td>
<td colspan="1">X</td>
<td colspan="1">After loading all resources, wait X milliseconds before starting to simulate loading Worldview over a slow connection.</td>
</tr>
<tr>
<td colspan="1">now</td>
<td colspan="1">YYYY-MM-DDTHH:MM</td>
<td colspan="1">Override the value the Worldview uses for the current date and time. This only works when using the Worldview.now() function.</td>
</tr>
<tr>
<td colspan="1">markPalettes</td>
<td colspan="1">true</td>
<td colspan="1">If any value is specified, layers with an assigned palette will be marked in red in the Add Layers tab</td>
</tr>
<tr>
<td colspan="1">markDownloads</td>
<td colspan="1">true</td>
<td colspan="1">If any value is specified, layers that can be downloaded will be marked in red in the Add Layers tab</td>
</tr>
<tr>
<td colspan="1">debugPalette</td>
<td colspan="1">true</td>
<td colspan="1">If any value is specified, a black debugging custom palette will be added to assist in finding invalid lookup table mappings.</td>
</tr>
<tr>
<td colspan="1">showError</td>
<td colspan="1">true</td>
<td colspan="1">If any value is specified, an error dialog will be shown on startup.</td>
</tr>
<tr>
<td colspan="1">webmerc</td>
<td colspan="1"></td>
<td colspan="1">If found in the query string, a menu item for Web Mercator becomes available.</td>
</tr>
</tbody>
</table>
4 changes: 2 additions & 2 deletions web/css/bank.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ a.arrow {
color:#fff;
position:relative;
letter-spacing:2px;
font-family:"Gill Sans","Helvetica",sans-serif;
font-family: 'Gill Sans', 'Helvetica', sans-serif;
}
a.staticLayers {
float:left;
Expand Down Expand Up @@ -412,4 +412,4 @@ i.wv-layers-options-icon{
}
.productsitem.disabled.layer-hidden a.hdanchor:hover i{
background-position: 0 -54px;
}
}
2 changes: 1 addition & 1 deletion web/css/dataDownload.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

#wv-data-selection li {
font: 100 12px/12px "Lucida Sans",Monaco,Arial;
font: 100 12px/12px 'Lucida Sans', 'Monaco', Arial;
margin-top: 3px;
display: list-item;
list-style-type: none;
Expand Down
6 changes: 3 additions & 3 deletions web/css/wv.alert.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.wv-notify-modal h2 {
text-transform: capitalize;
font-size: 18px;
font-family: "Lucida Sans", "Arial", Sans-Serif;
font-family: 'Lucida Sans', 'Arial', Sans-Serif;
font-weight: bold;
color: #eee;
padding: .75em 10px;
Expand All @@ -45,7 +45,7 @@
color: #999;
}
.wv-notify-modal p {
font-family: "helvetica",sans-serif;
font-family: 'Helvetica', sans-serif;
font-size: 16px;
line-height: 22px;
margin: 10px 10px;
Expand All @@ -58,4 +58,4 @@
list-style-type: none;
border-bottom: 1px solid #404040;
margin: 0;
}
}
8 changes: 4 additions & 4 deletions web/css/wv.anim.widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
.gif-results-dialog-case {
text-transform: capitalize;
}
.gif-results-dialog-case img,
.gif-results-dialog-case img,
.gif-results-dialog-case .gif-results-dialog {
display: inline-block;
}
Expand All @@ -145,7 +145,7 @@
color: #444;
vertical-align: top;
margin-left: 10px;
-moz-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
font-size: 12px;
width: 162px;
Expand Down Expand Up @@ -227,7 +227,7 @@

.input-range__label {
color: #ffffff;
font-family: "Helvetica Neue", san-serif;
font-family: 'Helvetica Neue', san-serif;
font-size: 0.9rem;
white-space: nowrap; }

Expand Down Expand Up @@ -263,7 +263,7 @@
top: 50%; }

.input-range__track--active {
/* background: #3f51b5;
/* background: #3f51b5;
*/
}

Expand Down
2 changes: 1 addition & 1 deletion web/css/wv.date.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ div.ui-slider {
bottom: 85px;
border: none;
text-shadow: none;
font-family: "Lucida Sans", "Arial", "sans serif";
font-family: 'Lucida Sans', 'Arial', sans-serif;
color: white;
background-color: rgba(40, 40, 40, 0.85);
text-align: center;
Expand Down
4 changes: 2 additions & 2 deletions web/css/wv.dateselector.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
color:#fff;
background:transparent;
border:0px;
font-family:Lucida Console, Monaco, monospace;
font-family: 'Lucida Console', 'Monaco', monospace;
vertical-align:middle;
box-sizing:border-box;
-moz-box-sizing:border-box;
Expand Down Expand Up @@ -156,4 +156,4 @@
}
.wv-date-selector-widget .wv-animate:hover {
color: #1a1a1a;
}
}
16 changes: 8 additions & 8 deletions web/css/wv.layers.modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
.layer-modal, .layer-modal.ui-dialog{
background:rgb(220,220,220);
z-index:10200;

}
.layer-modal div, .layer-modal span,
.layer-modal p, .layer-modal div,
.layer-modal h1, .layer-modal h2,
.layer-modal h3, .layer-modal h4 {
font-family:open_sans_light;
font-family: open_sans_light;
font-weight:300;
color:#383838;
}
Expand Down Expand Up @@ -203,15 +203,15 @@
.layer-category h3 {
font-size:20px;
line-height:20px;

}
.layer-category h3 a{
display:block;
width:100%;
line-height:20px;
padding:10px;
color:#fff;

}
.layer-category h3 a:hover{
background:rgba(255,255,255,0.6);
Expand All @@ -231,7 +231,7 @@
text-overflow:ellipsis;
overflow: hidden;
box-sizing:border-box;
-moz-box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-o-box-sizing:border-box;
}
Expand Down Expand Up @@ -259,7 +259,7 @@
#category-breadcrumb{
height:30px;
line-height:30px;
font-family:open_sans_light;
font-family: open_sans_light;
font-size:16px;
color:#000;
/*font-style:italic;*/
Expand Down Expand Up @@ -377,7 +377,7 @@
-o-box-sizing: border-box;
padding: 0.5em 0.5em;
width:150px;
font-family:open_sans_light;
font-family: open_sans_light;
font-size:13px;
text-align:left;
font-weight:300;
Expand Down Expand Up @@ -466,7 +466,7 @@
line-height:1em;
}
#selected-category .ui-tabs-panel .ui-buttonset{

}
#selected-category .ui-tabs-panel li.measurement-settings-item iCheck-checkbox,
#selected-category .ui-tabs-panel li.measurement-settings-item label,
Expand Down
Loading

0 comments on commit 5bb2f6f

Please sign in to comment.