Touchable labels for google maps

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Touchable labels for google maps

Postby Lurv » Wed Jun 02, 2010 12:46 pm

I have populated the map with some icons from GeoPoints but now I'd like to make a popup apear right above them when the user touches the icon, and when he/she clicks on the popup I'd like to switch to another activity.

Can this be done?
Once Poster
Once Poster
Posts: 1
Joined: Wed Jun 02, 2010 12:41 pm


Re: Touchable labels for google maps

Postby JKumar » Wed Jun 16, 2010 5:51 am


The answer is yes.

You need to use ItemizedOverlay with OverlayItems which has a method onTap that returns the information of marker put at the time of creation.You can perform any task(use of dialog, toast,anyother) inside the onTap as per your requirement.

You can find a lot of example in this forum and also the developer site has explained the use of ItemizedOverlay
Hope the suggestion helps you
Keep posting .It makes us better to understand Android
User avatar
Experienced Developer
Experienced Developer
Posts: 52
Joined: Thu May 13, 2010 8:17 am
Location: INDIA


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests