[GeoNetwork-users] GN 3.0.3: Custom background maps and layer order

Hi,

I'd like to setup Geonetwork 3.0.3 with two custom background layers and a custom projection.

I followed https://www.geocat.net/setting-up-geonetwork-with-dutch-pdok-tile-services/ in order to change these settings and adjusted the Projection definition and Service definition to my needs.

After deleting wro4j Caches and my Browser Cache, I get my Layers correctly served into the client, but there's an Issue when adding more layers from the catalog:

It appears that
* Both Layers appear in the Background Layer switcher, and can be toggled accordingly, which is fine.
* If I add a "normal" Layer from the Catalog to the map, it appears to be below my background layers ("zoom to extent" jumps to the right region, but nothing is shown). I'm quite sure the layer is loaded as I can see the WMS Requests going into my local GeoServer instance.

Any hints about what went wrong during configuration?

My settings.js says:
------%<-----------------

proj4.defs("EPSG:31468", "+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +units=m +no_defs");

ol.proj.get('EPSG:31468').setExtent([4386596.4101, 5237914.5325, 4613610.5843, 6104496.9694]);
ol.proj.get('EPSG:31468').setWorldExtent([10.5, 47.27, 13.5, 55.06]);

var projection = ol.proj.get('EPSG:31468');

var resolutions=[3440.64,1720.32,860.16,430.08,215.04,107.52,53.76,26.88,13.44,6.72,3.36,1.68,0.84,0.42,0.21];

var tileLayers= [new ol.layer.Tile({
      title:'Map1',
      attribution:'...',
      group: 'Background Layers',
      visible: true,
      transparent: false,
            source: new ol.source.TileWMS({
      url: '...',
       params: {
        'LAYERS': '...',
        'FORMAT': 'image/png',
        'VERSION': '1.1.1',
        'SERVICE': 'WMS'
      },
      projection:projection
          })
    }),
    new ol.layer.Tile({
      title:'Map2',
      attribution:'...',
      group: 'Background Layers',
      visible: false,
      transparent: false,
            source: new ol.source.TileWMS({
      url: 'http://…',
       params: {
        'LAYERS': '...',
        'FORMAT': 'image/jpeg',
        'VERSION': '1.1.1',
        'SERVICE': 'WMS'
      },
      projection:projection
          })
    })
];

//important to set the projection info here (also), used as view configuration

var mapsConfig = {
resolutions: resolutions,
extent: [4439000,5311000,4489000,5356000],
projection: projection,
center: [4468400, 5333400],
zoom: 10
};

// Add backgrounds to TOC
viewerSettings.bgLayers = tileLayers;
viewerSettings.servicesUrl = {};

//Configure the ViewerMap

var viewerMap = new ol.Map({
controls:,
layers: ,
view: new ol.View(mapsConfig)
});

//configure the SearchMap

var searchMap = new ol.Map({
controls:,
layers: [tileLayers[0]],
view: new ol.View(mapsConfig)
});

------------>%----------

Kind regards,
Sebastian