Interactive interface for browsing global, full-resolution satellite imagery
Fix typos
Pierre Grimaudd8ddb1a98e25
diff --git a/.eslintrc b/.eslintrcindex 544481f7b..c8b221d66 100644--- a/.eslintrc+++ b/.eslintrc@@ -78,7 +78,7 @@"no-nested-ternary": "warn", // 58 errors"no-shadow": "warn", // 136 errors"max-len": "off",- "consistent-return": "off", // 73 erorrs+ "consistent-return": "off", // 73 errors"no-underscore-dangle": "off","func-names": "off","no-param-reassign": [ // 329 errorsdiff --git a/doc/configuration.md b/doc/configuration.mdindex 92344655f..1351b902d 100644--- a/doc/configuration.md+++ b/doc/configuration.md@@ -392,9 +392,9 @@ The minimum set of required properties are as follows:To display story steps in the in-progress modal, a **steps** object should exist with the following properties:- **description**: points to a metadata markdown file located in `config/default/common/config/metadata/stories/`_`[story_id]`_`/`-- **stepLink**: The URL parameters of a linked Worldview instance seperated by an `&` symbol (i.e. `p=geographic&t1=2018-12-30`)+- **stepLink**: The URL parameters of a linked Worldview instance separated by an `&` symbol (i.e. `p=geographic&t1=2018-12-30`)Optional **steps** parameter:-- **transition**: Advanced Configuration. An object containing an **element** and a custom **action**. These transistions occur between changing steps; these require custom code to target the element and an action to action upon that element.+- **transition**: Advanced Configuration. An object containing an **element** and a custom **action**. These transitions occur between changing steps; these require custom code to target the element and an action to action upon that element.i.e. the following code will play the animation if the animation widget is present.```jsondiff --git a/doc/url_parameters.md b/doc/url_parameters.mdindex f1d1098a7..370bc2ddd 100644--- a/doc/url_parameters.md+++ b/doc/url_parameters.md@@ -26,7 +26,7 @@| `av` | number | **`1`** to **`10`** | The animation speed value from 1 to 10. 1 = slowest, 10 = fastest. || `al` | boolean | _`true`_ or _`false`_ | If any value is set, the animation loop will be turned on. Animation looping is disabled by default. || `ca` | boolean | _`true`_ or _`false`_ | Determines if the A or B state is active. If this parameter exists at all, compare mode will be active. If `ca=true`, Compare mode will be active in the A state. |-| `cm` | string | _`swipe`_ , _`spy`_ or _`opacity`_ | If comparison mode is active (`ca=true|false`) the `cm` parameter will determine which comparision mode to use. Default mode is `swipe` |+| `cm` | string | _`swipe`_ , _`spy`_ or _`opacity`_ | If comparison mode is active (`ca=true|false`) the `cm` parameter will determine which comparison mode to use. Default mode is `swipe` || `cv` | Number | **`0`** to **`100`** | If `ca='true|false'`, The `cv` parameter is used to determine the location of the swiper or the value of opacity depending on the selected mode. Default is `50` which will place the swiper on the middle of any screen. This parameter is irrelevant when the `spy` mode is active (`cm=spy`) || `download` | string | _`product_id`_ | If any value is set, the data download tab will be activated. If a product identifier is set, the corresponding will be selected. || `r` | number | **`-180.0000`** to **`180.0000`** | The degree of map rotation. Only applies when `arctic` or `antarctic` projection is selected. |diff --git a/e2e/features/events/events-test.js b/e2e/features/events/events-test.jsindex 74276ffe1..79b11c4e1 100644--- a/e2e/features/events/events-test.js+++ b/e2e/features/events/events-test.js@@ -105,7 +105,7 @@ module.exports = {},);},- 'Clicking event notifcation opens explanation in dialog': (client) => {+ 'Clicking event notification opens explanation in dialog': (client) => {const globalSelectors = client.globals.selectors;client.click(globalSelectors.notifyMessage).pause(2000);diff --git a/web/js/components/timeline/timeline-axis/timeline-axis.js b/web/js/components/timeline/timeline-axis/timeline-axis.jsindex fb63563b0..e922b5104 100644--- a/web/js/components/timeline/timeline-axis/timeline-axis.js+++ b/web/js/components/timeline/timeline-axis/timeline-axis.js@@ -413,7 +413,7 @@ class TimelineAxis extends Component {boundsDiff += leftBoundDiff;}- // update transform and dragger positioning based on calulated offsets+ // update transform and dragger positioning based on calculated offsetsconst transformX = boundsDiff - pixelsToAdd - 2;const animationStartLocation = animationStartDraggerLocation + position + transformX;const animationEndLocation = animationEndDraggerLocation + position + transformX;diff --git a/web/js/components/timeline/timeline-data/layer-data-items.js b/web/js/components/timeline/timeline-data/layer-data-items.jsindex 5051e9703..c8e5f680a 100644--- a/web/js/components/timeline/timeline-data/layer-data-items.js+++ b/web/js/components/timeline/timeline-data/layer-data-items.js@@ -386,7 +386,7 @@ class LayerDataItems extends Component {*/getLayerItemStyles = (visible, id) => {const { hoveredLayer } = this.props;- // condtional styling for line/background colors+ // conditional styling for line/background colorsconst containerBackgroundColor = visible? 'rgb(204, 204, 204)': 'rgb(79, 79, 79)';@@ -470,7 +470,7 @@ class LayerDataItems extends Component {// get line container dimensionsconst containerLineDimensions = getMatchingCoverageLineDimensions(layer);- // condtional styling for line/background colors+ // conditional styling for line/background colorsconst {lineBackgroundColor,layerItemBackground,diff --git a/web/js/map/data/results.js b/web/js/map/data/results.jsindex 14d02e39a..c0c002dca 100644--- a/web/js/map/data/results.js+++ b/web/js/map/data/results.js@@ -719,7 +719,7 @@ const versionRegex = {const versionParsers = {// MODIS uses version numbers like 4, 5, 6 as major versions but// 41, 51, 61 for minor versions. This function multiplies values- // less than 10 for easy comparision (40, 41, 50, 51, 60, 61).+ // less than 10 for easy comparison (40, 41, 50, 51, 60, 61).// Will there ever be a collection 10?MODIS: (strVersion) => {let version = Number.parseFloat(strVersion);diff --git a/web/js/map/datelinebuilder.js b/web/js/map/datelinebuilder.jsindex e7e7ef6bb..474c0c0e8 100644--- a/web/js/map/datelinebuilder.js+++ b/web/js/map/datelinebuilder.js@@ -107,7 +107,7 @@ export default function mapDateLineBuilder(models, config, store, ui) {* @private** @param {object} Factory - React component Factory- * @param {number} height - Lenght of line+ * @param {number} height - Length of line* @param {number} lineX - x coord value* @param {object} overlay - OL overlay* @param {object} reactCase - Dom El in which to render componentdiff --git a/web/js/map/layerbuilder.js b/web/js/map/layerbuilder.jsindex 5400c0a9a..d08ba28cf 100644--- a/web/js/map/layerbuilder.js+++ b/web/js/map/layerbuilder.js@@ -155,13 +155,13 @@ export default function mapLayerBuilder(models, config, cache, ui, store) {let previousLayerDate = previousLayer.previousDate;let nextLayerDate = previousLayer.nextDate;if (!state.animation.isPlaying) {- // need to get previous available date to prevent unecessary requests+ // need to get previous available date to prevent unnecessary requestslet dateRange;if (previousLayer.previousDate && previousLayer.nextDate) {const dateTime = date.getTime();const previousDateTime = previousLayer.previousDate.getTime();const nextDateTime = previousLayer.nextDate.getTime();- // if current date is outside previous and next dates avaiable, recheck range+ // if current date is outside previous and next dates available, recheck rangeif (dateTime <= previousDateTime || dateTime >= nextDateTime) {dateRange = datesinDateRanges(def, date);const { next, previous } = prevDateInDateRange(def, date, dateRange);@@ -254,7 +254,7 @@ export default function mapLayerBuilder(models, config, cache, ui, store) {const resolutionLen = matrixSet.resolutions.length;const setlimitsLen = matrixSetLimits && matrixSetLimits.length;- // If number of set limits doens't match sets, we are assuming this product+ // If number of set limits doesn't match sets, we are assuming this product// crosses the antimeridian and don't have a reliable way to calculate a single// extent based on multiple set limits.if (!matrixSetLimits || setlimitsLen !== resolutionLen || day) {diff --git a/web/js/map/map.js b/web/js/map/map.jsindex 9ec6f6375..038ccb114 100644--- a/web/js/map/map.js+++ b/web/js/map/map.js@@ -184,11 +184,11 @@ export function mapIsPolygonValid(polygon, maxDistance) {* @method adjustAntiMeridian* @static*- * @param polygon {object} GeoJSON poylgon geomtry Object+ * @param polygon {object} GeoJSON poylgon geometry Object** @param adjustSign {number} a value of 1 or -1*- * @return {obj} Adjusted GeoJSON poylgon geomtry Object+ * @return {obj} Adjusted GeoJSON poylgon geometry Object** @todo relocate this utility function*/@@ -279,7 +279,7 @@ export function mapInterpolate2D(p1, p2, amount) {* @method toPolys* @static*- * @param geom {object} GeoJSON geomtry Object+ * @param geom {object} GeoJSON geometry Object** @return {object} GeoJSON multipolygon list object*diff --git a/web/js/map/measure/ui.js b/web/js/map/measure/ui.jsindex c834a3294..4a7832ee2 100644--- a/web/js/map/measure/ui.js+++ b/web/js/map/measure/ui.js@@ -222,7 +222,7 @@ export default function measure(map, mapUiEvents, store) {};/**- * Convert unit of measurement on all existing measurments and those created after+ * Convert unit of measurement on all existing measurements and those created after* @param {String} unit - Unit of measurement: 'km' or 'mi'*/self.changeUnits = (unit) => {diff --git a/web/js/modules/layers/actions.test.js b/web/js/modules/layers/actions.test.jsindex 88577cf14..36776ba5c 100644--- a/web/js/modules/layers/actions.test.js+++ b/web/js/modules/layers/actions.test.js@@ -49,7 +49,7 @@ describe('remove Layer action', () => {expect(actionResponse).toEqual(expectedPayload);});- test('Do nothing on removing a non-existant layer', () => {+ test('Do nothing on removing a non-existent layer', () => {let layers = addLayer('terra-cr', {}, [], config.layers, 0);layers = addMockLayer('terra-aod', layers);layers = addMockLayer('aqua-aod', layers);diff --git a/web/js/util/util.js b/web/js/util/util.jsindex 7edfedec4..8ce588d92 100644--- a/web/js/util/util.js+++ b/web/js/util/util.js@@ -361,7 +361,7 @@ export default (function(self) {};/**- * Converts a time into an ISO string without miliseconds.+ * Converts a time into an ISO string without milliseconds.** @method toISOStringSeconds* @static@@ -741,7 +741,7 @@ export default (function(self) {** @method now* @static- * @return {Date} The current time or an overriden value.+ * @return {Date} The current time or an overridden value.*/const now = function() {return new Date();@@ -760,7 +760,7 @@ export default (function(self) {* @method today* @static* @return {Date} The current time with the UTC hours, minutes, and seconds- * fields set to zero or an overriden value.+ * fields set to zero or an overridden value.*/self.today = function() {return self.now();@@ -866,7 +866,7 @@ export default (function(self) {* @param {Object} parameters Parameters to pass to the jQuery.ajax* call.* @return {jQuery.Deferred} a deferred object that will resolve- * when the query returns, or resolves immedately if the results+ * when the query returns, or resolves immediately if the results* are cached.*/submit(parameters) {@@ -1179,7 +1179,7 @@ export default (function(self) {/*** Check if objects have the same keys*- * @param {array} comment seperated list of objects+ * @param {array} comment separated list of objects* @return {bool}*/self.objectsHaveSameKeys = function(...objects) {