If I extend ItemizedOverlay, why does this work as expected:

        public MyItemizedOverlay(Drawable defaultMarker) {
                super(boundCenterBottom(defaultMarker));
                populate();
        }

        public void addOverlayItem(OverlayItem overlayItem) {
                if (useNonDefaultMarker) {
                        overlayItem.setMarker(boundCenterBottom(otherMarker);
                }
                mOverlays.add(overlay);
                populate();
        }

But this does not.  It draws the shadow as if the shadow was
boundCenterBottom()ed, but the otherMarker is properly drawn centered
on the point.

        public MyItemizedOverlay(Drawable defaultMarker) {
                super(boundCenter(defaultMarker));
                populate();
        }

        public void addOverlayItem(OverlayItem overlayItem) {
                if (useNonDefaultMarker) {
                        overlayItem.setMarker(boundCenter(otherMarker));
                }
                mOverlays.add(overlay);
                populate();
        }

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