Thanks, Mark!

Strangely, I can't seem to make your code work.
If I use:

        public MyItemOverlay() {
                super(null);
... the rest of your code...

It crashes with NullPointer in:

@Override public void draw(Canvas canvas, MapView mapView,boolean
shadow) {
                super.draw(canvas, mapView, shadow);
}

But it works somewhat if we change the constructor to:
public MyItemOverlay(Drawable defaultMarker) {
                super(boundCenterBottom(defaultMarker));

Unfortunately, it only shows the defaultMarker, despite the use of the
CustomItem with other Drawables.

Maybe this feature is deprecated? Or the behaviour of ItemOverlay's
super() has changed?

-- 
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

Reply via email to