diff --git a/vtm/src/org/oscim/layers/tile/bitmap/BitmapTileLayer.java b/vtm/src/org/oscim/layers/tile/bitmap/BitmapTileLayer.java index 24bb58acf..14c69d108 100644 --- a/vtm/src/org/oscim/layers/tile/bitmap/BitmapTileLayer.java +++ b/vtm/src/org/oscim/layers/tile/bitmap/BitmapTileLayer.java @@ -114,10 +114,8 @@ public void setBitmapAlpha(float bitmapAlpha, boolean redraw) { public void onMapEvent(Event event, MapPosition pos) { super.onMapEvent(event, pos); - if (event != Map.POSITION_EVENT) - return; - - setFade(pos); + if (event == Map.CLEAR_EVENT || event == Map.POSITION_EVENT) + setFade(pos); } private void setFade(MapPosition pos) {