Skip to content

Commit

Permalink
Fix #223. Make interactions on mergeGeometries pass-through.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Jan 22, 2025
1 parent 705e659 commit 5c9b91c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,11 @@ export default Kapsule({

// de-prioritize background / non-globe objects
const isBackground = o => !o; // || o.__globeObjType === 'globe' || o.__globeObjType === 'atmosphere';
return isBackground(aObj) - isBackground(bObj);

// Ignore merged geometry objects that don't have interaction per point
const isMergedGeometries = o => o && ['points', 'hexBinPoints'].some(t => t === o.__globeObjType) && Array.isArray(o.__data);

return (isBackground(aObj) - isBackground(bObj)) || (isMergedGeometries(aObj) - isMergedGeometries(bObj));
})
.tooltipContent((obj, intersection) => {
const objAccessors = {
Expand Down

0 comments on commit 5c9b91c

Please sign in to comment.