Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,13 @@
// });
// }
// Add each WMS layer to the map
scope.layers = scope.gnCurrentEdit.layerConfig;
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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ <h5>
id="gn-addonlinesrc-thumbnail-map"
class="form-group gn-thumbnail-maker-panel"
>
layers: {{layers}}
<div
id="gn-addonlinesrc-thumbnail-warning"
class="alert alert-warning"
Expand Down

0 comments on commit 9a08468

Please sign in to comment.