Add identification to marker on google maps v2 api for android

vdrg picture vdrg · Jan 16, 2013 · Viewed 23.7k times · Source

Well, every marker on my application will represent a user, so I need to identify that user when I click the info window to get its data from the Internet, and I can't make it identify them by name for obvious reasons. Is it possible to add an extra attribute to a marker object? thanks!

Answer

dumazy picture dumazy · Jan 19, 2013

You could make a HashMap<Marker, User>

check this tutorial: http://bon-app-etit.blogspot.be/2012/12/add-informationobject-to-marker-in.html