'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _objectAssign = require('object-assign');

var _objectAssign2 = _interopRequireDefault(_objectAssign);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var mapPosition = function mapPosition() {
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var action = arguments[1];

  switch (action.type) {
    case 'MOVE_MAP':
      return (0, _objectAssign2.default)({}, state, action.payload);
    default:
      return state;
  }
};

exports.default = mapPosition;
//# sourceMappingURL=map_position.js.map