Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add vector config, style and metadata documentation

ZachTRiced91bed975125
diff --git a/doc/configuration.md b/doc/configuration.md
index 4e61fbfcf..61b8a59df 100644
--- a/doc/configuration.md
+++ b/doc/configuration.md
@@ -155,6 +155,103 @@ To display a color palette legend, a *palette* object should exist with the foll
}
```
+### Creating Custom Vector Styles
+Vector layers created from the Global Imagery Browse Services (GIBS) will have a default style.json file associated with the layer defined in the GIBS WMTS GetCapabilities document. The vector style JSON file follows the [mapbox-gl-js style spec](https://docs.mapbox.com/mapbox-gl-js/style-spec/). The layey's default style will be extracted from the GetCapabilities document and assigned to it's associated layer on build.
+
+To display a custom vector layer style & legend, a *vectorStyle* object should exist with the following properties:
+
+- **id**: Identifier of the vector style. This should match the name of the colormap file without the extension.
+
+### Vector Layer Example
+```json
+{
+ "layers": {
+ "OrbitTracks_Aqua_Ascending": {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "title": "Orbit Tracks (Ascending, Points, Aqua)",
+ "description": "vector/OrbitTracks_Aqua_Ascending",
+ "type": "vector",
+ "group": "overlays",
+ "layergroup": [
+ "vector"
+ ],
+ "vectorStyle": {
+ "id": "OrbitTracks_Aqua_Ascending"
+ },
+ "period": "daily"
+ }
+ }
+}
+```
+
+### Vector Style Example
+
+The following is an example of a basic vector style. This vector layer is referenced in the "source-layer" and has line, point, and label features being styled. Each unique "source" defined within the vector style document will add a new style option to the layer settings panel and can be passed to the layer's style param in the URL. The legend in the layer settings panel will be rendered using the color identified in the style's paint settings (with circle taking presendence over line, polygon and label).
+
+For more information on how to configure a mapbox-gl-js style spec, please refer to the [documentation]((https://docs.mapbox.com/mapbox-gl-js/style-spec/)).
+
+```json
+{
+ "version": 8,
+ "name": "Orbit Tracks",
+ "sources": {
+ "OrbitTracks_Aqua_Ascending": {
+ "type": "vector",
+ "tiles": [
+ "https://gibs.earthdata.nasa.gov/wmts/epsg4326/nrt/OrbitTracks_Aqua_Ascending/default/{Time}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.mvt"
+ ]
+ }
+ },
+ "layers": [
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "line",
+ "paint": {
+ "line-color": "rgb(21, 192, 230)",
+ "line-width": 2
+ }
+ },
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "circle",
+ "paint": {
+ "circle-radius": "5",
+ "circle-color": "rgb(21, 192, 230)"
+ }
+ },
+ {
+ "id": "OrbitTracks_Aqua_Ascending",
+ "source": "OrbitTracks_Aqua_Ascending",
+ "source-layer": "OrbitTracks_Aqua_Ascending",
+ "source-description": "Default",
+ "type": "symbol",
+ "layout": {
+ "text-field": ["get", "label"],
+ "text-font": ["Open Sans Bold", "Arial Unicode MS Bold"],
+ "text-size": 10,
+ "text-transform": "uppercase",
+ "text-letter-spacing": 0.05,
+ "text-offset": [-2.5, 0]
+ },
+ "paint": {
+ "text-color": "#fff",
+ "text-halo-color": "#999",
+ "text-halo-width": 1
+ }
+ }
+ ]
+}
+```
+## Vector Metadata
+
+Vector layers created from the Global Imagery Browse Services (GIBS) will have a metadata JSON file associated with the layer defined in the GIBS WMTS GetCapabilities document. This metadata document describes features contained within the MVT file. This data is available to give context to the features stored within a layer. This information can be seen when a user clicks on a vector data point. A modal will appear with labels, values and tooltips. The data from this document appears within the tooltip element.
+
## Adding Layers to Worldview and the Product Picker
New layers in the Global Imagery Browse Services (GIBS) can be added to Worldview via the options repository using the following instructions.
diff --git a/doc/url_parameters.md b/doc/url_parameters.md
index 5b4f8e82c..1e3826dba 100644
--- a/doc/url_parameters.md
+++ b/doc/url_parameters.md
@@ -7,10 +7,11 @@
| `l (l1 for B state)` | 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(`**`palettes`**`=value1,value2,..,valueN)`_ | If `palettes` is present, a custom palette will be assigned to a raster 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 raster layer to palette mappings may be specified. |
| | 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. |
+| | string | _`layer_id(`**`min`**`=value1,value2)`_ | If `min` is present, the raster layer `palettes` will start at the defined value. This value can be paired with `max` and `squash` to customize the entire palette range. |
+| | string | _`layer_id(`**`max`**`=value1,value2)`_ | If `max` is present, the raster layer `palettes` will end at the defined value. This value can be paired with `min` and `squash` to customize the entire palette range. |
+| | string | _`layer_id(`**`style`**`=value)`_ | If `style` is present, a custom vector style, will be assigned to a vector layer where `layer_id` is the identifier of the layer and `value` is the identifier of the vector style, as defined in the configuration file. |
| `l` | date | _`YYYY-MM-DD-Thh:mm:ssZ`_ | Selected UTC day and time. _\*Time fields will only be shown when subdaily layers are active._ |
| `t (t1 for B state)` | 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 **`5`** | The timescale axis zoom value from 1 to 5. 1 = yearly, 2 = monthly, 3 = daily, 4 = hourly, and 5 = minutely. _\*The subdaily zoom level will only be available when subdaily layers are active._ |