Skip to content

Commit

Permalink
Merge pull request #272 from Element84/ba/feature/adding-dark-basemap…
Browse files Browse the repository at this point in the history
…-and-logo-height-config-options

add darkmode config
  • Loading branch information
bradleyandrick authored Oct 13, 2023
2 parents 46db98d + 0ccd71b commit cd94ed0
Show file tree
Hide file tree
Showing 7 changed files with 351 additions and 155 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

## 4.3.0 - 2023-10-13

### Fixed

- resolve security @vitejs/plugin-react@4.0.4 vulnerabilities coming from `babel`

### Changed

- Updated max-height of main logo to be 40px

### Added

- Added config option for applying dark style to custom basemap URL

## 4.2.0 - 2023-10-03

### Changed
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ The file `./public/config/config.example.json` is included in this repository as
| SEARCH_MIN_ZOOM_LEVELS | Per-collection configuration for minimum zoom levels needed for grid code aggregated results (medium zoom level) and single scene search results (high zoom level). Example: [config.example.json](./public/config/config.example.json). If no grid code aggregation, set value for `medium` to be the same value as `high` and hex aggregations will be used until the zoom level is reached when individual scenes become available. | Optional |
| CONFIG_COLORMAP | Color map used in low level hex grid search results. Complete list of colormaps are available here: [bpostlethwaite/colormap](https://github.com/bpostlethwaite/colormap). If not set, the default colormap will be "viridis". | Optional |
| BASEMAP_URL | URL to specify a basemap provider used by the leaflet map. Must be a raster tile provider as vector tiles are not supported. If not set, the default colormap will be `https://tile.openstreetmap.org/{z}/{x}/{y}.png`. | Optional |
| BASEMAP_DARK_THEME | Boolean value. If set to `true` or not included in config, a dark theme is applied to the basemap. If set to `false`, the dark theme will not be applied to basemap and the default basemap provider style is used. | Optional |
| BASEMAP_HTML_ATTRIBUTION | String of HTML markup used to set the attribution for the basemap provider used by the leaflet map. Markup is sanitized prior to render with `DOMPurify` and only is retricted to only allow `html`, `'a' tags`, and `'href'` and `'target'` attributes. Custom attribution will not render if `BASEMAP_URL` is not also set. If not set, the default attribution will be `&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>`. (Note: Raw HTML was used here since attribution is non-standardized.) | Optional |
| ADVANCED_SEARCH_ENABLED | If set to `true` advanced search options will render and allow users to draw or upload a geojson file to use as search bounds. | Optional |
| CART_ENABLED | If set to `true` cart features will be enabled. These include: rendering cart button in search controls bar, adding cart management buttons to popup results, render buttons in messages to quickly add some or all scenes to cart after search completes. | Optional |
Expand Down
Loading

0 comments on commit cd94ed0

Please sign in to comment.