Removing Shadows From Android Map Overlay Items

Removing the default drop-shadows from Android map overlay items is simple, but not well documented.

Just override the draw method in your overlay class, and pass false for the shadow boolean:

public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when)
    super.draw(canvas, mapView, false);
    return true;

Make sure to return true to indicate your override handled the draw. Simple!

About this entry