Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add type field to URL parameter docs and format values with bold/italic

ZachTRicec3521e3dc92c
diff --git a/doc/testing.md b/doc/testing.md
index 326633c1d..d11f532e0 100644
--- a/doc/testing.md
+++ b/doc/testing.md
@@ -50,16 +50,16 @@ To run tests for both browsers in sequence: `npm run e2e`.
## 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 |
-| `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. |
-| `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`. |
-| `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. |
+| Parameter | Type | Value | Description |
+| --------- | ----- | ----- | ----------- |
+| `mockCMR` | boolean | *`true` or `false`* | Do not query CMR and fetch the static JSON file found at mock/cmr.cgi-X |
+| `timeoutCMR` | ms | *`N`* | Override the CMR timeout value in milliseconds |
+| `mockEvents` | boolean | *`true` or `false`* | Use the static JSON file with event feeds found at mock/events\_data.json-X |
+| `mockCategories` | boolean | *`true` or `false`* | Use the static JSON file with categories feeds found at mock/categories\_data.json-X |
+| `mockSources` | boolean | *`true` or `false`* | Use the static JSON file with sources feeds found at mock/sources\_data.json-X |
+| `mockAlerts` | string | **`alert`**, **`message`**, **`outage`**, **`no_types`**, or **`all_types`** | Use a static JSON file by passing the notification type. Local sources can be found at mock/notify_{string}.json |
+| `modalView` | string | **`categories`**, **`measurements`**, or **`layers`** | Forces the 'Add Layers' modal to display categories, measurements, or layers. By default Artic/Antarctic shows measurements and Geographic shows categories. |
+| `loadDelay` | ms | *`N`* | After loading all resources, wait X milliseconds before starting. |
+| `now` | date | *`YYYY-MM-DDThh:mm:ssZ`* | Overrides the current date and time. This only works when using the `now()` function from `js/util/util.js`. |
+| `showError` | boolean | *`true` or `false`* | If any value is specified, an error dialog will be shown on startup. |
+| `showSubdaily` | boolean | *`true` or `false`* | 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.md
index dbdb07738..5ec7bbc50 100644
--- a/doc/url_parameters.md
+++ b/doc/url_parameters.md
@@ -1,22 +1,25 @@
# URL Parameters
-| Parameter | Value | Description |
-| --------- | ----- | ----------- |
-| `p` | `geographic`, `arctic` or `antarctic` | Selected projection. |
-| `v` | `[minX,minY,maxX,maxY]` | Extent of the map viewport in units based on the projection selected (degrees for EPSG:4326, meters for others). |
-| `l` | `[layer_id1],[layer_id2],[layer_id3]` | Active layer list where `layer_id` is the identifier of the layer as defined in the configuration file. Any number of baselayers or overlays may be specified (separated by a `,`). |
-| `l=[layer_id](hidden)` | `(hidden)` | If present, toggles the visibility of the layer as identified by the `layer_id` in the configuration file. |
-| `l=[layer_id](opacity)` | `(opacity=[value])` | If present, assigns an opacity value to a layer where `layer_id` is the identifier of the layer, as defined in the configuration file, and `value` 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. |
-| `l=[layer_id](palettes)` | `(palettes=[value1],[value2],[value3])` | If `palettes` is present, a custom palette will be assigned to a layer where `layer_id` is the identifier of the layer and `value` is the identifier of the palette, as defined in the configuration file. Any number of layer to palette mappings may be specified. |
-| `t` | `[YYYY-MM-DD-Thh:mm:ssZ]` | Selected UTC day and time. _*Time fields will only be shown when subdaily layers are active._ |
-| `z` | `1`, `2`, `3`, or `4` | The zoom value from 1 to 4. 1 = yearly, 2 = monthly, 3 = daily, 4 = subdaily. _*The subdaily zoom level will only be available when subdaily layers are active._ |
-| `e` | `[event_id],[yyyy-mm-dd]` | If any value is present, the events tab will be activated. If the value is a valid event_id, the corresponding event will be highlighted in the event list. If a date (YYYY-MM-DD) is added to the event_id, then the selected event for the specified date will be shown. |
-| `ab` | `on` | If set to "on", the animation widget will be shown. |
-| `as` | `[YYYY-MM-DDThh:mm:ssZ]` | The animation start day & time. _*Time fields will only be shown when subdaily layers are active._ |
-| `ae` | `[YYYY-MM-DDThh:mm:ssZ]` | The animation end day & time _*Time fields will only be shown when subdaily layers are active._ |
-| `av` | `1` to `10` | The animation speed value from 1 to 10. 1 = slowest, 10 = fastest. |
-| `al` | `true` | If a value is set, the animation loop will be turned on. Animation looping is disabled by default. |
-| `download` | `[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` | `-180.0000` to `180.0000` | The degree of map rotation. Only applies when `arctic` or `antarctic` projection is selected. |
+| Parameter | Type |Value | Description |
+| --------- | ----- |----- | ----------- |
+| `p` | string | **`geographic`**, **`arctic`** or **`antarctic`** | Selected projection. |
+| `v` | string | *`minX,minY,maxX,maxY`* | Extent of the map viewport in units based on the projection selected (degrees for geographic, meters for others). |
+| `l` | string | *`layer_id1,layer_id2,..,layerIdN`* | Active layer list where `layer_id` is the identifier of the layer as defined in the configuration file. Any number of baselayers or overlays may be specified (separated by a `,`). |
+| | boolean | *`layer_id(`**`hidden`**`)`* | If present, this layer will appear in the layer list but not shown on the map. |
+| | string | *`layer_id(`**`opacity`**`=value)`* | If present, assigns an opacity value to a layer where `layer_id` is the identifier of the layer, as defined in the configuration file, and `value` 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. |
+| | string | *`layer_id(`**`palettes`**`=value1,value2,..,valueN)`* | If `palettes` is present, a custom palette will be assigned to a layer where `layer_id` is the identifier of the layer and `value` is the identifier of the palette, as defined in the configuration file. Any number of layer to palette mappings may be specified. |
+| | string | *`layer_id(`**`min`**`=value1,value2)`* | If `min` is present, the layer palette will start at the defined value. This value can be paired with `max` and `squash` to completely the entire palette range. |
+| | string | *`layer_id(`**`max`**`=value1,value2)`* | If `max` is present, the layer palette will end at the defined value. This value can be paired with `min` and `squash` to customize the entire palette range. |
+| | string | *`layer_id(`**`squash`**`)`* | If `squash` is present and a `min` or `max` value is set, the palette will start or end at the designated min/max values and the palette will adjust to these bounds. |
+| `t` | date | *`YYYY-MM-DD-Thh:mm:ssZ`* | Selected UTC day and time. _*Time fields will only be shown when subdaily layers are active._ |
+| `z` | number | **`1`** to **`4`** | The zoom value from 1 to 4. 1 = yearly, 2 = monthly, 3 = daily, 4 = subdaily. _*The subdaily zoom level will only be available when subdaily layers are active._ |
+| `e` | string,date | *`event_id,yyyy-mm-dd`* | If any value is present, the events tab will be activated. If the value is a valid event_id, the corresponding event will be highlighted in the event list. If a date (YYYY-MM-DD) is added to the event_id, then the selected event for the specified date will be shown. |
+| `ab` | boolean | **`on`** | If set to "on", the animation widget will be shown. |
+| `as` | date | *`YYYY-MM-DDThh:mm:ssZ`* | The animation start day & time. _*Time fields will only be shown when subdaily layers are active._ |
+| `ae` | date | *`YYYY-MM-DDThh:mm:ssZ`* | The animation end day & time _*Time fields will only be shown when subdaily layers are active._ |
+| `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. |
+| `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. |
For debugging with URL parameters, see: [Testing / Debug Parameters](testing.md#debug-parameters)
\ No newline at end of file