The configuration for views in a GuardianConnector Explorer deployment is done by setting config for database tables in the /config
route.
Each table view can be configured using the following settings:
Specify the views for each table, separated by commas. The table will be accessible in the specified views.
Currently available options:
map
gallery
alerts
The routes for all views are listed on the index.html route (/
).
Enables embedding of media filenames from the database in the Gallery or Map views. To use this, specify the base path for media files in MEDIA_BASE_PATH
. If not set, the gallery view will be disabled for this table.
For alerts, you need to provide a separate base path for alerts. Append your MEDIA_BASE_PATH
variable with _ALERTS
. If you are also using Mapeo data, then provide a separate MEDIA_BASE_PATH
value.
Provides a column by which to filter out unwanted values.
A comma-separated list of values, which if found in the value for FILTER_BY_COLUMN
, will filter out the row from the API response.
Depending on your data, you will want to use a meaningful column for filtering (for example, Category
for Mapeo data). This variable defines the column used for front-end dropdown filtering.
You can provide a URL to your organization / community logo which will show up in the Alerts dashboard intro panel.
You can provide your own style for any views that utilize a map.
Specify the Mapbox map projection.
Set the center latitude and longitude for the Mapbox map.
Define the initial zoom level for the Mapbox map.
Adjust the pitch and bearing for the Mapbox map view.
Enable a 3D terrain layer in the Mapbox map.
For showing Mapeo data on the Alerts Dashboard, provide the name of the Mapeo database table.
For showing Mapeo data on the Alerts Dashboard, provide a comma-separated list of categoryId
values that you want to show.
A comma-separated list of Mapbox layer ids to be rendered in an optional map legend component. In the component, the layer type
and color
will be used to set the legend symbol style (currently supported: fill, line, circle), and the layer id
will be set as the legend description. Note that we are currently only supporting adding layers to the legend where the color is directly set and not across zoom / data range or with data conditions.
Provide a Planet NICFI Monthly Basemaps API key to enable the option to use the monthly basemaps as a style option in the basemap selector menu.
List the exact column names (UNWANTED_COLUMNS
) and/or columns containing specific substrings (UNWANTED_SUBSTRINGS
) to be filtered out from data collection APIs. Useful for removing unnecessary metadata columns.
Many outputs from data collection APIs have a lot of extraneous metadata columns that are not useful to the end user. See schema.md for a list of these columns that are output by popular data collection APIs.