Interactive interface for browsing global, full-resolution satellite imagery
Create URL parameter page and link to debug parameters within testing doc
ZachTRice9985bd1fe6f2
diff --git a/doc/testing.md b/doc/testing.mdindex 919b2b8e7..dcf5d4c4c 100644--- a/doc/testing.md+++ b/doc/testing.md@@ -19,7 +19,6 @@ End to end tests are integrated into our CI and are required to pass before a su### Browserstack-Run `npm run browserstack` to test the app in `Chrome(OS X and Windows)`, `Firefox(Windows)`, `Internet Exporer(windows)`, and `Safari(OS X)` on BrowserStack. The tests run the `nightwatch.js` features found in `./e2e/features` using Selenium.To run tests in BrowserStack from your local machine:@@ -49,43 +48,23 @@ To run tests for both browsers in sequence: `npm run e2e`.* If there is a specific test that you would like to run, you can change the `files` variable found in `./e2e/browserstack.conf.js` to point directly to your test.* If there is a specific browser that you would like to test, you can specify which in `./e2e/environments.json`-## URL Parameters--### External--| Parameter | Value | Description |-| --------- | ----- | ----------- |-| `map` | `minX`,`minY`,`maxX`,`maxY` | Extent of the map view port in units are based on the projection selected (degrees for EPSG:4326, meters for others) |-| `products` | `baselayers`,`layer1`,`layer2~overlays`,`layer3`,`layer4` | 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. |-| `time` | `YYYY-MM-DD` | Selected UTC day. |-| `p` | `geographic`,`arctic`,`antarctic` | Selected projection. |-| `palettes` | `layer1`,`palette1~layer2`,`palette2` | 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. |-| `opacity` | `layer1`,`value1~layer2`,`value2` | (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. |-| `dataDownload` | product identifier | If set, activates the data download tab and selects the product. |--### Internal--| Parameter | Value | Description |-| --------- | ----- | ----------- |-| epsg | `4326` (geographic), `3413` (arctic), `3995` (arctic - old), `3031` (antarctic) | EPSG code for the selected projection |--### Debugging+## Debug Parameters| Parameter | Value | Description || --------- | ----- | ----------- |-| mockCMR | boolean | Do not query CMR and fetch the static JSON file found at mock/cmr.cgi-X |-| timeoutCMR | ms | Override the CMR timeout value in milliseconds |-| mockMap | boolean | If any value is specified, do not fetch tiles from remote sources and display a blank map |-| mockEvents | boolean | Use the static JSON file with event feeds found at mock/events\_data.json-X |-| mockCategories | boolean | Use the static JSON file with categories feeds found at mock/categories\_data.json-X |-| mockSources | boolean | Use the static JSON file with sources feeds found at mock/sources\_data.json-X |-| mockAlerts | string | Use a static JSON file by passing the notification type: `alert`, `message`, `outage`, `no_types`, or `all_types`. Local sources can be found at mock/notify_{string}.json |-| modalView | `categories`, `measurements`, `layers` | Forces the 'Add Layers' modal to display categories, measurements or layers. By default Artic/Antarctic shows measurements and Geographic shows categories. |-| imagegen | boolean | Use the endpoint http://map2.vis.earthdata.nasa.gov/imagegen/index-X.php for image download |-| loadDelay | ms | After loading all resources, wait X milliseconds before starting. |-| now | `YYYY-MM-DDTHH:MM` | Override the value the Worldview uses for the current date and time. This only works when using the `now()` function from `js/util/util.js`. |-| markPalettes | boolean | If any value is specified, layers with an assigned palette will be marked in red in the Add Layers . |-| markDownloads | boolean | If any value is specified, layers that can be downloaded will be marked in red in the Add Layers tab. |-| debugPalette | boolean | If any value is specified, a black debugging custom palette will be added to assist in finding invalid lookup table mappings. |-| showError | boolean | If any value is specified, an error dialog will be shown on startup. |-| showSubdaily | boolean | If any value is specified, the hour input, minute input and "minutes" timeline zoom option will be shown. |+| `mockCMR` | boolean | Do not query CMR and fetch the static JSON file found at mock/cmr.cgi-X |+| `timeoutCMR` | ms | Override the CMR timeout value in milliseconds |+| `mockMap` | boolean | If any value is specified, do not fetch tiles from remote sources and display a blank map |+| `mockEvents` | boolean | Use the static JSON file with event feeds found at mock/events\_data.json-X |+| `mockCategories` | boolean | Use the static JSON file with categories feeds found at mock/categories\_data.json-X |+| `mockSources` | boolean | Use the static JSON file with sources feeds found at mock/sources\_data.json-X |+| `mockAlerts` | string | Use a static JSON file by passing the notification type: `alert`, `message`, `outage`, `no_types`, or `all_types`. Local sources can be found at mock/notify_{string}.json |+| `modalView` | `categories`, `measurements`, `layers` | Forces the 'Add Layers' modal to display categories, measurements or layers. By default Artic/Antarctic shows measurements and Geographic shows categories. |+| `imagegen` | boolean | Use the endpoint http://map2.vis.earthdata.nasa.gov/imagegen/index-X.php for image download |+| `loadDelay` | ms | After loading all resources, wait X milliseconds before starting. |+| `now` | `YYYY-MM-DDTHH:MM` | Override the value the Worldview uses for the current date and time. This only works when using the `now()` function from `js/util/util.js`. |+| `markPalettes` | boolean | If any value is specified, layers with an assigned palette will be marked in red in the Add Layers . |+| `markDownloads` | boolean | If any value is specified, layers that can be downloaded will be marked in red in the Add Layers tab. |+| `debugPalette` | boolean | If any value is specified, a black debugging custom palette will be added to assist in finding invalid lookup table mappings. |+| `showError` | boolean | If any value is specified, an error dialog will be shown on startup. |+| `showSubdaily` | boolean | If any value is specified, the hour input, minute input and "minutes" timeline zoom option will be shown. |diff --git a/doc/url_parameters.md b/doc/url_parameters.mdnew file mode 100644index 000000000..0466c7f5d--- /dev/null+++ b/doc/url_parameters.md@@ -0,0 +1,21 @@+## URL Parameters++### External++| Parameter | Value | Description |+| --------- | ----- | ----------- |+| `map` | `minX`,`minY`,`maxX`,`maxY` | Extent of the map view port in units are based on the projection selected (degrees for EPSG:4326, meters for others) |+| `products` | `baselayers`,`layer1`,`layer2~overlays`,`layer3`,`layer4` | 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. |+| `time` | `YYYY-MM-DD` | Selected UTC day. |+| `p` | `geographic`,`arctic`,`antarctic` | Selected projection. |+| `palettes` | `layer1`,`palette1~layer2`,`palette2` | 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. |+| `opacity` | `layer1`,`value1~layer2`,`value2` | (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. |+| `dataDownload` | product identifier | If set, activates the data download tab and selects the product. |++### Internal++| Parameter | Value | Description |+| --------- | ----- | ----------- |+| epsg | `4326` (geographic), `3413` (arctic), `3031` (antarctic) | EPSG code for the selected projection |++For additional debugging parameters, see: [Testing/Debug Parameters](testing.md)\ No newline at end of file