whole_func_string: function setZoom(state, action) {
    let zoom = Math.min(DEFAULT_ZOOM.MAX, action.zoom);
    zoom = Math.max(DEFAULT_ZOOM.MIN, zoom);
    return Object.assign({}, state, {zoom});
  }
func_code_string: function setZoom(state, action) {
    let zoom = Math.min(DEFAULT_ZOOM.MAX, action.zoom);
    zoom = Math.max(DEFAULT_ZOOM.MIN, zoom);
    return Object.assign({}, state, {zoom});
  }
func_documentation_string: Set the zoom level of the map.
  @param {Object} state Current state.
  @param {Object} action Action to handle.
  
  @returns {Object} The new state.