Hitrene
Hitrene

Reputation: 381

Additional marker information Google Maps Api

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.classis final. How to add additional information?

Upvotes: 1

Views: 74

Answers (1)

John O'Reilly
John O'Reilly

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

Related Questions