draw is being constantly called in my android map overlay

后端 未结 8 1852
走了就别回头了
走了就别回头了 2021-01-04 09:30

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 b

8条回答
  •  天命终不由人
    2021-01-04 09:32

    You can simply add this to your ItemizedOverlay class:

    @Override public void draw( Canvas c, MapView m, boolean shadow ) { super.draw( c, m, false );}
    

    This will remove the shadow from your mapview overlay.

提交回复
热议问题