function setLayer(which, enabled) {
        var layer = layers.layer(which);
        if (layer) {
            layer.enabled(enabled);
        }
    }
Set the selected layer
@param {string} which Id of the selected layer
@param {boolean} enabled