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

Apps GMaps: clickable overlay markers?

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,
 
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 :)
 
Back
Top Bottom