• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps GMaps: clickable overlay markers?

speedracer

Lurker
Nov 13, 2009
5
0
I am working on integrating gmaps in my app and I know how to add overlay with drawable markers. But does anyone know if I can have these markers be clickable within my app and when clicked bring up a specified activity within my app?
a good example would be something like foursquare or loopt on the iphone that shows friend's avatar and when clicked it goes to their profile view within the app.

thanks!
 
I am working on integrating gmaps in my app and I know how to add overlay with drawable markers. But does anyone know if I can have these markers be clickable within my app and when clicked bring up a specified activity within my app?
a good example would be something like foursquare or loopt on the iphone that shows friend's avatar and when clicked it goes to their profile view within the app.

thanks!

Hi speedracer,

I'm working on the same, do you have some advance?
Best regards,
 
Upvote 0
Hi speedracer,

I'm working on the same, do you have some advance?
Best regards,


yes, it turns out to be quite straight forward.
Basically, what you need to do is extend ItemizedOverlay and override the onTap(int index) method to do whatever you need to do.


ItemizedOverlay

btw, after working with the map for while I've become pretty comfortable with it so if you have any other questions, feel free to ping me :)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones