I have a bunch of map markers that I’m loading from a database.
Later, when tapped, users can navigate to the map marker.
I’d like to also be able to save/read extra information on a marker. Here’s exactly my objective.
The database tells me who created the marker, when THAT user taps the marker I want to add a ‘Delete’ option to the showAlert so the creator can remove the marker. The issue is that I don’t think I can add a custom entry to the marker (eg: myMarker.userID), and I wasn’t sure if or how to link the marker elsewhere.
I could do another select when I tap the marker, but I didn’t want to do a database hit there, I thought I should be able to achieve it more easily.
Thoughts?