I'm assuming that you are referring to the previous section "Adding Markers" on page 315. I was able to get it to work, but I discovered that there are actually two different versions of the draw() method. One is for animated markers, and one is for static markers. The one listed in the book is actually for animated markers and will get called over and over again for the animation (you can set a breakpoint on it to test this). The signature for the other draw method (which I used) is:
@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow) {
...
}
I'm not sure if this is what is causing your problem.
|