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:
[java]
@Override
public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when)
{
super.draw(canvas, mapView, false);
return true;
}
[/java]

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


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *