Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9592 - COG option hidden in catalog from default #9684

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/user-guide/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,23 @@ In **General Settings** of a COG source type, it is possible to specify the serv
!!! Note
To properly display COG layers in your MapStore map, it is necessary to add the reference system definition supported by the COG in the MapStore [projectionDefs configuration](../../developer-guide/local-config/#projectiondefs-configuration)

!!! warning
The feature is currently in experimental state, and won't be available in the default service types list of the catalog.
In order to enable this service, update the MetadataExplorer plugin's configuration in `localConfig.json` as shown below

```diff
{
"name": "MetadataExplorer",
"cfg": {
...
serviceTypes: [
...
+ { name: "cog", label: "COG" }
]
}
}
```

#### Advanced Settings

In addition to the standard options, only for COG catalog sources, through the **Advanced Settings** the user can configure also the following option:
Expand Down
4 changes: 2 additions & 2 deletions web/client/plugins/MetadataExplorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class MetadataExplorerComponent extends React.Component {

static defaultProps = {
id: "mapstore-metadata-explorer",
serviceTypes: [{ name: "csw", label: "CSW" }, { name: "wms", label: "WMS" }, { name: "wmts", label: "WMTS" }, { name: "tms", label: "TMS", allowedProviders: DEFAULT_ALLOWED_PROVIDERS }, { name: "wfs", label: "WFS" }, { name: "3dtiles", label: "3D Tiles" }, { name: "cog", label: "COG" }],
serviceTypes: [{ name: "csw", label: "CSW" }, { name: "wms", label: "WMS" }, { name: "wmts", label: "WMTS" }, { name: "tms", label: "TMS", allowedProviders: DEFAULT_ALLOWED_PROVIDERS }, { name: "wfs", label: "WFS" }, { name: "3dtiles", label: "3D Tiles" }],
active: false,
wrap: false,
modal: true,
Expand Down Expand Up @@ -285,7 +285,7 @@ const MetadataExplorerPlugin = connect(metadataExplorerSelector, {
* @name MetadataExplorer
* @memberof plugins
* @prop {string} cfg.hideThumbnail shows/hides thumbnail
* @prop {object[]} cfg.serviceTypes Service types available to add a new catalog. default: `[{ name: "csw", label: "CSW" }, { name: "wms", label: "WMS" }, { name: "wmts", label: "WMTS" }, { name: "tms", label: "TMS", allowedProviders },{ name: "wfs", label: "WFS" }, { name: "cog", label: "COG" }]`.
* @prop {object[]} cfg.serviceTypes Service types available to add a new catalog. default: `[{ name: "csw", label: "CSW" }, { name: "wms", label: "WMS" }, { name: "wmts", label: "WMTS" }, { name: "tms", label: "TMS", allowedProviders },{ name: "wfs", label: "WFS" }]`.
* `allowedProviders` is a whitelist of tileProviders from ConfigProvider.js. you can set a global variable allowedProviders in localConfig.json to set it up globally. You can configure it to "ALL" to get all the list (at your own risk, some services could change or not be available anymore)
* @prop {object} cfg.hideIdentifier shows/hides identifier
* @prop {boolean} cfg.hideExpand shows/hides full description button
Expand Down
Loading