Skip to content

Commit

Permalink
BitmapTileLayer: improve fade (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 authored Mar 1, 2024
1 parent f299837 commit 1945dfd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vtm/src/org/oscim/layers/tile/bitmap/BitmapTileLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1945dfd

Please sign in to comment.