diff --git a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcDirective.js b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcDirective.js index 4e262ce7699..0d160283279 100644 --- a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcDirective.js +++ b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcDirective.js @@ -680,13 +680,6 @@ // }); // } // Add each WMS layer to the map - if (scope.gnCurrentEdit.layerConfig == undefined) { - scope.layers = scope.gnCurrentEdit.layerConfig; - } else { - scope.layers = Array.isArray(scope.gnCurrentEdit.layerConfig) - ? scope.gnCurrentEdit.layerConfig - : [scope.gnCurrentEdit.layerConfig]; - } angular.forEach(scope.gnCurrentEdit.layerConfig, function (layer) { scope.map.addLayer( new ol.layer.Tile({ diff --git a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/partials/addOnlinesrc.html b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/partials/addOnlinesrc.html index 405682e079b..9c312642f9b 100644 --- a/web-ui/src/main/resources/catalog/components/edit/onlinesrc/partials/addOnlinesrc.html +++ b/web-ui/src/main/resources/catalog/components/edit/onlinesrc/partials/addOnlinesrc.html @@ -531,7 +531,7 @@