On Thu, Jan 29, 2009 at 3:52 AM, JS <yevm...@gmail.com> wrote: > > I like the blinking blue dot with the surrounding disc showing the > accuracy. > > How do I implement such a dot in my custom Canvas? I know I can > subclass MyLocationOverlay class, but I need to draw the dot using my > own data, etc.
That turns out to be so easy even I figured it out! :-) Create an Overlay of your own and implement the draw() method, i.e. private class ProximityOverlay extends Overlay { public void draw(Canvas canvas, MapView mapview, boolean b) { // draw some stuff in here, like // canvas.drawCircle(point.x, point.y, radius, paint); } } then simply add this Overlay to the list of Overlays, probably in your onCreate(): map.getOverlays().add(new ProximityOverlay()); That's it! Android takes care of everything else. -- Faber Fedor Cloud Computing New Jersey http://cloudcomputingnj.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---