[GeoNetwork-users] 2 layers as basemap

Hi all,

Does someone knows how can I set up 2 layers (one with country extent on top of another one with worldwide extent) as standard basemap for all dynamic maps in geonetwork (map in simple view, minimap for search and fullscreen map ?

I tried to set the "hidden" to "false" on 2 layers in the config-viewer.xml but only the first one is taken :

<ows-context:Layer queryable="false" name="{type=wmts,name=ch.swisstopo.pixelkarte-grau}" hidden="false" opacity="1" group="Background layers">
                <ows:Title xmlns:ows="http://www.opengis.net/ows&quot;&gt;Swiss National Map (grey)</ows:Title>
                <ows-context:Server service="urn:ogc:serviceType:WMS">
                               <ows-context:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:href="https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml&quot;/&gt;
                </ows-context:Server>
</ows-context:Layer>

<ows-context:Layer name="{type=osm}" group="Background layers" hidden="false" opacity="1">
                <ows:Title>OpenStreetMap</ows:Title>
</ows-context:Layer>

Thanks for your help !
All the best
-------------------------------------------------------
Benoit Regamey
GIS Specialist
--
Federal Office of Topography - swisstopo
Seftigenstrasse 264, CH-3084 Wabern
+41 58 465 83 31
mailto:benoit.regamey@anonymised.com
--
swisstopo.ch<https://www.swisstopo.admin.ch/en/home.html&gt; / map.geo.admin.ch<https://map.geo.admin.ch/?lang=en&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.zeitreihen,ch.bfs.gebaeude_wohnungs_register,ch.bav.haltestellen-oev,ch.swisstopo.swisstlm3d-wanderwege,ch.astra.wanderland-sperrungen_umleitungen&layers_opacity=1,1,1,0.8,0.8&layers_visibility=false,false,false,false,false&layers_timestamp=18641231,,,,&gt; / geocat.ch<https://www.geocat.ch/geonetwork/srv/eng/catalog.search#/home&gt;
[cid:image001.png@anonymised.com]<https://www.facebook.com/swisstopo&gt; [cid:image002.png@anonymised.com] <https://www.instagram.com/swisstopo/&gt; [cid:image003.png@anonymised.com] <https://twitter.com/swisstopo&gt; [cid:image004.png@anonymised.com90...] <https://www.linkedin.com/company/swisstopo&gt; [cid:image005.png@anonymised.com1990...] <https://www.geocat.admin.ch/fr/home/meta/newsletter.html&gt;

(attachments)

image001.png
image002.png
image003.png
image004.png
image005.png

Hi all,

Does someone knows how can I set up 2 layers (one with country extent on top of another one with worldwide extent) as standard basemap for all dynamic maps in geonetwork (map in simple view, minimap for search and fullscreen map ?

I tried to set the "hidden" to "false" on 2 layers in the config-viewer.xml but only the first one is taken :

<ows-context:Layer queryable="false" name="{type=wmts,name=ch.swisstopo.pixelkarte-grau}" hidden="false" opacity="1" group="Background layers">
                <ows:Title xmlns:ows="http://www.opengis.net/ows&quot;&gt;Swiss National Map (grey)</ows:Title>
                <ows-context:Server service="urn:ogc:serviceType:WMS">
                               <ows-context:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:href="https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml&quot;/&gt;
                </ows-context:Server>
</ows-context:Layer>

<ows-context:Layer name="{type=osm}" group="Background layers" hidden="false" opacity="1">
                <ows:Title>OpenStreetMap</ows:Title>
</ows-context:Layer>

Thanks for your help !
All the best
-------------------------------------------------------
Benoit Regamey
GIS Specialist
--
Federal Office of Topography - swisstopo
Seftigenstrasse 264, CH-3084 Wabern
+41 58 465 83 31
mailto:benoit.regamey@anonymised.com
--
swisstopo.ch<https://www.swisstopo.admin.ch/en/home.html&gt; / map.geo.admin.ch<https://map.geo.admin.ch/?lang=en&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.zeitreihen,ch.bfs.gebaeude_wohnungs_register,ch.bav.haltestellen-oev,ch.swisstopo.swisstlm3d-wanderwege,ch.astra.wanderland-sperrungen_umleitungen&layers_opacity=1,1,1,0.8,0.8&layers_visibility=false,false,false,false,false&layers_timestamp=18641231,,,,&gt; / geocat.ch<https://www.geocat.ch/geonetwork/srv/eng/catalog.search#/home&gt;
[cid:image001.png@anonymised.com]<https://www.facebook.com/swisstopo&gt; [cid:image002.png@anonymised.com] <https://www.instagram.com/swisstopo/&gt; [cid:image003.png@anonymised.com] <https://twitter.com/swisstopo&gt; [cid:image004.png@anonymised.com90...] <https://www.linkedin.com/company/swisstopo&gt; [cid:image005.png@anonymised.com1990...] <https://www.geocat.admin.ch/fr/home/meta/newsletter.html&gt;

(attachments)

image001.png
image002.png
image003.png
image004.png
image005.png

Hello Benoit,

It's been a long time that I haven't touched this part of the code. But as
far as I can remember, I don't think that it's doable with the current code.
The background layers are kind of a "radio" button, only one at a time, and
the bg-layer switcher switches from one to another.
There is no way to have a composite background layer.

On Wed, Nov 8, 2023 at 1:52 PM benoit.regamey--- via GeoNetwork-users <
geonetwork-users@lists.sourceforge.net> wrote:

Hi all,

Does someone knows how can I set up 2 layers (one with country extent on
top of another one with worldwide extent) as standard basemap for all
dynamic maps in geonetwork (map in simple view, minimap for search and
fullscreen map ?

I tried to set the "hidden" to "false" on 2 layers in the
config-viewer.xml but only the first one is taken :

<ows-context:Layer queryable="false"
name="{type=wmts,name=ch.swisstopo.pixelkarte-grau}" hidden="false"
opacity="1" group="Background layers">
                <ows:Title xmlns:ows="http://www.opengis.net/ows&quot;&gt;Swiss
National Map (grey)</ows:Title>
                <ows-context:Server service="urn:ogc:serviceType:WMS">
                               <ows-context:OnlineResource xmlns:xlink="
http://www.w3.org/1999/xlink&quot; xlink:href="
https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml&quot;/&gt;
                </ows-context:Server>
</ows-context:Layer>

<ows-context:Layer name="{type=osm}" group="Background layers"
hidden="false" opacity="1">
                <ows:Title>OpenStreetMap</ows:Title>
</ows-context:Layer>

Thanks for your help !
All the best
-------------------------------------------------------
Benoit Regamey
GIS Specialist
--
Federal Office of Topography - swisstopo
Seftigenstrasse 264, CH-3084 Wabern
+41 58 465 83 31
mailto:benoit.regamey@anonymised.com
--
swisstopo.ch<https://www.swisstopo.admin.ch/en/home.html&gt; /
map.geo.admin.ch<
Maps of Switzerland - Swiss Confederation - map.geo.admin.ch;
/ geocat.ch<geocat.ch;
[cid:image001.png@anonymised.com]<https://www.facebook.com/swisstopo&gt;
[cid:image002.png@anonymised.com] <https://www.instagram.com/swisstopo/&gt;
[cid:image003.png@anonymised.com] <x.com;
[cid:image004.png@anonymised.com] <
https://www.linkedin.com/company/swisstopo&gt;
[cid:image005.png@anonymised.com] <
https://www.geocat.admin.ch/fr/home/meta/newsletter.html&gt;

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
[image: This is Florent Gravin's card. Their email is
florent.gravin@anonymised.com]
<https://hihello.me/p/198272c7-2709-4f8c-8bb0-0b01e91cac7f&gt;