简体   繁体   中英

android google map marker

i have several markers on the google map displayed in android, i wish to display more information (information such as - some text,a picture) when a particular marker is clicked. could some one please guide me how can i go about implementing that.

Override onTap() in your ItemizedOverlay and do whatever you want. See here for a sample project that displays a Toast when an item is tapped.

What CommonsWare said. Or check out this page: http://developer.android.com/resources/tutorials/views/hello-mapview.html Also, I would recommend launching a new Activity if you're going to display text and an image, unlike the application at the page where only a small text is displayed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM