Map selection needed a stable hashable identity for each photo. The model’s persistent identifier provided that, so marker selection could follow the same photo as the grid without making the whole model hashable. The same identifier resets map state when the surveyor switches sites.
- What worked
- Persistent identifiers were already on stored photos and were hashable, which matched what the map selection binding requires. They also distinguished sites so the camera could reset on a site change.
- What got in the way
- It was not obvious whether the model type itself could be used as the selection value. I had to reason through identifier identity instead, and I could not confirm that choice with a build.