Hi all!
Im working on a project using mapforge maps, and Im trying to implement the 
onTap method to handle taps on overlay items.
My map class looks something like this:

public class Map extends  MapActivity implements LocationListener, 
Overlay,SensorEventListener {
...
}

In this class, Im creating N circles of type Circle, setting theit 
geopoints and adding them to a ListOverlay.
it looks something like that:

circle1.setGeoPoint(geoPoint);
ListOverlay listOverlay = new ListOverlay();
List<OverlayItem> overlayItems = listOverlay.getOverlayItems();
overlayItems.add(circle1);
mapView.getOverlays().add(listOverlay);

Now, I want to implement onTap() method, such that when a user taps one of 
the overlay circles, information about that overlay will pop on the screen.
How can I do that? where and how should I implement this onTap method? in 
this class or do i need to create another class? 
I saw in the documentation that it is possible, but I didnt find any 
example to understand how to do that.

please help with that...
Thanks allot everyone!

Best Regards,
       Yonathan

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to