src/components/kepler-gl.js
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};
}
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};
}
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 } ; }
Override default maps-gl actions with user defined actions using the same key
Override default maps - gl actions with user defined actions using the same key