Skip to content

Commit

Permalink
Map viewer / Remove Stamen background layers - no longer available
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 authored and fxprunayre committed Feb 9, 2024
1 parent 5afc515 commit 176570e
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ This section is for configuring the map shown when viewing a record.
- **wmts**: generic WMTS layer, required properties: `name, url`.
- **tms**: generic TMS layer, required property: `url`.
- **osm**: OpenStreetMap default layer, no other property required.
- **stamen**: Stamen layers, required property: `name`.
- **bing_aerial**: Bing Aerial background, required property: `key` containing the license key.

![](img/ui-settings-mapviewerlayers.png)
Expand All @@ -189,11 +188,6 @@ All layers can also have some optional extra properties:

Examples of layers:

This layer will use OpenStreetMap Stamen style, but only when the map is in `EPSG:3857`:

``` json
{"type":"stamen","projectionList":["EPSG:3857"]}
```

This WMS layer will be shown but only when the map is on `EPSG:4326`:

Expand Down
10 changes: 1 addition & 9 deletions docs/manual/docs/help/map/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Use web mapping service:
![WMS Layers Style](img/add_wms_style.png)
*Add WMS Layer style*

6. Locate the ``mapcolor9` layer style, and press **Add to map**.
6. Locate the ``mapcolor9`` layer style, and press **Add to map**.

### Add files

Expand All @@ -126,14 +126,6 @@ Use **`KML`** files on the map.

3. Use these buttons to mange the layer order, and remove layers.

### Background map

1. From the **Map** viewer, press **Manage layers** control

2. Change the **Background map** from `OpenStreetMap` to `Stamen Watercolor`.

![Basemap](img/manage_basemap.png)
*Manage basemap*

## Legend

Expand Down
12 changes: 4 additions & 8 deletions docs/manual/docs/tutorials/customui/search/defaultview.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@ Read instructions about [default view customization](../../../customizing-applic

- Propose to sort only by change date and title.

- Use Stamen layer source for search map background.

- Recenter search map on Seoul

-

Change full map configuration
- Change full map configuration

: - play with initial extent
- change brackground layer list
- add WMS layers to the default map
- play with initial extent
- change brackground layer list
- add WMS layers to the default map

- Change default location for map search

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@
* Handled types are:
* * `osm`: OSM, no other prop required
* * `bing_aerial`: Bing Aerial background, required prop: `key`
* * `stamen`: Stamen layers, required prop: `name`
* * `wms`: generic WMS layer, required props: `name`, `url`
* * `wmts`: generic WMTS layer, required props: `name`, `url`
* * `tms`: generic TMS layer, required prop: `url`
Expand Down Expand Up @@ -387,21 +386,6 @@
);
break;

case "stamen":
//We make watercolor the default layer
var type = layerInfo.name ? layerInfo.name : "watercolor",
source = new ol.source.Stamen({
layer: type
});
source.set("type", type);
defer.resolve(
new ol.layer.Tile({
source: source,
title: layerInfo.title || "Stamen"
})
);
break;

case "wmts":
if (!layerInfo.name || !layerInfo.url) {
$log.warn(
Expand Down Expand Up @@ -2328,17 +2312,6 @@
}),
title: title || "Bing Aerial"
});
case "stamen":
//We make watercolor the default layer
var type = opt && opt.name ? opt.name : "watercolor",
source = new ol.source.Stamen({
layer: type
});
source.set("type", type);
return new ol.layer.Tile({
source: source,
title: title || "Stamen"
});

case "wmts":
if (!opt.name || !opt.url) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@
name = "{type=osm}";
} else if (source instanceof ol.source.BingMaps) {
name = "{type=bing_aerial}";
} else if (source instanceof ol.source.Stamen) {
name = "{type=stamen,name=" + layer.getSource().get("type") + "}";
} else if (source instanceof ol.source.WMTS) {
name = "{type=wmts,name=" + layer.get("name") + "}";
params.server = [
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/ca-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "OBSOLET! Capa Base del Mapa",
"ui-mapBackgroundLayer-help": "OBSOLET! Definir aquí la capa base a utilitzar per a mapes diferents al visor i al mapa de cerca.",
"ui-map-viewer": "Configuració del Visor de Mapes",
"ui-map-viewer-help": "Aquesta configuració s'utilitza per al visor de mapes. Cada paràmetre és opcional. Primer s'aplica el context, després l'extensió i les capes. Els tipus suportats són: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Aquesta configuració s'utilitza per al visor de mapes. Cada paràmetre és opcional. Primer s'aplica el context, després l'extensió i les capes. Els tipus suportats són: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Configuració del Mapa de Cerca",
"ui-map-search-help": "Aquesta configuració s'utilitza per al mapa de cerca. Cada paràmetre és opcional. Primer s'aplica el context, després l'extensió i les capes. Els tipus suportats són: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Aquesta configuració s'utilitza per al mapa de cerca. Cada paràmetre és opcional. Primer s'aplica el context, després l'extensió i les capes. Els tipus suportats són: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Configuració de l'Editor de Mapes",
"ui-map-editor-help": "Aquesta configuració s'utilitza per al editor de mapes (editor del requadre delimitador i geometria). Cada paràmetre és opcional. Primer s'aplica el context, després l'extensió i les capes. Els tipus suportats són: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/cs-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "ZASTARALÉ! Mapová vrstva pozadí ",
"ui-mapBackgroundLayer-help": "ZASTARALÉ! Zde definujte vrstvu pozadí, která se použije pro jiné mapy, jako jsou prohlížeče a vyhledávací mapy.",
"ui-map-viewer": "Konfigurace mapy prohlížeče",
"ui-map-viewer-help": "Tato konfigurace se používá pro prohlížeč map. Každý parametr je volitelný. Kontext je aplikován nejdříve, pak rozsah a vrstvy. Podporované typy jsou: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Tato konfigurace se používá pro prohlížeč map. Každý parametr je volitelný. Kontext je aplikován nejdříve, pak rozsah a vrstvy. Podporované typy jsou: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Vyhledat konfiguraci mapy",
"ui-map-search-help": "Tato konfigurace se používá pro vyhledávací mapu. Každý parametr je volitelný. Kontext je aplikován nejdříve, pak rozsah a vrstvy. Podporované typy jsou: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Tato konfigurace se používá pro vyhledávací mapu. Každý parametr je volitelný. Kontext je aplikován nejdříve, pak rozsah a vrstvy. Podporované typy jsou: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Konfigurace Editoru Map ",
"ui-map-editor-help": "Tato konfigurace se používá pro editor map (ohraničovací rámeček a editor geometrie). Každý parametr je volitelný. Kontext je aplikován nejdříve, pak rozsah a vrstvy. Podporované typy jsou: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Konfigurace metadat náhledů mapy",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/da-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "TRUKKET TILBAGE! Baggrundskort",
"ui-mapBackgroundLayer-help": "TRUKKET TILBAGE! Definer her det baggrundslag, der skal bruges til andre kort end visnings- og søgekort.",
"ui-map-viewer": "Konfiguration af kort",
"ui-map-viewer-help": "Denne konfiguration bruges til visningskortet. Hver parameter er valgfri. Konteksten anvendes først, derefter omfanget og lagene. Understøttede typer er: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Denne konfiguration bruges til visningskortet. Hver parameter er valgfri. Konteksten anvendes først, derefter omfanget og lagene. Understøttede typer er: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Søg Konfiguration af Kort",
"ui-map-search-help": "Denne konfiguration bruges til søgekortet. Hver parameter er valgfri. Konteksten anvendes først, derefter omfanget og lagene. Understøttede typer er: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Denne konfiguration bruges til søgekortet. Hver parameter er valgfri. Konteksten anvendes først, derefter omfanget og lagene. Understøttede typer er: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Editor kort konfiguration",
"ui-map-editor-help": "Denne konfiguration bruges til editor-kortene (geografiske omskreven firkant og geometri-editor). Hver parameter er valgfri. Konteksten anvendes først, derefter omfanget og lagene. Understøttede typer er: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata-thumbnail-kortkonfiguration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/de-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "DEPRECATED! Kartenhintergrund",
"ui-mapBackgroundLayer-help": "DEPRECATED! Definieren Sie hier die Hintergrundebene, die für andere Karten als Viewer- und Suchkarten verwendet werden soll.",
"ui-map-viewer": "Viewer-Kartenkonfiguration",
"ui-map-viewer-help": "Diese Konfiguration wird für die Viewer-Karte verwendet. Jeder Parameter ist optional. Zuerst wird der Kontext angewendet, dann die Ausdehnung und die Ebenen. Unterstützte Typen sind: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Diese Konfiguration wird für die Viewer-Karte verwendet. Jeder Parameter ist optional. Zuerst wird der Kontext angewendet, dann die Ausdehnung und die Ebenen. Unterstützte Typen sind: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Konfiguration Such-Karte",
"ui-map-search-help": "Diese Konfiguration wird für die Suchkarte verwendet. Jeder Parameter ist optional. Zuerst wird der Kontext angewendet, dann die Ausdehnung und die Kartenebenen. Unterstützte Typen sind: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Diese Konfiguration wird für die Suchkarte verwendet. Jeder Parameter ist optional. Zuerst wird der Kontext angewendet, dann die Ausdehnung und die Kartenebenen. Unterstützte Typen sind: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Konfiguration Editor-Karte",
"ui-map-editor-help": "Diese Konfiguration wird für die Editor-Karten (BoundingBox und Geometrieeditor) verwendet. Jeder Parameter ist optional. Zuerst wird der Kontext angewendet, dann die Ausdehnung und die Ebenen. Unterstützte Typen sind: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/en-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "DEPRECATED! Map Background Layer",
"ui-mapBackgroundLayer-help": "DEPRECATED! Define here the background layer to use for maps other that viewer and search maps.",
"ui-map-viewer": "Viewer Map Configuration",
"ui-map-viewer-help": "This configuration is used for the viewer map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "This configuration is used for the viewer map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Search Map Configuration",
"ui-map-search-help": "This configuration is used for the search map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "This configuration is used for the search map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Editor Maps Configuration",
"ui-map-editor-help": "This configuration is used for the editor maps (bounding box and geometry editor). Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/es-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "¡OBSOLETO! Capa Base",
"ui-mapBackgroundLayer-help": "¡OBSOLETO! Define aquí la capa base a usar en mapas que no sean el visor y el mapa de búsqueda",
"ui-map-viewer": "Configuración del Visor del Mapa",
"ui-map-viewer-help": "Esta configuración se usa en el visor del mapa. Cada parámetros es opcional. El contexto se aplica primero, luego la extensión y las capas. Los tipos soportados son: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Esta configuración se usa en el visor del mapa. Cada parámetros es opcional. El contexto se aplica primero, luego la extensión y las capas. Los tipos soportados son: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Configuración del Mapa de Búsqueda",
"ui-map-search-help": "Esta configuracion se usa en el mapa de búsqueda. Cada parámetro es opcional. El contexto se aplica primero, luego la extensión y las capas. Los tipos soportados son: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Esta configuracion se usa en el mapa de búsqueda. Cada parámetro es opcional. El contexto se aplica primero, luego la extensión y las capas. Los tipos soportados son: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Configuración del Mapa del Editor",
"ui-map-editor-help": "Esta configuración se usa en el mapa del editor (cuadro delimitador y editor de geometrías). Cada parámetros es opcional. El contexto se aplica primero, luego la extensión y las capas. Los tipos soportados son: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/fi-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "DEPRECATED! Map Background Layer",
"ui-mapBackgroundLayer-help": "DEPRECATED! Define here the background layer to use for maps other that viewer and search maps.",
"ui-map-viewer": "Viewer Map Configuration",
"ui-map-viewer-help": "This configuration is used for the viewer map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "This configuration is used for the viewer map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Search Map Configuration",
"ui-map-search-help": "This configuration is used for the search map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "This configuration is used for the search map. Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Editor Maps Configuration",
"ui-map-editor-help": "This configuration is used for the editor maps (bounding box and geometry editor). Every parameter is optional. The context is applied first, then the extent and layers. Supported types are: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down
4 changes: 2 additions & 2 deletions web-ui/src/main/resources/catalog/locales/fr-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "DEPRECATED! Map Background Layer",
"ui-mapBackgroundLayer-help": "DEPRECATED! Define here the background layer to use for maps other that viewer and search maps.",
"ui-map-viewer": "Configuration de la carte du visualiseur",
"ui-map-viewer-help": "Cette configuration est utilisée pour la carte du visualiseur. Tous les paramètres sont optionnels. Le contexte est appliqué en premier, suivi de l'étendue et des couches. Les types de couche acceptés sont : osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Cette configuration est utilisée pour la carte du visualiseur. Tous les paramètres sont optionnels. Le contexte est appliqué en premier, suivi de l'étendue et des couches. Les types de couche acceptés sont : osm, bing_aerial, wmts, wms.",
"ui-map-search": "Configuration de la carte de recherche",
"ui-map-search-help": "Cette configuration est utilisée pour la carte de recherche. Tous les paramètres sont optionnels. Le contexte est appliqué en premier, suivi de l'étendue et des couches. Les types de couche acceptés sont : osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Cette configuration est utilisée pour la carte de recherche. Tous les paramètres sont optionnels. Le contexte est appliqué en premier, suivi de l'étendue et des couches. Les types de couche acceptés sont : osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Configuration des cartes de l'éditeur",
"ui-map-editor-help": "Cette configuration est utilisée pour les cartes de l'éditeur (définition de l'emprise). Tous les paramètres sont optionnels. Le contexte est appliqué en premier, suivi de l'étendue et des couches. Les types de couche acceptés sont : osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Configuration de la carte pour les aperçus",
Expand Down
6 changes: 3 additions & 3 deletions web-ui/src/main/resources/catalog/locales/is-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,9 +1197,9 @@
"ui-mapBackgroundLayer": "ÚRELT! Bakgrunnslag korts",
"ui-mapBackgroundLayer-help": "DEPRECATED! Define here the background layer to use for maps other that viewer and search maps.",
"ui-map-viewer": "Stilling fyrir Kortasjá",
"ui-map-viewer-help": "Þessi stilling er notuð fyrir skoðarakortið. Hver breyta er valfrjáls. Samhengið er sett in fyrst, síðan umfangið og lögin. Studdar gerðir eru: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-viewer-help": "Þessi stilling er notuð fyrir skoðarakortið. Hver breyta er valfrjáls. Samhengið er sett in fyrst, síðan umfangið og lögin. Studdar gerðir eru: osm, bing_aerial, wmts, wms.",
"ui-map-search": "Stilling fyrir leit á korti",
"ui-map-search-help": "Þessi stilling er notuð fyrir leitarkortið. Hver breyta er valfrjáls. Samhengið er sett in fyrst, síðan umfangið og lögin. Studdar gerðir eru: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-search-help": "Þessi stilling er notuð fyrir leitarkortið. Hver breyta er valfrjáls. Samhengið er sett in fyrst, síðan umfangið og lögin. Studdar gerðir eru: osm, bing_aerial, wmts, wms.",
"ui-map-editor": "Stilling til að breyta korti",
"ui-map-editor-help": "Þessi stilling er notuð fyrir ritstjórakortin (bounding box og geometry editor). Hver breyta er valfrjáls. Samhengið er sett inn fyrst, síðan umfangið og lögin. Studdar gerðir eru: osm, bing_aerial, stamen, wmts, wms.",
"ui-map-thumbnail": "Metadata Thumbnail Map Configuration",
Expand Down Expand Up @@ -1484,4 +1484,4 @@
"fieldTooShort": "The value is too short",
"fieldEmailNotValid": "A valid email address is required",
"formConfirmExit": "The form has changes, if you exit the changes will be lost. Do you want to exit on the page?"
}
}
Loading

0 comments on commit 176570e

Please sign in to comment.