apps/web-app-template/app.js
/**
     * loadLayers is a utility function used by the view models to copy
     * layers into an observable array. The top-most layer is first in the
     * observable array.
     * @param {Array} layers
     * @param {ko.observableArray} observableArray 
     */
loadLayers is a utility function used by the view models to copy
layers into an observable array. The top-most layer is first in the
observable array.
@param {Array} layers
@param {ko.observableArray} observableArray
loadLayers is a utility function used by the view models to copy layers into an observable array . The top - most layer is first in the observable array . @param { Array } layers @param { ko . observableArray } observableArray
function loadLayers(layers, observableArray) {
        observableArray.removeAll();
        layers.reverse().forEach(layer => observableArray.push(layer));
    }
function loadLayers ( layers , observableArray ) { observableArray . removeAll ( ) ; layers . reverse ( ) . forEach ( layer => observableArray . push ( layer ) ) ; }
loadLayers is a utility function used by the view models to copy
 layers into an observable array.
loadLayers is a utility function used by the view models to copy layers into an observable array .
// Reverse the order of the layers to the top-most layer is first