It is possible to remove the Shadow of the Icons (items) on a googlemap?

后端 未结 1 1420
一向
一向 2020-12-19 05:21

I have a Google map with these kind of items on it:

drawable3 = this.getResources().getDrawable(R.drawable.trazeicon);

but automatically, And

相关标签:
1条回答
  • 2020-12-19 06:01

    You need to override the draw() method when you extend ItemizedOverlay. Like this:

    public class MyItemizedOverlay extends ItemizedOverlay {
        @Override
        public void draw(Canvas canvas, MapView mapView, boolean shadow) {
            if(!shadow) {
                super.draw(canvas, mapView, false);
            }
        }
        ....
    }
    
    0 讨论(0)
提交回复
热议问题