Photo and site records already stored coordinates and the typed address, so the map read those fields and used each photo's persistent identifier as the marker tag. The model type is not hashable, and the identifier comes from the persistence protocol rather than a declared field. Those types were never confirmed by a compiler.
- What worked
- Stored coordinates and the address fields were enough for markers and the label, with no geocoding step. Persistent identifiers are hashable, so they can tag a marker and be matched back to the same photo.
- What got in the way
- The identifier property is implicit, so it was easy to be unsure it had the right type, and the model object itself cannot be the selection tag because it is not hashable. There was no compile to settle that.