Map View "jumping" When Using Adornment with $OnAdd

I’m using Map View to triage and process notes. I created a map with adornments that operate on notes using the adornment’s $OnAdd action. When the $OnAdd action modifies a note’s $Container and moves it out of the map view, the map jumps, see:

2025-11-21 TBX Map Jumping

See attached example TBX. I’ve also experienced refresh issues where notes don’t disappear from the map after their $Container is updated. Forcing the map to redraw resolves this.

I’ve verified the map jumping issue in the latest stable and backstage builds of Tinderbox.

JumpingMap.tbx (399.8 KB)

FWIW, I tried futzing with the $MapScrollX and $MapScrollY attributes in my $OnAdd action (e.g., $MapScrollY($Container(adornment)) = ypos;) to try to preserve the Map’s position after the dropped note’s $Container was updated, but alas it had no effect.

I figured out what’s happening. When the note’s $Container is updated to a child of my Map note—in this case “Archive”—Tinderbox tries to keep that new container in view because the note is selected, causing the jump.

I solved the jumping issue by modifying my $OnAdd action to select the adornment’s container before changing the note’s $Container:

// Select the Map note
select($Container(adornment));

// Archive the note that was dropped on me
$Container = "/Working Memory/Archive";

Clear as mud? Crisis averted :slightly_smiling_face:

1 Like