Reputation: 381
I'm creating Google Maps API based app for android and I need to add some additional information to Marker
like my own rating of the place, comments, photos etc. I've tried to create new class, extended from Marker.class
, but I can't because Marker.class
is final. How to add additional information?
Upvotes: 1
Views: 74
Reputation: 10350
Call marker.setTag()
when you're creating the marker with key to info associated with that marker....you can then access this (by calling getTag()
) in OnInfoWindowClickListener
callback for example and use that to look up info you need.
Upvotes: 1