code: function mergeActions(actions, userActions) {
    const overrides = {};
    for (const key in userActions) {
      if (userActions.hasOwnProperty(key) && actions.hasOwnProperty(key)) {
        overrides[key] = userActions[key];
      }
    }
  
    return {...actions, ...overrides};
  }
docs: Override default maps-gl actions with user defined actions using the same key