src/reducers/map.js
function removeSource(state, action) {
  const new_sources = Object.assign({}, state.sources);
  delete new_sources[action.sourceName];
  return Object.assign({}, state, {
    sources: new_sources,
  }, incrementVersion(state.metadata, SOURCE_VERSION_KEY));
}
function removeSource(state, action) {
  const new_sources = Object.assign({}, state.sources);
  delete new_sources[action.sourceName];
  return Object.assign({}, state, {
    sources: new_sources,
  }, incrementVersion(state.metadata, SOURCE_VERSION_KEY));
}
Remove a source from the state.
@param {Object} state Current state.
@param {Object} action Action to handle.

@returns {Object} The new state.