On Wed, Jan 19, 2011 at 11:17 AM, Dudero <[email protected]> wrote:

> I want to mark( with a colored point) all the the positions which
> are clicked on the screen.
>
> I found something like overriding the onTap(GeoPoint p, MapView)- Method of
> an Overlay, but I do not understand how to draw then this points into a
> MapView. Do i have to call the draw()-method for each new point?
>

No, you add a new OverlayItem to an ItemizedOverlay object you have. It does
the drawing for you.


> Of course the GeoPoint has to be transformed into pixel-format with the
> "getProjection().toPixels(GeoPoint gp,Point px)"-method.
>

No, it doesn't.


> Can somebody give me a good template?
>

A good "template"? If you're hoping for a project and set of classes that
are perfectly set up to do exactly what you ask, you're in for
disappointment. Use google to find plenty of examples on the matter.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to