Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add tour configuration documentation

ZachTRiceb6e4dd360ec8
diff --git a/doc/configuration.md b/doc/configuration.md
index 852dd7e93..712658d88 100644
--- a/doc/configuration.md
+++ b/doc/configuration.md
@@ -257,3 +257,126 @@ Now add an object to the `wv-options-wmts` object with the following properties:
]
}
```
+
+## New Tour Stories
+
+Create a new JSON document in `config/wv.json/stories` named `X.json` where `X`
+is the story identifier. This file can be placed in any subdirectory as needed for organizational purposes.
+
+Here's an example of a minimum configuration for the Hurricane Florence story:
+
+```json
+{
+ "stories": {
+ "hurricane_florence_september_2018": {
+ "id": "hurricane_florence_september_2018",
+ "title": "Hurricane Florence (September 2018)",
+ "steps": [
+ {
+ "description": "step001.html",
+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,IMERG_Rain_Rate,Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-09-12-T00%3A00%3A00Z&z=3&t1=2018-09-19-T00%3A00%3A00Z&v=-91.32690967327403,23.259234869248033,-57.57690967327403,39.74751611924803"
+ }
+ ]
+ }
+ }
+}
+```
+
+All properties should be in an object keyed by the story identifier.
+
+### Required Properties
+
+The minimum set of required properties are as follows:
+
+- **id**: The story identifier.
+- **title**: Title of the story displayed to the end user. This is displayed in the story overview modal and the story in-progress modal.
+
+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`)
+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.
+i.e. the following code will play the animation if the animation widget is present.
+
+```json
+{
+ "transition": {
+ "element": "animation",
+ "action": "play"
+ }
+```
+
+### Story Order
+
+The `config/wv.json/storyOrder.json` file must be updated to include the new story identifier. This file determines the order that stories are displayed in the overview modal. The overview modal is limited to the first **9** stories identified in this file.
+
+### Optional properties:
+
+- **type**: Use `wildfire`, `volcano`, `snow`, `sea-and-lake-ice`, `iceberg`, `water-color`, `dust-and-haze`, `severe-storm`, `man-made` or `critical` to set the display of the event. Each event will have a color and icon associated with it's type. If left blank, the event will default to dark blue and a world icon.
+- **description**: A description of the story displayed to the end user when hovering the story's box on the overview modal.
+- **backgroundImage**: The background image shown on the story overview modal. If no image is provided, a NASA logo will be shown as a placeholder.
+- **backgroundImageHover**: The image shown when overing the background image on the story overview modal. If no image is provided, no roll-over image will appear.
+
+To display read more links on the end of story modal, a *readMoreLinks* object should exist with the following properties:
+
+- **title**: The name of the link being displayed.
+- **link**: The url of the link being displayed.
+
+### Full Example
+
+```json
+{
+ "stories": {
+ "hurricane_florence_september_2018": {
+ "id": "hurricane_florence_september_2018",
+ "title": "Hurricane Florence (September 2018)",
+ "description": "Hurricane Florence wrecked havoc on the Carolinas. Use the A|B tool to see a before and after of the coast.",
+ "type": "severe-storm",
+ "backgroundImage": "background.png",
+ "backgroundImageHover": "backgroundHover.png",
+ "readMoreLinks": [
+ {
+ "title": "Earth Observatory - Hurricane Florence",
+ "link": "https://earthobservatory.nasa.gov/images/Event/92748/hurricane-florence"
+ }
+ ],
+ "steps": [
+ {
+ "description": "step001.html",
+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,IMERG_Rain_Rate,Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-09-12-T00%3A00%3A00Z&z=3&t1=2018-09-19-T00%3A00%3A00Z&v=-91.32690967327403,23.259234869248033,-57.57690967327403,39.74751611924803"
+ },
+ {
+ "description": "step002.html",
+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor,MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor(hidden),Reference_Labels,Reference_Features,Coastlines(hidden)&t=2018-09-02-T00%3A00%3A00Z&z=3&t1=2018-09-19-T00%3A00%3A00Z&v=-82.86647987040818,4.465382946172927,-15.366479870408185,37.44194544617292"
+ },
+ {
+ "description": "step003.html",
+ "transition": {
+ "element": "animation",
+ "action": "play"
+ },
+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor,MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor(hidden),Reference_Labels,Reference_Features(hidden),Coastlines(hidden)&t=2018-09-02-T00%3A00%3A00Z&z=3&t1=2018-09-19-T00%3A00%3A00Z&v=-113.05825121261012,-7.7039155910611115,-10.61293871261011,58.24920940893889&ab=on&as=2018-09-02T00%3A00%3A00Z&ae=2018-09-14T00%3A00%3A00Z&av=8&al=false"
+ },
+ {
+ "description": "step004.html",
+ "stepLink": "p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor,MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor(hidden),Reference_Labels,Reference_Features(hidden),Coastlines(hidden)&t=2018-09-14-T00%3A00%3A00Z&z=3&t1=2018-09-19-T00%3A00%3A00Z&v=-105.3766105876101,15.639834408938874,-54.1539543376101,48.616396908938874&ab=on&as=2018-09-02T00%3A00%3A00Z&ae=2018-09-14T00%3A00%3A00Z&av=8&al=false"
+ },
+ ]
+ }
+ }
+}
+```
+
+## Adding Stories to Worldview Tour Modals
+
+New stories can be added to the Worldview tour modals via the following instructions.
+
+First, stories must be added to `config/wv.json/stories` and `config/wv.json/storyOrder.json`. Then, step descriptions and the overview background image(s) can be added in `config/default/common/config/metadata/stories/`_`[story_id]`_`/`.
+
+- Add New Tour Storie(s)
+ - Follow [New Tour Stories](configuration.md#new-tour-stories) above to create JSON file in `config/wv.json/stories`.
+- Add to Story Order
+ - Add to `config/wv.json/storyOrder.json`.
+- Add story step descriptions/metadata & overview background images
+ - Create .md file in `config/default/common/config/metadata/stories/`_`[story_id]`_`/`. The *story_id* folder identifier should be labeled the same as the folder identifier in `config/wv.json/stories/`_`[story_id]`_`/`. Each step defined in the metadata folder will need to correspond to the `description` parameter within that file.
+- Rebuild the configuration with `npm run build:config` for use by the application.