Android creating BitmapDescriptor exception

前端 未结 4 1645
孤街浪徒
孤街浪徒 2021-01-06 03:01

I\'m writing an application that works alot with google map and markers on it. My task is to create and display some amount of markers on google map. Markers have custom ima

4条回答
  •  花落未央
    2021-01-06 03:26

    For me the problem was related to the size of the icon. I just change dynamically the size of the Bitmap and works fine.

    Bitmap image2 = Bitmap.createScaledBitmap(iconBitmap, 120, 120, false);

提交回复
热议问题