Skip to content Skip to sidebar Skip to footer

It Is Possible To Remove The Shadow Of The Icons (items) On A Googlemap?

I have a Google map with these kind of items on it: drawable3 = this.getResources().getDrawable(R.drawable.trazeicon); but automatically, Android draws a shadow of the image traze

Solution 1:

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);
        }
    }
    ....
}

Post a Comment for "It Is Possible To Remove The Shadow Of The Icons (items) On A Googlemap?"