Hi everyone,

I finally got this thing working. Just set the bounds of the marker to
be drawn and that's it!

Sample:
Drawable defaultMarker =
getResources().getDrawable(R.drawable.map_marker_red);
defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(),
defaultMarker.getIntrinsicHeight());
mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); //
DemoOverlay is of course an ItemizedOverlay

I made a small demo showing one OverlayItem and how to handle tap-
events. If someone is interested:
http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/

Regards, Marcel

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to