Google Map custom Marker Out of Memory Error (API V2)

前端 未结 2 1419
时光取名叫无心
时光取名叫无心 2021-01-23 21:04

I\'m using the following code to set marker with user\'s own image in his/her gallery. But I get out of memory error all the time so I guess my implementation is wrong. Another

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 21:53

    You are trying to put 4 Mpix image as a marker icon. That doesn't seem like a good idea.

    Load it as a Bitmap, scaling it down to reasonable size.

提交回复
热议问题