如何删除地图上标记上的阴影?

我在Google地图上显示自定义标记。 他们被安排得很好,但他们有这个有趣的阴影。 我怎样才能删除阴影? 替代文字

@Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); // ---translate the GeoPoint to screen pixels--- Point screenPts = new Point(); mapView.getProjection().toPixels(geoPnt, screenPts); // ---add the marker--- /*Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.pushpin); canvas.drawBitmap(bmp, screenPts.x, screenPts.y - 67, null);*/ return true; } } 

我在调用重写方法时尝试为shadow参数传递false

这意味着它应该看起来像super.draw(canvas, mapView, false)

尝试这个:

 @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { if (!shadow) { super.draw(canvas, mapView, shadow); // ---translate the GeoPoint to screen pixels--- Point screenPts = new Point(); mapView.getProjection().toPixels(geoPnt, screenPts); // ---add the marker--- Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.pushpin); canvas.drawBitmap(bmp, screenPts.x, screenPts.y - 67, null); } return true; } }