Skip to content

Commit

Permalink
Fix marker images scale on Android
Browse files Browse the repository at this point in the history
It seems the Marker renderer does not support scaled bitmaps. Always create the bitmap explicitly with a fixed size.

Change-Id: If774eef24f835459e312f2f54bc7d545a4faa86f
  • Loading branch information
cpetrov authored and Christian Petrov committed Feb 5, 2018
1 parent 855b367 commit 7a3a57e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ public void onImageLoaded(Drawable drawable) {
}

private Bitmap drawableToBitmap(Drawable drawable) {
if (drawable instanceof BitmapDrawable) {
return ((BitmapDrawable) drawable).getBitmap();
}
Canvas canvas = new Canvas();
Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
canvas.setBitmap(bitmap);
Expand Down

0 comments on commit 7a3a57e

Please sign in to comment.