draw is being constantly called in my android map overlay

Posted by Itsik on Stack Overflow See other posts from Stack Overflow or by Itsik
Published on 2010-05-07T23:35:06Z Indexed on 2010/05/07 23:38 UTC
Read the original article Hit count: 222

Filed under:
|
|

I'm trying to draw a route onto my MapView. I've extended Overlay and implemented the draw() method. The route is displayed properly, although while debugging, I added a breakpoint on draw(), and noticed it is being called constantly.

I only want it to be re-drawn if someone moves the map or zooms (the draw take into account these changes when drawing the route) What can cause this ?

© Stack Overflow or respective owner

Related posts about android

Related posts about mapview