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 a2bb60fb980..ebc9d14e214 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 @@ -678,13 +678,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 @@