Oh thank you very much, it actually disappeared the duplicated... the only issue it was the one it wasn't supposed to lol

It's strange that overriding a shadow makes a variation on the map position.. it can't be just that

On Sep 14, 2010, at 6:28 PM, TreKing wrote:

On Tue, Sep 14, 2010 at 12:23 PM, Pedro Teixeira <[email protected] > wrote:
how can I put this back to normal without shadow?

OK, this:

        public void draw(Canvas canvas, MapView mapView, boolean shadow) {
                super.draw(canvas, mapView, false);
                boundCenter(marker);
        }



is going to get called twice by the system. That's just how it works. Therefore, what you're currently doing is drawing twice without shadow, which is why you see what you see. If you don't want the shadow then you probably want this:



        public void draw(Canvas canvas, MapView mapView, boolean shadow) {
                if (!shadow)
                {
                 super.draw(canvas, mapView, shadow);
                boundCenter(marker);
                }
        }

P.S. - boundCenter is not something that needs to be done repeatedly.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices


--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Pedro Teixeira

www.pedroteixeira.org

--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to