I got the shadow to draw properly by calling
boundCenterBottom(Drawable);

        @Override
        public void draw(Canvas arg0, MapView arg1, boolean arg2) {
                super.draw(arg0, arg1, arg2);
                MyItemizedOverlay.boundCenterBottom(defaultMarker);
        }

Not sure if this is the "right" way. But, it is working.


On Sep 2, 9:21 am, marcel-182 <[EMAIL PROTECTED]> wrote:
> No, I don't know how to change that behavior.
>
> But if you don't like the shadow just disable it :-):
> @Override
> public void draw(Canvas pCanvas, MapView pMapView, boolean pShadow) {
>     super.draw(pCanvas, pMapView, false);
>
> }
>
> On 2 Sep., 18:03, "Chris Chiappone" <[EMAIL PROTECTED]> wrote:
>
> > Marcel,
>
> > Thanks for that seems to work as you described.  The only thing that
> > doesn't seem right is the way the map draws the markers shadow.  Any
> > idea on how to correct that.
>
> > Thanks.
>
> > On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 <[EMAIL PROTECTED]> wrote:
>
> > > 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
>
> > --
> > ~chris
>
>

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